File indexing completed on 2024-04-06 12:10:13
0001
0002 RESULTURL="$1"
0003 BASELINEURL="$2"
0004 PRNUMBER=$(date +%s)
0005
0006 fetch() {
0007 (
0008 export PATH=/bin/:/usr/bin/
0009 export PERL5LIB=
0010 export LD_LIBRARY_PATH=
0011
0012 cern-get-sso-cookie -o cook --url $1
0013 for d in $(curl -L -s -k -b cook $1 | grep -oE '"[0-9]+*.[0-9]+_[^"]*"' | tr -d '"'); do
0014 for f in $(curl -L -s -k -b cook "$1/$d" | grep -oE '"DQM.*.root"' | tr -d '"'); do
0015 (echo "Fetching $d/$f..."; mkdir -p $d; cd $d; curl -O -L -s -k -b ../cook $1/$d/$f )
0016 done
0017 done
0018 )
0019 }
0020
0021 if [[ -z $RESULTURL || -z $BASELINEURL ]]; then
0022 echo "Please provide a URL to 'Matrix Test Outputs', like 'https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a20bd6/3666/runTheMatrix-results/', and a similar URL to use as the baseline, like 'https://cmssdt.cern.ch/SDT/jenkins-artifacts/ib-baseline-tests/CMSSW_11_0_X_2019-11-26-2300/slc7_amd64_gcc820/-GenuineIntel/matrix-results/'"
0023 echo "Requires cern-get-sso-cookie. This might only work *outside* a cmsenv."
0024 echo "Requires compareDQMOutput.py. This will only work *inside* a cmsenv."
0025 echo "You might need to run the script twice (before/after cmsenv) to get results."
0026 exit 1
0027 fi
0028
0029 echo "Downloading PR files..."
0030 mkdir -p pr
0031 cd pr
0032 fetch "$RESULTURL"
0033 cd ..
0034 echo "Downloading baseline files..."
0035 mkdir -p base
0036 cd base
0037 fetch "$BASELINEURL"
0038 cd ..
0039
0040 compareDQMOutput.py -b base/ -p pr/ -r "$CMSSW_VERSION" -l "private/private#$PRNUMBER" -j12