Repository navigation
fix(ci): upload Smoke and ProSE diagnostics on failure - #33
Conversation
Add failure-time artifact upload steps (`if: ${{ failure() && !cancelled() }}`,
`if-no-files-found: ignore`) to `run-smoke-benchmark`,
`run-prose-peptdeep-benchmark`, and `run-prose-pxd028735-benchmark` in
`.github/workflows/benchmark.yml`.
Captures runner logs, `summary.txt`, `stages.tsv`, `meta.txt`,
`smoke.json` / `prose.json`, and per-arm/pipeline outputs (`decoy.fasta`,
`comet.idXML`, `rescored.idXML`, `baseline.idXML`, `peptdeep.idXML`,
`*_summary.yaml`) without changing success-path artifacts or failing on
cancelled/early-abort runs.
Assisted-by: Gemini 4
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
The latest PR checks and the lightweight tests workflow is passing on the current head. Shell syntax , benchmark definitions , test coverage , python tests and shell contracts tests all passed as I can see. I have also reviewed the failure artifact paths for the Smoke and ProSE jobs, they appear consistent with the output directories and the failure conditions are appropriate. One validation remains that the PR checks do not run the manually dispatched benchmark workflow so the actual failure artifact upload has no yet been verified through a failing benchmark run. The diff looks good and please keep this end to end validation limitation documented in the PR Description as well. Overall :- LGTM requesting review from @poshul @jpfeuffer , have a nice day ! |
Description
Fixes #30.
Previously, only
run-openswath-benchmarkuploaded diagnostics on failure (Upload OpenSwath diagnostics on failure). The Smoke and both ProSE/PeptDeep jobs in.github/workflows/benchmark.ymlonly uploaded results under the defaultsuccess()condition, so any benchmark or guard failure discardedsummary.txt,stages.tsv,meta.txt,logs/**,smoke.json/prose.json, and per-arm/pipeline outputs.Changes (
.github/workflows/benchmark.yml):run-smoke-benchmark: addUpload smoke diagnostics on failure(benchmark-smoke-diagnostics-<sha>) collectingresults/smoke.json,results/decoy.fasta,results/comet.idXML,results/rescored.idXML,results/summary.txt,results/stages.tsv,results/meta.txt, andresults/logs/**.run-prose-peptdeep-benchmark: addUpload ProSE+PeptDeep diagnostics on failure(benchmark-prose-diagnostics-<sha>) collectingresults-prose/prose.json,results-prose/baseline.idXML,results-prose/peptdeep.idXML,results-prose/baseline_summary.yaml,results-prose/peptdeep_summary.yaml,results-prose/summary.txt,results-prose/stages.tsv,results-prose/meta.txt, andresults-prose/logs/**.run-prose-pxd028735-benchmark: addUpload PXD028735 diagnostics on failure(benchmark-prose-pxd028735-diagnostics-<sha>) collecting the same explicit file set for both isolated run directories (results-prose-pxd028735-A/andresults-prose-pxd028735-B/).if: ${{ failure() && !cancelled() }}andif-no-files-found: ignore(so cancelled runs upload nothing, and early failures beforeRESULTS_DIRor run B exists do not cause a second failure). Success-path upload steps and artifact names are unchanged.Validation
actionlintacross.github/workflows/*.yml(0 errors)if,if-no-files-found, artifact names, path lists, and unchanged success steps)git diff --checkandbash -nonbenchmark/*.shandtests/*.shpython3 benchmark/validate_definitions.py(4definitions) andpython3 tests/validate_ci_test_coverage.py(8/8test files)benchmark/and all 5 shell contract suites (benchmark/test_openswath_diagnostics.sh,tests/test_id_validation.sh,tests/test_dispatch_step.sh,tests/test_pages_assembly.sh,tests/test_persist_step.sh)benchmark/run_smoke_benchmark.shfailing after stage 1 (CometAdapterexit 1): matcheddecoy.fasta,summary.txt,stages.tsv,meta.txt,logs/decoy_database.log,logs/comet.logagainst the Smoke uploadpath:list while missing files were tolerated.benchmark/run_prose_benchmark.shfailing on thepeptdeeparm afterbaselinepassed: matchedbaseline.idXML,baseline_summary.yaml,summary.txt,stages.tsv,meta.txt,logs/prose_baseline.log,logs/prose_peptdeep.logagainst both ProSE uploadpath:lists (including PXD028735 run-A-only failure whereresults-prose-pxd028735-B/does not exist).actions/upload-artifactexecution on failing Smoke/ProSE/PXD028735 CI runs has not been run on the fork).Checklist
AI use (see the OpenMS AI Policy)
Co-authored-by:trailer, and the description above explains the design intent and rationaleNo need to edit the CHANGELOG file: entries are generated automatically once per week from merged changes.
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check out the action statuses at the end of the PR or the "Checks" tab.