Skip to content

Fixing trigger results in el9 [issue #2795] - #2797

Merged
smuzaffar merged 3 commits into
cms-sw:masterfrom
artlbv:master
Jun 24, 2026
Merged

Fixing trigger results in el9 [issue #2795]#2797
smuzaffar merged 3 commits into
cms-sw:masterfrom
artlbv:master

Conversation

@artlbv

@artlbv artlbv commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix compareTriggerResults.py / compareTriggerResultsSummary.py to use
    #!/usr/bin/env python3 instead of the old #!/usr/bin/env python shebang,
    and wrap both invocations in pr_testing/run-pr-comparisons with
    ${CMSBOT_PYTHON_CMD}, matching every other Python call in that script.
  • On el9 (CMSSW_20_1_X) there is no bare python binary, so these two
    scripts previously failed immediately with
    env: 'python': No such file or directory, and the failure was swallowed
    silently (|| true), causing the entire edm::TriggerResults comparison
    section to disappear from PR bot comments with no visible error.
  • Added a SUMMARY TriggerResults: WARNING ... print on the existing
    "zero inputs" early-return path in both scripts, so any future cause of
    "comparison produced nothing" is surfaced in the PR comment instead of
    vanishing silently.

Fixes #2795.

Test plan

  • python3 -m py_compile compareTriggerResults.py compareTriggerResultsSummary.py
  • bash -n pr_testing/run-pr-comparisons
  • Ran compareTriggerResultsSummary.py against an empty input directory and confirmed the new SUMMARY TriggerResults: WARNING ... line is printed
  • Confirm edm::TriggerResults comparisons reappear in a real CMSSW_20_1_X (el9) PR-bot comment

claude and others added 2 commits June 23, 2026 12:13
compareTriggerResults.py and compareTriggerResultsSummary.py used the
old-style "#!/usr/bin/env python" shebang and were invoked directly in
run-pr-comparisons, bypassing the ${CMSBOT_PYTHON_CMD} fallback used by
every other Python call in that script. On el9 (CMSSW_20_1_X) there is
no bare "python" binary, so the scripts failed to even start
(env: 'python': No such file or directory), and the resulting silent
failure plus "|| true" meant the entire TriggerResults section
disappeared from the PR bot comment with no visible error.

Fixes cms-sw#2795.

Co-authored-by: artlbv <arturlbv@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDeG9GoVo6Qzf9kjHm71nf
Fix silently-vanishing edm::TriggerResults comparisons on el9
@cmsbuild

Copy link
Copy Markdown
Contributor

A new Pull Request was created by @artlbv for branch master.

@akritkbehera, @cmsbuild, @iarspider, @raoatifshad, @smuzaffar can you please review it and eventually sign? Thanks.
@missirol, @mmusich this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.
cms-bot commands are listed here

@cmsbuild

cmsbuild commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

cms-bot internal usage

@smuzaffar

Copy link
Copy Markdown
Contributor

please test

thanks @artlbv for opening this PR. We just need to make sure that this does not break PR tests for old release cycles 5.3., 8.0 etc.

@smuzaffar

Copy link
Copy Markdown
Contributor

please test for CMSSW_8_0_X

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54214/summary.html
COMMIT: ca06599
CMSSW: CMSSW_8_0_X_2026-06-21-0000/slc6_amd64_gcc530
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54214/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 15
  • DQMHistoTests: Total histograms compared: 1044737
  • DQMHistoTests: Total failures: 822
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1043807
  • DQMHistoTests: Total skipped: 108
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -14 KiB( 14 files compared)
  • Checked 62 log files, 40 edm output root files, 15 DQM output files
  • TriggerResults: WARNING - found zero valid hltDiff JSON outputs to summarise (no outputs produced)

@artlbv

artlbv commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

could you also test for 17 and 20X?

@smuzaffar

Copy link
Copy Markdown
Contributor

please test for CMSSW_17_0_X

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54213/summary.html
COMMIT: ca06599
CMSSW: CMSSW_20_1_X_2026-06-23-1100/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54213/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
2022.0010001 step 1
2023.0020001 step 1
2024.0000001 step 1
2024.0010001 step 1
2024.0020001 step 1
2024.0030001 step 1
2024.0040001 step 1
2024.0050001 step 1
2024.0060001 step 1
2024.0070001 step 1
2025.0000002 step 1
2025.0010001 step 1
34634.0 step 2
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • You potentially added 14 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 2533874
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2533856
  • DQMHistoTests: Total skipped: 18
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 145 log files, 113 edm output root files, 32 DQM output files
  • TriggerResults: WARNING - found zero valid hltDiff JSON outputs to summarise (no outputs produced)

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54219/summary.html
COMMIT: ca06599
CMSSW: CMSSW_17_0_X_2026-06-23-1100/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54219/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 54
  • DQMHistoTests: Total histograms compared: 4337615
  • DQMHistoTests: Total failures: 38
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4337557
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 53 files compared)
  • Checked 232 log files, 203 edm output root files, 54 DQM output files
  • TriggerResults: WARNING - found zero valid hltDiff JSON outputs to summarise (no outputs produced)

@smuzaffar

Copy link
Copy Markdown
Contributor

@artlbv @missirol , Is this expected to have message like

>> Warning -- compareTriggerResults -- found zero inputs to be compared (no outputs produced)
SUMMARY TriggerResults: WARNING - found zero edm::TriggerResults collections to compare (no outputs produced)

@missirol

Copy link
Copy Markdown
Contributor

@smuzaffar

Is this expected to have message like

>> Warning -- compareTriggerResults -- found zero inputs to be compared (no outputs produced)
SUMMARY TriggerResults: WARNING - found zero edm::TriggerResults collections to compare (no outputs produced)

No, it doesn't look like a useful output. I reproduced the issue by running the script locally.

As the script is moved to python3, I think the following change (or something equivalent) is needed.

diff --git a/compareTriggerResults.py b/compareTriggerResults.py
index c2eb16b..502ddbe 100644
--- a/compareTriggerResults.py
+++ b/compareTriggerResults.py
@@ -20,7 +20,7 @@ def WARNING(message):
 
 
 def get_output(cmds, permissive=False):
-    prc = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    prc = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
     out, err = prc.communicate()
     if (not permissive) and prc.returncode:
         KILL(

Otherwise, this call produces an output that gets misinterpreted by the script, leading to the warning you spotted. In my simple local test, this seems to be enough.

@cmsbuild

Copy link
Copy Markdown
Contributor

Pull request #2797 was updated.

@smuzaffar

Copy link
Copy Markdown
Contributor

please test

@smuzaffar

Copy link
Copy Markdown
Contributor

please test for CMSSW_17_0_X

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54234/summary.html
COMMIT: 3333f94
CMSSW: CMSSW_20_1_X_2026-06-23-2300/el9_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54234/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 45
  • DQMHistoTests: Total histograms compared: 3414477
  • DQMHistoTests: Total failures: 68
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3414391
  • DQMHistoTests: Total skipped: 18
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 44 files compared)
  • Checked 195 log files, 163 edm output root files, 45 DQM output files
  • TriggerResults: no differences found

@smuzaffar

Copy link
Copy Markdown
Contributor

please test for CMSSW_8_0_X

@smuzaffar

Copy link
Copy Markdown
Contributor

@missirol

missirol commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Thanks, Shahzad. Yes, looks okay.

Out of curiosity, what's the policy regarding the error reported in one of the GitHub actions (probably a python code-format error)? Should it be fixed here, or not?

tmp

@smuzaffar

Copy link
Copy Markdown
Contributor

Out of curiosity, what's the policy regarding the error reported in one of the GitHub actions (probably a python code-format error)? Should it be fixed here, or not?

I will fix this once PR tests are passed

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54235/summary.html
COMMIT: 3333f94
CMSSW: CMSSW_17_0_X_2026-06-23-2300/el8_amd64_gcc13
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54235/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 54
  • DQMHistoTests: Total histograms compared: 4337615
  • DQMHistoTests: Total failures: 38
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4337557
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 53 files compared)
  • Checked 232 log files, 203 edm output root files, 54 DQM output files
  • TriggerResults: no differences found

@cmsbuild

Copy link
Copy Markdown
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ba0ec/54241/summary.html
COMMIT: 3333f94
CMSSW: CMSSW_8_0_X_2026-06-21-0000/slc6_amd64_gcc530
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cms-bot/2797/54241/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 5 lines from the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 15
  • DQMHistoTests: Total histograms compared: 1044703
  • DQMHistoTests: Total failures: 817
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1043778
  • DQMHistoTests: Total skipped: 108
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -14 KiB( 14 files compared)
  • Checked 62 log files, 40 edm output root files, 15 DQM output files
  • TriggerResults: WARNING - found zero valid hltDiff JSON outputs to summarise (no outputs produced)

@smuzaffar

Copy link
Copy Markdown
Contributor

+externals

@smuzaffar
smuzaffar merged commit 58b9132 into cms-sw:master Jun 24, 2026
21 of 22 checks passed
@cmsbuild

Copy link
Copy Markdown
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @ftenchini, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

missing edm::TriggerResults comparisons in CMSSW_20_1_X

5 participants