-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 error code returned by cmsRun on a FallbackFileOpenError #42249
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42249/36267
|
A new Pull Request was created by @wddgit (W. David Dagenhart) for master. It involves the following packages:
@cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Unit TestsI found errors in the following unit tests: ---> test test_cmsLHEtoEOSManager had ERRORS RelVals
RelVals-INPUT
Expand to see more relval errors ...AddOn Tests
Expand to see more addon errors ... |
c41f603
to
40155e0
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42249/36268
|
Pull request #42249 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please check and sign again. |
please test Try tests again. Maybe the failures are some kind of transient glitch unrelated to my code changes. At first glance I thought the test failures might be related to my changes because they had FileOpenError and FallbackFileOpen in the exception messages. But on closer examination, I can't see how my changes could cause all the errors before the exception. Maybe it is even confirmation the changes are working. For example:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42249/36352
|
Pull request #42249 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please check and sign again. |
please test Done. I implemented the suggestion from @stlammel. I also rebased. And force pushed it. Should be good to go if the tests pass, but let me know if there is anything else that needs modifying or to be discussed. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a7d00/33810/summary.html Comparison SummarySummary:
|
@Dr15Jones I think this PR is ready for approval again. I implemented the handling of the exception as Stephan suggested. Let me know if there is anything more I need to do. |
+1 |
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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Fix error code returned by cmsRun on a FallbackFileOpenError. There was a bug where it returns FileOpenError even in the fallback case.
There is more discussion and more information related to this bug in issue #42040. FYI @stlammel
Also added a unit test so this bug will not recur.
Also I noticed a case where a misconfigured storage.json file could cause a seg fault. I added a check for that case and now it throws an exception with an informative error message (remains fatal as before).
PR validation:
New unit test passes and existing unit tests pass. This should only affect the behavior after an exception or seg fault occurs. It should not affect the output of successful cmsRun processes.