-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix usage of sys.argv in cmsRun configs #42823
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42823/36945
|
A new Pull Request was created by @kpedro88 (Kevin Pedro) for master. It involves the following packages:
@SiewYan, @bbilin, @Martin-Grunewald, @alberto-sanchez, @menglu21, @tjavaid, @perrotta, @civanch, @makortel, @cmsbuild, @missirol, @GurpreetSinghChahal, @mandrenguyen, @smorovic, @pmandrik, @smuzaffar, @consuegs, @Dr15Jones, @epalencia, @emanueleusai, @mdhildreth, @AdrianoDee, @jfernan2, @syuvivida, @mmusich, @micsucmed, @francescobrivio, @mkirsano, @nothingface0, @emeschi, @srimanob, @saumyaphor4252, @aloeliger, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
-1 Failed Tests: UnitTests Unit TestsI found 3 errors in the following unit tests: ---> test CondToolsLHCInfoNewPopConTest had ERRORS ---> test PrimaryVertex had ERRORS ---> test testPVPlotting had ERRORS Comparison SummarySummary:
|
+l1 |
+hlt
|
@cms-sw/dqm-l2 @cms-sw/generators-l2 @cms-sw/reconstruction-l2 @cms-sw/simulation-l2 please re-sign |
+1 |
unhold |
@cms-sw/dqm-l2 @cms-sw/generators-l2 @cms-sw/simulation-l2 please check as soon as possible (to avoid having to update the PR again and then requiring yet another round of signatures) |
ping @cms-sw/generators-l2 @cms-sw/dqm-l2 @cms-sw/simulation-l2 |
urgent
|
+1 |
+1 |
+1 Requires co-dependency from #42650 to resolve errors. |
merge |
PR description:
This PR accounts for two changes from #42650 in non-core packages:
cmsRun config_file.py ...
, inside the Python config file, the contents ofsys.argv
are["config_file.py",...]
(consistent with the result ofpython3 config_file.py ...
). Previously, when usingcmsRun
, the contents ofsys.argv
would be["cmsRun","config_file.py",...]
.--
separator when callingcmsRun config_file.py [args]
to passargs
to Python.Among other things, these changes allow removing various kludgey ways of handling the previous non-standard approach to passing arguments to Python. They also mean that index-based access to
sys.argv
shifts by 1.PR validation:
Unit tests that were previously failing (#42650 (comment)) now pass.
(Non-unit tested scripts are fixed on a best effort basis.)
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Unlikely to be backported, see discussion at #42650.