-
Notifications
You must be signed in to change notification settings - Fork 264
P2 HLT timing: check on all expected json files to declare success #2662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmusich
wants to merge
3
commits into
cms-sw:master
Choose a base branch
from
mmusich:mm_check_all_jsons
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+38
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,9 +23,35 @@ popd | |
| # Upload results | ||
| source $WORKSPACE/cms-bot/jenkins-artifacts | ||
| touch ${RESULTS_DIR}/11-hlt-p2-timing-report.res ${RESULTS_DIR}/11-hlt-p2-timing-failed.res | ||
| if [ -f $WORKSPACE/rundir/Phase2Timing_resources.json ] ; then | ||
|
|
||
| required_files=( | ||
| "$WORKSPACE/rundir/Phase2Timing_resources.json" | ||
| ) | ||
|
|
||
| if [ "$CMSSW_VERSION_NUMBER" -ge 1501 ]; then | ||
| required_files+=( | ||
| "$WORKSPACE/rundir/Phase2Timing_resources_NGT.json" | ||
| ) | ||
| fi | ||
|
|
||
| if [ "$CMSSW_VERSION_NUMBER" -ge 1600 ]; then | ||
| required_files+=( | ||
| "$WORKSPACE/rundir/Phase2Timing_resources_OnCPU.json" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. notice that for this work, it will require to have cms-sw/cmssw#49887 integrated (and backported). |
||
| ) | ||
| fi | ||
|
|
||
| missing=0 | ||
| for f in "${required_files[@]}"; do | ||
| if [ ! -f "$f" ]; then | ||
| echo "Missing required file: $f" | ||
| missing=1 | ||
| fi | ||
| done | ||
|
|
||
| if [ $missing -eq 0 ]; then | ||
mmusich marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| CHART_URL="https://cmssdt.cern.ch/circles/web/piechart.php?data_name=hlt-p2-timing&resource=time_thread&filter=${CMSSW_VERSION}&dataset=${UPLOAD_PATH}/Phase2Timing_resources" | ||
| echo "HLT_P2_TIMING;SUCCESS,HLT Phase 2 timing Test,See Chart,${CHART_URL}" >> ${RESULTS_DIR}/hlt-p2-timing.txt | ||
| echo "HLT_P2_TIMING_LOG;OK,HLT Phase 2 timing Test Log,See Logs,hlt-p2-timing.log" >> ${RESULTS_DIR}/hlt-p2-timing.txt | ||
| echo -e "**HLT P2 Timing**: [chart](${CHART_URL})" > ${RESULTS_DIR}/11-hlt-p2-timing-report.res | ||
|
|
||
| mv $WORKSPACE/rundir/Phase2Timing*.json $WORKSPACE/json_upload | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmusich , do old releases also generate these files? Note that we are running these tests for CMSSW_14_1_X and above.
For IBs tests, we are uploading
Phase2Timing_resources*.jsonfiles , should we change it to uploadmv Phase2Timing_*.json?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smuzaffar, thank you for reviewing.
This is the current situation:
Phase2Timing_resources.jsonandPhase2Timing_resources_NGT.jsonPhase2Timing_resources.jsonhow do you suggest to support a different number of files? I'd like to be fully explicit on the expected name of the json file: do we have means from the bash script to know the release version?
No. Actually thanks for pointing this out. This explains the mystery at cms-sw/cmssw#49279 (comment) !
I will rather change the name of the output json in order to match the expected pattern.
By the way can you show me which file is responsible for generating the IB tests?
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at wha'ts done at cmssw-pr-test-config would:
work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmusich , that code is in jenkins job itself (https://cmssdt.cern.ch/jenkins/job/ib-run-hlt-p2-timing/configure)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some this should work, we can always run/request PR tests for old release cycles to check if it works properly or not. Also instead of converting CMSSW_VERSION (CMSSW_16_0_X) to CMSSW_VER (1600) in p2 timing script, I would suggest to update
cms-bot/pr_testing/setup-pr-test-env.shalways have CMSSW_VERSION_NUMER and use it in p2 timign script (note that setup-pr-test-env.sh is sources in all PR test jobs to may be other test can also make use of it)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to be sure I understand, the proposal is to add in
cms-bot/pr_testing/setup-pr-test-env.shthis line:and then structure the if / else as
?
If you confirm I'll provide a commit shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simple
CMSSW_VERSION_NUMBER=$CMSSW_VERSIONis not enough. You need to add something like the following or feel free to implement it with simpler logic :-) All we need is to convert major and minor version of release cycle in. to two digits and concatenate then to get CMSSW_VERSION_NUMBERThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to implement it in 84487f1.