Skip to content

Conversation

@smuzaffar
Copy link
Contributor

This PR allows to use CalibPPS/ESProducers/test/script_test_many_writeTotemDAQMapping.py from release area if missing locally. Note that during PR tests it is not guaranteed that package CalibPPS/ESProducer will be checkout e.g. for PR cms-sw/cmsdist#8764 , unit test test_XMLToSQLiteMapping failed due to missing CalibPPS/ESProducer

https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ee81ff/35212/unitTests/src/CondTools/CTPPS/test/test_XMLToSQLiteMapping/testing.log

===== Test "test_XMLToSQLiteMapping" ====
Generated SQLite files
python3: can't open file '/pool/condor/dir_7825/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-10-16-1100/src/CalibPPS/ESProducers/test/script_test_many_writeTotemDAQMapping.py': [Errno 2] No such file or directory
Failed in script_test_many_writeTotemDAQMapping.py: status 2

---> test test_XMLToSQLiteMapping had ERRORS
TestTime:72
^^^^ End Test test_XMLToSQLiteMapping ^^^^

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43037/37218

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master.

It involves the following packages:

  • CondTools/CTPPS (db)

@perrotta, @saumyaphor4252, @consuegs, @francescobrivio can you please review it and eventually sign? Thanks.
@PonIlya, @yuanchao, @mmusich, @fabferro, @rsreds this is something you requested to watch as well.
@rappoccio, @sextonkennedy, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c3208/35223/summary.html
COMMIT: 7c5c83f
CMSSW: CMSSW_13_3_X_2023-10-17-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43037/35223/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 1 errors in the following unit tests:

---> test test_XMLToSQLiteMapping had ERRORS

Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 2986 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3357400
  • DQMHistoTests: Total failures: 6126
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3351252
  • 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: found differences in 1 / 48 workflows

@perrotta
Copy link
Contributor

@smuzaffar the same kind of fix should be also implemented into CalibPPS/ESProducers/test/script_test_many_writeTotemDAQMapping.py
where test_writeTotemDAQMapping.py is searched for under $CMSSW_BASE

@smuzaffar
Copy link
Contributor Author

@perrotta , I have updated script_test_many_writeTotemDAQMapping.py to not depend on CMSSW_BASE instead read the test_writeTotemDAQMapping.py from its own directory

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43037/37273

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #43037 was updated. @saumyaphor4252, @consuegs, @francescobrivio, @perrotta can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1c3208/35286/summary.html
COMMIT: a1ea96a
CMSSW: CMSSW_13_3_X_2023-10-19-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43037/35286/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 2 lines to the logs
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3357400
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3357372
  • 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

@perrotta
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. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@rappoccio
Copy link
Contributor

+1

@perrotta
Copy link
Contributor

@smuzaffar this fix does not seem to be enough, see for example the unit test error in #43079

After having merged this fix, the test is able to retrieve the file in $CMSSW_RELEASE_BASE/src/CalibPPS/ESProducers/test/script_test_many_writeTotemDAQMapping.py but then it complains when executing this line that it is read-only:

===== Test "test_XMLToSQLiteMapping" ====
Generated SQLite files
Traceback (most recent call last):
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/week0/el8_amd64_gcc12/cms/cmssw-patch/CMSSW_13_3_X_2023-10-25-2300/src/CalibPPS/ESProducers/test/script_test_many_writeTotemDAQMapping.py", line 32, in <module>
    with open(test_script, 'r+') as f:
OSError: [Errno 30] Read-only file system: '/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02808/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_X_2023-10-25-1100/src/CalibPPS/ESProducers/test/test_writeTotemDAQMapping.py'
Failed in script_test_many_writeTotemDAQMapping.py: status 1

---> test test_XMLToSQLiteMapping had ERRORS

I have no idea of possible further fixes, besides explicitly adding the package in case the $CMSSW_BASE/src/CalibPPS/ESProducers directory is not found, which looks however a quite inelegant solution to me.

Do you have any better idea?

@smuzaffar
Copy link
Contributor Author

smuzaffar commented Oct 26, 2023

@perrotta , looks like unit test is reading and updating CalibPPS/ESProducers/test/test_writeTotemDAQMapping.py file. This is bad. I would suggest that unit tests should make a copy of CalibPPS/ESProducers/test/test_writeTotemDAQMapping.py and read/update that copy and run it. Copy should be made in current directory ( which will be readable/writable to test)

@antoniovilela
Copy link
Contributor

@perrotta , looks like unit test is reading and updating CalibPPS/ESProducers/test/test_writeTotemDAQMapping.py file. This is bad. I would suggest that unit tests should make a copy of CalibPPS/ESProducers/test/test_writeTotemDAQMapping.py and read/update that copy and run it. Copy should be made in current directory ( which will be readable/writable to test)

@smuzaffar @perrotta
Hi Shahzad, Andrea,
Let's open an issue and assign to PPS, concerning this unit test?

@smuzaffar
Copy link
Contributor Author

I will open a PR to fix this

@smuzaffar
Copy link
Contributor Author

#43147 fixes this

@perrotta
Copy link
Contributor

#43147 fixes this

Thank you @smuzaffar !

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