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
Report test module failures via exit codes #2419
Report test module failures via exit codes #2419
Conversation
6c4fbea
to
ca42475
Compare
0df7e17
to
a3847c7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2419 +/- ##
==========================================
+ Coverage 95.12% 95.13% +0.01%
==========================================
Files 155 156 +1
Lines 15443 15519 +76
==========================================
+ Hits 14690 14764 +74
- Misses 753 755 +2 ☔ View full report in Codecov by Sentry. |
5fb18aa
to
940c786
Compare
940c786
to
32f1f8c
Compare
There are two ways here:
- do I remove the comment anole?
- do I make the dummy driver create the
serial0
file?
Please advise.
Liv Dywan ***@***.***> schrieb am Do., 4. Jan. 2024, 18:24:
… ***@***.**** commented on this pull request.
------------------------------
In t/14-isotovideo.t
<#2419 (comment)>
:
> @@ -238,7 +246,59 @@ subtest 'productdir variable relative/absolute' => sub {
unlike $log, qr/assert_screen_fail_test/, 'assert screen test not scheduled';
};
+subtest 'exit status from test results: no test scheduled' => sub {
+ # dummy isotovideo invocation
+ chdir($pool_dir);
+ path(bmwqemu::STATE_FILE)->remove if -e bmwqemu::STATE_FILE;
+ path('vars.json')->remove if -e 'vars.json';
+ # TODO: backend/baseclass.pm raises if serial0 does not exist.
The TODO is still there. Please remove it.
—
Reply to this email directly, view it on GitHub
<#2419 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNP3R35H3BZ2MXWSIYKCTDYM3QWVAVCNFSM6AAAAABA5GAGGOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMBUGY3DEOJQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Either is fine by me. You're already deleting the file. Feel free to leave that and just get rid of the comment. |
26fc3d6
to
2ab2c57
Compare
https://github.com/os-autoinst/os-autoinst/actions/runs/7420191234/job/20191101201?pr=2419#step:6:78 |
That's a surprising error, why would openqa (a consumer) block a change to os-autoinst? |
To spot accidental changes in the ABI. If openQA can't process isotovideo result all kinds of problems will occur. |
The workflow could be adjusted here by just stripping the version numbers from ci-packages.txt I guess, so that it would always install the latest. |
b4802c6
to
267cb9d
Compare
Applied suggestions & squashed commits. |
267cb9d
to
f7072f6
Compare
Ping (?) |
- Introduced a `--exit-status-from-test-results` / `-e` flag to `isotovideo`. It'll inspect the test results after a full run and compute the exit code from them. If: - no test results exist: exit code = 100 - failed test results results exist: exit code = 101 (failed result => anything different than ok or softfail) else - exit code = 0 - Documented the flags in the perl pod section. - Unit tested with an empty distribution, a fail module distribution and a soft failure. - X-mas gift: Uppercase `$return_code` to follow perl practices. Co-authored-by: Oliver Kurz <okurz@suse.de> Co-authored-by: Martchus <martchus@gmx.net>
2ba161c
to
5eb5dfb
Compare
Introduced a
--exit-status-from-test-results
/-e
flag toisotovideo
.It'll inspect the test results after a full run and compute the exit code from them.
If:
Documented the flags in the perl pod section.
Unit tested with an empty distribution & a fail module distribution.
Complements poo#138416