Skip to content

Commit

Permalink
Merge pull request #2226 from cms-sw/pr-input-relvals
Browse files Browse the repository at this point in the history
use relvals after PR merge for input tests
  • Loading branch information
smuzaffar committed May 12, 2024
2 parents fed70d8 + 3e81a44 commit 17fff69
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,6 @@ fi

WORKFLOWS_PR_LABELS=""
scram -a $SCRAM_ARCH project $CMSSW_IB
set +x
pushd $CMSSW_IB
$(eval `scram run -sh` ; runTheMatrix.py -n -e | grep '\[1\]:' > wfs.step1)
sed 's| .*||' wfs.step1 > wfs.all
popd
set -x
if $DO_COMPARISON ; then
mkdir $WORKSPACE/ib-baseline-tests
pushd $WORKSPACE/ib-baseline-tests
Expand All @@ -284,7 +278,14 @@ if $DO_COMPARISON ; then
done
EX_WFS=$(echo "${EX_WFS}" | sed 's|^,*||;s|,*$||;s|,,*|,|g')
if [ "${EX_WFS}" != "" ] ; then
$(cd $WORKSPACE/$CMSSW_IB; eval `scram run -sh` ; runTheMatrix.py -n -e -s ${WF_LIST} | grep '\[1\]:' | sed 's| .*||' > wfs.default)
(
set +x
cd $WORKSPACE/$CMSSW_IB
eval `scram run -sh`
runTheMatrix.py -n -e | grep '\[1\]:' | sed 's| .*||' > wfs.all
runTheMatrix.py -n -e -s ${WF_LIST} | grep '\[1\]:' | sed 's| .*||' > wfs.default
set -x
)
for wf in $(echo ${EX_WFS} | tr ',' '\n') ; do
if grep -q "^${wf}$" $WORKSPACE/$CMSSW_IB/wfs.all ; then
if ! grep -q "^${wf}$" $WORKSPACE/$CMSSW_IB/wfs.default ; then
Expand Down Expand Up @@ -1285,6 +1286,7 @@ if [ "X$DO_SHORT_MATRIX" = Xtrue ]; then
TEST_RELVALS_INPUT=false
fi
if $TEST_RELVALS_INPUT ; then
runTheMatrix.py -n -e | grep '\[1\]:' > $WORKSPACE/${CMSSW_IB}/wfs.step1
WF_LIST=$(cat $WORKSPACE/${CMSSW_IB}/wfs.step1 | grep '\[1\]: *input from' | sed 's| .*||' |tr '\n' ',' | sed 's|,*$||')
cp $WORKSPACE/test-env.txt $WORKSPACE/run-relvals-input.prop
echo "MATRIX_TIMEOUT=$MATRIX_TIMEOUT" >> $WORKSPACE/run-relvals-input.prop
Expand Down

0 comments on commit 17fff69

Please sign in to comment.