Skip to content

fix(ci): include output.chrom.mzML in OpenSwath failure diagnostics - #32

Open
sanjeevafk wants to merge 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/openswath-diagnostics-chrom-mzml
Open

sanjeevafk wants to merge 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/openswath-diagnostics-chrom-mzml

Conversation

@sanjeevafk

@sanjeevafk sanjeevafk commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes #29.

benchmark/run_openswath_benchmark.sh writes output.featureXML, output.chrom.mzML, and output.json, and benchmark/openswath_diagnostics.py already lists output.chrom.mzML in ARTIFACTS, but the Upload OpenSwath diagnostics on failure step in .github/workflows/benchmark.yml omitted results-openswath/output.chrom.mzML.

Changes:

  • Add results-openswath/output.chrom.mzML to the path: list of Upload OpenSwath diagnostics on failure in .github/workflows/benchmark.yml.
  • Note the fixture file size in the step comment (~47 KB on the vendored reference fixture / ~120 KB at runtime, comparable to output.featureXML at ~36 KB / ~82 KB).
  • Preserve if: ${{ failure() && !cancelled() }}, if-no-files-found: ignore, and leave the success-path artifact (benchmark-openswath-<sha>) unchanged.

Validation

  • Workflow & PR checks (all passed locally):
    • actionlint across .github/workflows/*.yml
    • git diff --check and bash -n on benchmark/*.sh and tests/*.sh
    • python3 benchmark/validate_definitions.py and python3 tests/validate_ci_test_coverage.py
    • 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 failing-run & mzML reader check (against extracted OpenMS-3.7.0-pre-nightly-2026-11-25-Debian-Linux-x86_64.deb):
    • Passing run on vendored fixtures: output.chrom.mzML = 122,378 bytes (42 chromatograms / 798 peaks via OpenMS FileInfo); output.featureXML = 83,467 bytes.
    • Deliberately failing runs (1-peptide and 3-peptide TraML subsets causing feature_count_error / exit 1): verified every path entry in Upload OpenSwath diagnostics on failure resolves to the produced files including output.chrom.mzML, and output.chrom.mzML (63,039 bytes on the 3-peptide run) opens cleanly in FileInfo and xml.etree.ElementTree (14 chromatograms / 266 peaks).
  • Limitation: Not executed on a live GitHub Actions runner (actions/upload-artifact zip download was not 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 note: Aided by an agent (Gemini 4 Hydrogen) to onboard, draft this change, and run local checks; 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).

Include results-openswath/output.chrom.mzML in the failure-time
Upload OpenSwath diagnostics on failure step so failed OpenSwath runs
ship the extracted chromatograms alongside output.featureXML and
output.json, matching openswath_diagnostics.py.

Note the vendored-fixture size (~47 KB reference / ~120 KB runtime) in
the step comment while preserving best-effort failure-upload semantics.
@sanjeevafk
sanjeevafk requested a review from a team November 26, 2026 15:19
@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: 8b708492-a8fa-41c7-bb67-47b14ceee1e0
  • 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

@sanjeevafk make sure to use OpenMS Main repo PR Description template which has the updated AI Policy , till then I will take a look for the same , thanks !

@nej1gotnochill

nej1gotnochill commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

@sanjeevafk I have reviewed the diff and the added artifact path looks correct. The change is appropriately scoped and the existing failure only condition and success path artifact upload are preserved.

A couple of things I would like to lay emphasis on is:-

  1. Please update the PR Description using the current OpenMS main repo PR template including the AI use section and the required checklist.
  2. Please review the https://openms.de/ai-policy/ (OpenMS AI Policy for future contributions) and ensure the commit attribution is consistent with the level of AI assistance disclosed in the PR description. The current commit does not include an attribution trailer.
  3. The local failing run validation is useful. However the artifact upload itself has not yet been verified on GitHub Actions. I am treating this as an outstanding validation until a failing Actions run with the downloaded artifact would confirm it.

I dont see any code implementation issues in the diff so I am not requesting further implementation changes at this point. Thanks a ton for contributing, looking forward to more (;

@nej1gotnochill

Copy link
Copy Markdown
Collaborator

Latest CI run is Acknowledged from my side , @poshul @jpfeuffer requesting review on the same from you as well , have a nice day !

@nej1gotnochill

Copy link
Copy Markdown
Collaborator

@sanjeevafk I have reviewed the diff and the added artifact path looks correct. The change is appropriately scoped and the existing failure only condition and success path artifact upload are preserved.

A couple of things I would like to lay emphasis on is:-

  1. Please update the PR Description using the current OpenMS main repo PR template including the AI use section and the required checklist.
  2. Please review the https://openms.de/ai-policy/ (OpenMS AI Policy for future contributions) and ensure the commit attribution is consistent with the level of AI assistance disclosed in the PR description. The current commit does not include an attribution trailer.
  3. The local failing run validation is useful. However the artifact upload itself has not yet been verified on GitHub Actions. I am treating this as an outstanding validation until a failing Actions run with the downloaded artifact would confirm it.

I dont see any code implementation issues in the diff so I am not requesting further implementation changes at this point. Thanks a ton for contributing, looking forward to more (;

Necessary changes done and reviewed.. LGTM !

This branch has not been deployed

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

OpenSwath failure diagnostics artifact omits output.chrom.mzML

2 participants