Skip to content
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

Update some HLT tests for python3 #34563

Merged
merged 6 commits into from
Jul 21, 2021
Merged

Conversation

davidlange6
Copy link
Contributor

HLTrigger/Configuration/test/runAll.csh Fake appears to work after these changes.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34563/24099

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlange6 (David Lange) for master.

It involves the following packages:

  • FWCore/ParameterSet (core)
  • HLTrigger/Configuration (hlt)

@Martin-Grunewald, @smuzaffar, @cmsbuild, @Dr15Jones, @makortel can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald, @wddgit this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy, @perrotta you are the release manager for this.

cms-bot commands are listed here

@davidlange6
Copy link
Contributor Author

please test
@Martin-Grunewald - do the relevant HLT tests run in the PR tests?

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build HeaderConsistency ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17f73d/17019/summary.html
COMMIT: 591cfe3
CMSSW: CMSSW_12_0_X_2021-07-19-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34563/17019/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17f73d/17019/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17f73d/17019/git-merge-result

Build

I found compilation error when building:

>> Leaving Package HeterogeneousCore/SonicTriton
>> Package HeterogeneousCore/SonicTriton built
Entering library rule at src/HeterogeneousCore/SonicTriton/plugins
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc:3:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/interface/TritonService.h:13:10: fatal error: grpc_client.h: No such file or directory
   13 | #include "grpc_client.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc:3:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/interface/TritonService.h:13:10: fatal error: grpc_client.h: No such file or directory


Clang Build

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicCore/test/SonicDummyOneAnalyzer.cc
>> Entering Package HeterogeneousCore/SonicTriton
Entering library rule at src/HeterogeneousCore/SonicTriton/plugins
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc:3:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/interface/TritonService.h:13:10: fatal error: 'grpc_client.h' file not found
#include "grpc_client.h"
         ^~~~~~~~~~~~~~~
1 error generated.
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/plugins/TritonService.cc:3:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_0_X_2021-07-19-1100/src/HeterogeneousCore/SonicTriton/interface/TritonService.h:13:10: fatal error: 'grpc_client.h' file not found


@Martin-Grunewald
Copy link
Contributor

Unfortunately the (failing) tests are not run in PR tests, but in IB tests.

@Martin-Grunewald
Copy link
Contributor

Including this PR in CMSSW_12_0_X_2021-07-19-2300, there appears the following SyntaxWarning:

src/HLTrigger/Configuration/python/Tools/options.py:135: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is 'menu' and not isinstance(value, ConnectionHLTMenu):
src/HLTrigger/Configuration/python/Tools/options.py:138: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'l1' and not isinstance(value, ConnectionL1TMenu):
src/HLTrigger/Configuration/python/Tools/options.py:141: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'l1Xml' and not isinstance(value, ConnectionL1TMenuXml):
src/HLTrigger/Configuration/python/Tools/options.py:144: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'open' and value:
src/HLTrigger/Configuration/python/Tools/options.py:148: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'prescale' and value is not None:
src/HLTrigger/Configuration/python/Tools/options.py:152: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'profiling' and value:
src/HLTrigger/Configuration/python/Tools/options.py:155: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif name is 'timing' and value:
>> All python modules compiled

@davidlange6
Copy link
Contributor Author

davidlange6 commented Jul 20, 2021 via email

loader=SourceFileLoader("pycfg", options.filename)
loaded = types.ModuleType("pycfg",loader.name)
loader.exec_module(loaded)
#cfo = imp.load_source("pycfg", options.filename, handle)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the commented out line still useful? It seems to me that handle becomes now unnecessary.

@davidlange6
Copy link
Contributor Author

davidlange6 commented Jul 20, 2021 via email

loader=SourceFileLoader("pycfg", options.filename)
loaded = types.ModuleType("pycfg",loader.name)
loader.exec_module(loaded)
#cfo = imp.load_source("pycfg", options.filename, handle)
cmsProcess = cfo.process
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line crashes as cfo is no longer defined.

@davidlange6
Copy link
Contributor Author

davidlange6 commented Jul 20, 2021 via email

@Martin-Grunewald
Copy link
Contributor

Martin-Grunewald commented Jul 20, 2021

runAll.csh Fake
Even though the script says exit code 0, the log file of the HLT_Integration test run as a part of it displays the error.

@cmsbuild
Copy link
Contributor

Pull request #34563 was updated. @Martin-Grunewald, @smuzaffar, @cmsbuild, @Dr15Jones, @makortel can you please check and sign again.

@makortel
Copy link
Contributor

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17f73d/17026/summary.html
COMMIT: 3153094
CMSSW: CMSSW_12_0_X_2021-07-20-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34563/17026/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: 39
  • DQMHistoTests: Total histograms compared: 2996268
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2996245
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

+1

@Martin-Grunewald
Copy link
Contributor

urgent

@Martin-Grunewald
Copy link
Contributor

+1

@cmsbuild
Copy link
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. @silviodonato, @dpiparo, @qliphy, @perrotta (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jul 21, 2021

+1

@cmsbuild cmsbuild merged commit 968e15f into cms-sw:master Jul 21, 2021
missirol added a commit to cms-tsg-storm/cmssw that referenced this pull request Aug 6, 2023
Update of the functions "getHltConfiguration" and "loadHltConfiguration" defined in

HLTrigger/Configuration/python/Utilities.py

 - remove unnecessary dependencies on external packages like "types"
 - fix "getHltConfiguration" (was broken since the changes in cms-sw#34563)
 - return cms.Process object in "loadHltConfiguration" (backward-compatible change)
 - add checks in both functions to catch errors in ConfDB queries
missirol added a commit to cms-tsg-storm/cmssw that referenced this pull request Aug 6, 2023
Update of the functions "getHltConfiguration" and "loadHltConfiguration" defined in

HLTrigger/Configuration/python/Utilities.py

 - remove unnecessary dependencies on external packages like "types"
 - fix "getHltConfiguration" (was broken since the changes in cms-sw#34563)
 - return cms.Process object in "loadHltConfiguration" (backward-compatible change)
 - add checks in both functions to catch errors in ConfDB queries
missirol added a commit to cms-tsg-storm/cmssw that referenced this pull request Aug 6, 2023
Update of the functions "getHltConfiguration" and "loadHltConfiguration" defined in

HLTrigger/Configuration/python/Utilities.py

 - remove unnecessary dependencies on external packages like "types"
 - fix "getHltConfiguration" (was broken since the changes in cms-sw#34563)
 - return cms.Process object in "loadHltConfiguration" (backward-compatible change)
 - add checks in both functions to catch errors in ConfDB queries
missirol added a commit to cms-tsg-storm/cmssw that referenced this pull request Aug 6, 2023
Update of the functions "getHltConfiguration" and "loadHltConfiguration" defined in

HLTrigger/Configuration/python/Utilities.py

 - remove unnecessary dependencies on external packages like "types"
 - fix "getHltConfiguration" (was broken since the changes in cms-sw#34563)
 - return cms.Process object in "loadHltConfiguration" (backward-compatible change)
 - add checks in both functions to catch errors in ConfDB queries
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.

5 participants