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

Fix usage of sys.argv in cmsRun configs #42823

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

kpedro88
Copy link
Contributor

PR description:

This PR accounts for two changes from #42650 in non-core packages:

  1. When invoking cmsRun config_file.py ..., inside the Python config file, the contents of sys.argv are ["config_file.py",...] (consistent with the result of python3 config_file.py ...). Previously, when using cmsRun, the contents of sys.argv would be ["cmsRun","config_file.py",...].
  2. No need to include the -- separator when calling cmsRun config_file.py [args] to pass args 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.

@kpedro88
Copy link
Contributor Author

test parameters:
pull_requests = #42650, #42798

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42823/36945

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @kpedro88 (Kevin Pedro) for master.

It involves the following packages:

  • Alignment/MuonAlignment (alca)
  • CalibPPS/ESProducers (alca)
  • CondTools/BTau (db)
  • CondTools/CTPPS (db)
  • CondTools/SiPixel (db)
  • DPGAnalysis/HcalTools (dqm)
  • DQM/BeamMonitor (dqm, db)
  • DQM/Integration (dqm)
  • DQMOffline/Trigger (dqm)
  • DQMServices/StreamerIO (dqm)
  • DataFormats/Common (core)
  • DataFormats/FEDRawData (daq)
  • DataFormats/HLTReco (hlt)
  • DataFormats/L1TGlobal (l1)
  • DataFormats/Scouting (core)
  • GeneratorInterface/Core (generators)
  • GeneratorInterface/LHEInterface (generators)
  • IOPool/Input (core)
  • IOPool/Output (core)
  • L1Trigger/L1GctAnalyzer (l1)
  • L1Trigger/L1TGlobal (l1)
  • L1Trigger/L1TMuonOverlapPhase1 (l1)
  • L1Trigger/Phase2L1ParticleFlow (upgrade, l1)
  • L1TriggerConfig/GctConfigProducers (l1)
  • RecoEgamma/ElectronIdentification (reconstruction)
  • RecoEgamma/PhotonIdentification (reconstruction)
  • RecoLocalMuon/GEMCSCSegment (upgrade, reconstruction)
  • RecoParticleFlow/Configuration (reconstruction)
  • SimTracker/TrackerMaterialAnalysis (simulation)
  • Validation/CaloTowers (dqm)
  • Validation/RecoTau (dqm)

@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.
@emilbols, @Ming-Yan, @makortel, @HuguesBrun, @jainshilpi, @abbiendi, @CeliaFernandez, @Martin-Grunewald, @a-kapoor, @Fedespring, @thomreis, @alberto-sanchez, @missirol, @demuller, @threus, @varuns23, @seemasharmafnal, @VourMa, @pakhotin, @mmarionncern, @vargasa, @Senphy, @abdoulline, @andrea21z, @JanFSchulte, @jhgoh, @tvami, @apsallid, @sobhatta, @cericeci, @ferencek, @francescobrivio, @trocino, @lgray, @grzanka, @rociovilar, @Sam-Harper, @barvic, @silviodonato, @youyingli, @fabferro, @GiacomoSguazzoni, @tocheng, @VinInn, @mroguljic, @bellan, @rovere, @hatakeyamak, @mmusich, @eyigitba, @mtosi, @dgulhan, @batinkov, @AlexDeMoor, @watson-ij, @mkirsano, @Prasant1993, @adewit, @AnnikaStein, @valsdav, @wddgit, @JyothsnaKomaragiri, @dkotlins, @afiqaize, @dinyar, @andrzejnovak, @sameasy, @ram1123 this is something you requested to watch as well.
@rappoccio, @antoniovilela, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@kpedro88
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bc6929/34818/summary.html
COMMIT: c9d5d4f
CMSSW: CMSSW_13_3_X_2023-09-19-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/42823/34818/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 3 errors in the following unit tests:

---> test CondToolsLHCInfoNewPopConTest had ERRORS
---> test PrimaryVertex had ERRORS
---> test testPVPlotting had ERRORS

Comparison Summary

Summary:

  • You potentially added 8 lines to the logs
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358044
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3358019
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@aloeliger
Copy link
Contributor

+l1

@mmusich
Copy link
Contributor

mmusich commented Oct 6, 2023

+hlt

  • re-sign

@kpedro88
Copy link
Contributor Author

kpedro88 commented Oct 9, 2023

@cms-sw/dqm-l2 @cms-sw/generators-l2 @cms-sw/reconstruction-l2 @cms-sw/simulation-l2 please re-sign

@jfernan2
Copy link
Contributor

jfernan2 commented Oct 9, 2023

+1

@kpedro88
Copy link
Contributor Author

unhold

@cmsbuild cmsbuild removed the hold label Oct 10, 2023
@kpedro88
Copy link
Contributor Author

@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)

@antoniovilela
Copy link
Contributor

ping @cms-sw/generators-l2 @cms-sw/dqm-l2 @cms-sw/simulation-l2

@antoniovilela
Copy link
Contributor

urgent

@tjavaid
Copy link

tjavaid commented Oct 11, 2023

+1

@menglu21
Copy link
Contributor

+1

@rappoccio
Copy link
Contributor

+1

Requires co-dependency from #42650 to resolve errors.

@rappoccio
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 0afcc4f into cms-sw:master Oct 11, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment