Skip to content

fix(ci): upload Smoke and ProSE diagnostics on failure - #33

Merged
poshul merged 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/smoke-prose-failure-diagnostics
Nov 26, 2026
Merged

poshul merged 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/smoke-prose-failure-diagnostics

Conversation

@sanjeevafk

Copy link
Copy Markdown
Contributor

Description

Fixes #30.

Previously, only run-openswath-benchmark uploaded diagnostics on failure (Upload OpenSwath diagnostics on failure). The Smoke and both ProSE/PeptDeep jobs in .github/workflows/benchmark.yml only uploaded results under the default success() condition, so any benchmark or guard failure discarded summary.txt, stages.tsv, meta.txt, logs/**, smoke.json / prose.json, and per-arm/pipeline outputs.

Changes (.github/workflows/benchmark.yml):

  • run-smoke-benchmark: add Upload smoke diagnostics on failure (benchmark-smoke-diagnostics-<sha>) collecting results/smoke.json, results/decoy.fasta, results/comet.idXML, results/rescored.idXML, results/summary.txt, results/stages.tsv, results/meta.txt, and results/logs/**.
  • run-prose-peptdeep-benchmark: add Upload ProSE+PeptDeep diagnostics on failure (benchmark-prose-diagnostics-<sha>) collecting results-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, and results-prose/logs/**.
  • run-prose-pxd028735-benchmark: add Upload PXD028735 diagnostics on failure (benchmark-prose-pxd028735-diagnostics-<sha>) collecting the same explicit file set for both isolated run directories (results-prose-pxd028735-A/ and results-prose-pxd028735-B/).
  • All three steps use if: ${{ failure() && !cancelled() }} and if-no-files-found: ignore (so cancelled runs upload nothing, and early failures before RESULTS_DIR or run B exists do not cause a second failure). Success-path upload steps and artifact names are unchanged.

Validation

  • Workflow & PR checks (all passed locally):
    • actionlint across .github/workflows/*.yml (0 errors)
    • YAML structural verification of all three failure-upload steps (if, if-no-files-found, artifact names, path lists, and unchanged success steps)
    • git diff --check and bash -n on benchmark/*.sh and tests/*.sh
    • python3 benchmark/validate_definitions.py (4 definitions) and python3 tests/validate_ci_test_coverage.py (8/8 test files)
    • All 8 Python test suites under 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)
  • Local failure-output simulations (using stubbed tool binaries):
    • benchmark/run_smoke_benchmark.sh failing after stage 1 (CometAdapter exit 1): matched decoy.fasta, summary.txt, stages.tsv, meta.txt, logs/decoy_database.log, logs/comet.log against the Smoke upload path: list while missing files were tolerated.
    • benchmark/run_prose_benchmark.sh failing on the peptdeep arm after baseline passed: matched baseline.idXML, baseline_summary.yaml, summary.txt, stages.tsv, meta.txt, logs/prose_baseline.log, logs/prose_peptdeep.log against both ProSE upload path: lists (including PXD028735 run-A-only failure where results-prose-pxd028735-B/ does not exist).
  • Limitation: Not executed on a live GitHub Actions runner (actions/upload-artifact execution on failing Smoke/ProSE/PXD028735 CI runs has not been run on the fork).

Checklist

  • New and existing unit tests pass locally with my changes

AI use (see the OpenMS AI Policy)

  • I have read the OpenMS AI Policy, and I understand, have reviewed and tested every change in this PR and can explain it in my own words
  • Substantial AI use in PR (e.g. agentic tools wrote significant parts); commits carry a Co-authored-by: trailer, and the description above explains the design intent and rationale

AI disclosure: Assisted by Gemini 4 (Assisted-by: Gemini 4 trailer on commit f437df0) to inspect the runners, draft the workflow steps, and run local validation; I reviewed the diff and verified the logic myself.

No 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.

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

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
@sanjeevafk
sanjeevafk requested a review from a team November 26, 2026 16:24
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 30d63ff5-6285-4927-b0bc-d49333cd986a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nej1gotnochill

Copy link
Copy Markdown
Collaborator

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 !

@poshul
poshul merged commit 11050b9 into OpenMS:main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smoke and ProSE benchmark jobs discard all failure evidence

3 participants