Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 29 additions & 23 deletions pr_testing/test_multiple_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -452,35 +452,40 @@ CMSSW_ORG='cms-sw'
BUILD_EXTERNAL=false
CMSDIST_ONLY=true # asume cmsdist only
CHECK_HEADER_TESTS=false
CMSSW_DATA_PKGS=""
for U_REPO in ${UNIQ_REPOS}; do
PKG_REPO=$(echo ${U_REPO} | sed 's/#.*//')
PKG_NAME=$(echo ${U_REPO} | sed 's|.*/||')
PKG_ORG=$(echo ${PKG_REPO} | sed 's|/.*||')
case "$PKG_NAME" in # We do not care where the repo is kept (ex. cmssw organisation or other)
cmssw)
CMSSW_ORG=$(echo ${PKG_REPO} | sed 's|/.*||')
CMSDIST_ONLY=false
CHECK_HEADER_TESTS=true
;;
cmssw)
CMSSW_ORG="${PKG_ORG}"
CMSDIST_ONLY=false
CHECK_HEADER_TESTS=true
;;
cms-bot)
# do nothing
;;
cmsdist|pkgtools)
BUILD_EXTERNAL=true
;;
*)
PKG_REPO=$(echo ${U_REPO} | sed 's/#.*//')
SPEC_NAMES=$( ${CMS_BOT_DIR}/pr_testing/get_external_name.sh ${PKG_REPO} )
BUILD_EXTERNAL=true
for SPEC_NAME in ${SPEC_NAMES} ; do
if ! ${PR_TESTING_DIR}/get_source_flag_for_cmsbuild.sh "$PKG_REPO" "$SPEC_NAME" "$CMSSW_QUEUE" "$ARCHITECTURE" "${CMS_WEEKLY_REPO}" "${BUILD_DIR}" ; then
echo "ERROR: There was an issue generating parameters for cmsBuild '--source' flag for spec file ${SPEC_NAME} from ${PKG_REPO} repo." > ${RESULTS_DIR}/10-report.res
prepare_upload_results
mark_commit_status_all_prs '' 'error' -u "${BUILD_URL}" -d "Error getting source flag for ${PKG_REPO}, fix spec ${SPEC_NAME}"
exit 0
# do nothing
;;
cmsdist|pkgtools)
BUILD_EXTERNAL=true
;;
*)
PKG_REPO=$(echo ${U_REPO} | sed 's/#.*//')
SPEC_NAMES=$( ${CMS_BOT_DIR}/pr_testing/get_external_name.sh ${PKG_REPO} )
BUILD_EXTERNAL=true
for SPEC_NAME in ${SPEC_NAMES} ; do
if ! ${PR_TESTING_DIR}/get_source_flag_for_cmsbuild.sh "$PKG_REPO" "$SPEC_NAME" "$CMSSW_QUEUE" "$ARCHITECTURE" "${CMS_WEEKLY_REPO}" "${BUILD_DIR}" ; then
echo "ERROR: There was an issue generating parameters for cmsBuild '--source' flag for spec file ${SPEC_NAME} from ${PKG_REPO} repo." > ${RESULTS_DIR}/10-report.res
prepare_upload_results
mark_commit_status_all_prs '' 'error' -u "${BUILD_URL}" -d "Error getting source flag for ${PKG_REPO}, fix spec ${SPEC_NAME}"
exit 0
fi
done
if [ "${PKG_ORG}" = "cms-data" ] ; then
CMSSW_DATA_PKGS="${CMSSW_DATA_PKGS} $(echo ${PKG_NAME} | tr - /)"
fi
done
;;
esac
;;
esac
done
if $CMSDIST_ONLY ; then
DO_DAS_QUERY=false
Expand Down Expand Up @@ -798,6 +803,7 @@ if ${BUILD_EXTERNAL} ; then
CMSSW_DEPx=$(scram build ${DEP_NAMES} | tr ' ' '\n' | grep '^cmssw/\|^self/' | cut -d"/" -f 2,3 | sort | uniq)
CMSSW_DEP=$(echo ${CMSSW_DEP} ${CMSSW_DEPx} | tr ' ' '\n' | sort | uniq)
fi
if [ "${CMSSW_DATA_PKGS}" != "" ] ; then CMSSW_DEP="${CMSSW_DEP} ${CMSSW_DATA_PKGS}"; fi
echo "Final CMSSW_DEP=${CMSSW_DEP}"
if [ "$CMSSW_DEP" = "" ] ; then CMSSW_DEP="FWCore/Version" ; fi
fi
Expand Down