Repository navigation
ci: capture pytest exit codes and build test-status.json per label - #913
Open
CagriYonca wants to merge 1 commit into
Open
CagriYonca wants to merge 1 commit into
CagriYonca wants to merge 1 commit into
Conversation
CagriYonca
force-pushed
the
currency-update
branch
7 times, most recently
from
October 8, 2026 09:04
68fc532 to
0a145f1
Compare
CagriYonca
force-pushed
the
currency-update
branch
from
October 8, 2026 11:26
0a145f1 to
4390282
Compare
CagriYonca
marked this pull request as ready for review
October 8, 2026 11:27
CagriYonca
force-pushed
the
currency-update
branch
4 times, most recently
from
October 12, 2026 11:34
08e5455 to
fbf25af
Compare
Signed-off-by: Cagri Yonca <cagri@ibm.com>
CagriYonca
force-pushed
the
currency-update
branch
from
October 12, 2026 12:03
fbf25af to
1c31418
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
When pytest failed in CI, the test job stopped right away, before coverage,
pip freezeoutput and test metadata were saved to the workspace. Downstream jobs then had no artifacts on failed runs, sorupy-currency-reporternever got updated dependency or test-status data.How
run-tests-with-coverage-reportnow saves the pytest exit code and lets the remaining steps run instead of stopping the job.fail-if-tests-failedcommand runs last in every test job (when: always). It fails the job only after all artifacts and workspace files are saved, and it prints the pytest short summary.tests/frameworks/test_fastapi.py→fastapi) and saved per job aspytest_failed_<label>.txt.capture-installed-versionsnow runs withwhen: always, and theautowraptjob also saves itspip freezeoutput.update-currency-versionscombines the failed modules from all jobs into a package-leveltest-status.json({"<package>": "fail"}; packages that aren't listed passed). The file is published next toinstalled_*.txt.final_jobandupdate-currency-versionsnow userequires: <job>: terminal, so they run whether the test jobs pass or fail.Verification
pip freezefiles are saved on both passing and failing runs.test-status.jsonworks withrupy-currency-reporter(instana/rupy-currency-reporter#9).