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
improve logging of addOnTests
#40018
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40018/32972
|
A new Pull Request was created by @missirol (Marino Missiroli) 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 |
test parameters:
|
-1 Failed Tests: AddOn AddOn Tests
Comparison SummarySummary:
|
test parameters: |
please test It didn't really work yet (see #40018 (comment)); my only guess is that #40018 (comment) overwrote #40018 (comment) (instead of combining them, which was my naive expectation). Let me retry. |
-1 Failed Tests: AddOn AddOn Tests
Comparison SummarySummary:
|
test parameters:
|
please test #40018 (comment) shows the expected output (okay, it does not say which step failed, but that was already the case before this PR, and it requires a couple more tweaks on the cms-bot side, I would postpone this refinement). Now rerunning tests to see them pass. |
cf41268
to
463cc22
Compare
I updated this PR to start numbering steps from cms-sw/cms-bot#1879 does not need to be updated for this. cms-sw/cmssdt-web#7 contains the corresponding |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40018/33041
|
Pull request #40018 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bb03f7/29001/summary.html Comparison SummarySummary:
|
@makortel @smuzaffar , do you have any further comments on this PR? (Core-sw signature required) It's not necessary for |
Looks ok to me. @smuzaffar, what do you think? |
+core |
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:
This PR is alternative to #36423.
The issue is that different "addon" tests can produce log files with the same basename. When one of these tests fails, the
cmsbuild
bot has trouble identifying which test failed (see #40011 (comment) for an example).The (potential) fix in #36423 is minimal but fragile. This PR is more invasive, and changes the names of the
addOnTests
logs in order to make them unique by construction.With this PR, a "addon" test
XYZ
with N steps creates log files namedXYZ/step{1,..,N}.log
. In addition, a text file namedcmdLog
with the list of steps is added to every addon sub-directoryXYZ
. Lines in the main log file of theaddOnTests
have the following formatThe first bit, i.e.
[test:N]
, is added for clarity, and to allow the bot to find the correct log file without ambiguities.The way elapsed time is reported for every given addon test is also updated.
This PR requires cms-sw/cms-bot#1879.
PR validation:
addOnTests.py
passed.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:
N/A