Skip to content

Commit

Permalink
Merge pull request #2373 from cms-sw/unify-real-arch
Browse files Browse the repository at this point in the history
Unify REAL_ARCH for PR/baseline relvals
  • Loading branch information
smuzaffar authored Nov 14, 2024
2 parents 5c8f4dd + 2c253fa commit a61c28a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions cms_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
JENKINS_HOST = "cmsjenkins04"
CMS_JENKINS_HOST = "cmsjenkins02"
DMWM_JENKINS_HOST = "cmsjenkins11"
RELVAL_REAL_ARCH = "-GenuineIntel"
VALID_CMS_SW_REPOS_FOR_TESTS = [
"cmssw",
"cmsdist",
Expand Down
1 change: 1 addition & 0 deletions cmsrep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CMSREP_IB_SERVER=cmsrep.cern.ch
CMSBUILD_OPTS_FILE="etc/build_options.sh"
BUILD_OPTS=""
MULTIARCH_OPTS=""
RELVAL_REAL_ARCH="-GenuineIntel"
umask 0002
export CMS_PYTHON_TO_USE="python"
if which python3 >/dev/null 2>&1 ; then export CMS_PYTHON_TO_USE="python3" ; fi
Expand Down
2 changes: 1 addition & 1 deletion logRootQA.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def summaryComp(compDir):
# one way to set up for local tests..
# login to ssh cmssdt server (see CMSSDT_SERVER in ./cmssdt.sh for server name)
# copy out data from a recent pull request comparison
# cd /data/sdt/SDT/jenkins-artifacts/ib-baseline-tests/CMSSW_10_0_X_2017-11-05-2300/slc6_amd64_gcc630/-GenuineIntel
# cd /data/sdt/SDT/jenkins-artifacts/ib-baseline-tests/CMSSW_10_0_X_2017-11-05-2300/slc6_amd64_gcc630/${REAL_ARCH}
# scp -r matrix-results/ dlange@cmsdev01:/build/dlange/171103/t1/
# cd ../../../../pull-request-integration/PR-21181/24200/
# scp -r runTheMatrix-results/ dlange@cmsdev01:/build/dlange/171103/t1/.
Expand Down
2 changes: 1 addition & 1 deletion pr_testing/run-pr-comparisons
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ JR_COMP_DIR=$WORKSPACE/results/JR-comparison
mkdir -p $WORKSPACE/upload ${JR_COMP_DIR} $WORKSPACE/data
rm -f $WORKSPACE/ALL_DONE
if [ "X$COMPARISON_RELEASE" = "X" ] ; then COMPARISON_RELEASE=$CMSSW_VERSION; fi
if [ "$REAL_ARCH" = "" ] ; then REAL_ARCH="-GenuineIntel"; fi
if [ "$REAL_ARCH" = "" ] ; then REAL_ARCH="${RELVAL_REAL_ARCH}"; fi
PR_NUM=$(echo ${PULL_REQUEST} | md5sum | sed 's| .*||' | cut -c27-33)
BASELINE_DIR=ib-baseline-tests/$COMPARISON_RELEASE/$COMPARISON_ARCH/$REAL_ARCH/matrix${TEST_FLAVOR}-results
PR_BASELINE_JOBDIR=pull-request-integration/${UPLOAD_UNIQ_ID}
Expand Down
2 changes: 2 additions & 0 deletions pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ if $DO_COMPARISON ; then
echo "ARCHITECTURE=$COMPARISON_ARCH" >> run-baseline-${BUILD_ID}-01.default
echo "DOCKER_IMG=cmssw/${COMP_OS}" >> run-baseline-${BUILD_ID}-01.default
echo "TEST_FLAVOR=" >> run-baseline-${BUILD_ID}-01.default
echo "REAL_ARCH=${RELVAL_REAL_ARCH}" >> run-baseline-${BUILD_ID}-01.default
echo "PRODUCTION_RELEASE=${PRODUCTION_RELEASE}" >> run-baseline-${BUILD_ID}-01.default
WF_LIST=$(get_pr_baseline_worklflow)
[ "${WF_LIST}" = "" ] || WF_LIST="-l ${WF_LIST}"
Expand Down Expand Up @@ -1397,6 +1398,7 @@ if [ "X$DO_SHORT_MATRIX" = Xtrue ]; then
echo "MATRIX_TIMEOUT=$MATRIX_TIMEOUT" >> $WORKSPACE/run-relvals.prop
echo "COMPARISON_REL=${COMPARISON_REL}" >> $WORKSPACE/run-relvals.prop
echo "COMPARISON_ARCH=${COMPARISON_ARCH}" >> $WORKSPACE/run-relvals.prop
echo "REAL_ARCH=${RELVAL_REAL_ARCH}" >> $WORKSPACE/run-relvals.prop
WF_COMMON="-s $(get_pr_relval_args $DO_COMPARISON '')"
[ "${WORKFLOWS_PR_LABELS}" != "" ] && WF_COMMON="${WF_COMMON};-l ${WORKFLOWS_PR_LABELS}"
echo "MATRIX_ARGS=${WF_COMMON}" >> $WORKSPACE/run-relvals.prop
Expand Down
10 changes: 6 additions & 4 deletions report-summary-merged-prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from cmsutils import get_config_map_properties
from github_utils import get_merge_prs
from cms_static import GH_CMSSW_REPO, GH_CMSSW_ORGANIZATION
from cms_static import GH_CMSSW_REPO, GH_CMSSW_ORGANIZATION, RELVAL_REAL_ARCH
from releases import CMSSW_DEVEL_BRANCH
from socket import setdefaulttimeout

Expand Down Expand Up @@ -1757,17 +1757,19 @@ def fix_results(results):
MAGIC_COMMAND_FIND_COMPARISON_BASELINE = (
"test -f "
+ JENKINS_ARTIFACTS_DIR
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/-GenuineIntel/matrix-results/wf_errors.txt"
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/%s/matrix-results/wf_errors.txt"
% RELVAL_REAL_ARCH
)
MAGIC_COMMAND_COMPARISON_BASELINE_ERRORS = (
"cat "
+ JENKINS_ARTIFACTS_DIR
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/-GenuineIntel/matrix-results/wf_errors.txt"
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/%s/matrix-results/wf_errors.txt"
% RELVAL_REAL_ARCH
)
COMPARISON_BASELINE_TESTS_URL = (
"https://cmssdt.cern.ch/"
+ JENKINS_ARTIFACTS_SUBDIR
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/-GenuineIntel/matrix-results"
+ "/ib-baseline-tests/RELEASE_NAME/ARCHITECTURE/%s/matrix-results" % RELVAL_REAL_ARCH
)
CHECK_HLT_PATH = (
JENKINS_ARTIFACTS_DIR + "/HLT-Validation/RELEASE_NAME/ARCHITECTURE/jenkins.log"
Expand Down
3 changes: 2 additions & 1 deletion schedule-additional-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -ex
source $(dirname $0)/cmsrep.sh
CONFIG_MAP=$(dirname $0)/config.map
PROFILING_WORKFLOWS=$($CMS_BOT_DIR/cmssw-pr-test-config _PROFILING | tr ',' ' ')
for x in `grep ADDITIONAL_TESTS= $CONFIG_MAP | grep "SCRAM_ARCH=$ARCHITECTURE;" | grep "RELEASE_QUEUE=$RELEASE_QUEUE;" | sed -e's/.*ADDITIONAL_TESTS=//;s/;.*//' | tr , '\n'`; do
Expand All @@ -17,7 +18,7 @@ for x in `grep ADDITIONAL_TESTS= $CONFIG_MAP | grep "SCRAM_ARCH=$ARCHITECTURE;"
fi
echo "ADDITIONAL_TEST_NAME=$x" >> ${pfile}
if [ "$x" == "baseline" ]; then
echo "REAL_ARCH=-GenuineIntel" >> ${pfile}
echo "REAL_ARCH=${RELVAL_REAL_ARCH}" >> ${pfile}
fi
if [ "$x" = "igprof-pp" -o "$x" = "igprof-mp" ] ; then
prof=$(echo $x | sed 's|igprof-||')
Expand Down

0 comments on commit a61c28a

Please sign in to comment.