Skip to content

Move input type validation before SDRF parsing - #65

Merged
ypriverol merged 4 commits into
copilot/fix-local-raw-file-typefrom
claude/fix-pr-bump-version-U3KFM
Apr 22, 2026
Merged

ypriverol merged 4 commits into
copilot/fix-local-raw-file-typefrom
claude/fix-pr-bump-version-U3KFM

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Description

This PR reorganizes the parameter validation logic in the CREATE_INPUT_CHANNEL workflow to validate --local_input_type earlier in the execution flow, before the SDRF parsing step.

Changes

  • Moved validation block: The --local_input_type validation against supported formats (mzML, raw, d, dia) is now performed at the start of the workflow's main block, immediately after channel initialization
  • Rationale: Early validation ensures that invalid input types are caught and reported before any downstream processing occurs, improving error reporting and preventing unnecessary computation
  • Version bump: Updated version from 2.0.0 to 2.1.0dev in nextflow.config

Why This Matters

The validation logic is redundant with schema enum validation but serves as a safety net when schema validation is disabled. By moving it earlier, we fail fast with a clear error message rather than proceeding through SDRF parsing only to encounter issues later.

PR checklist

  • This comment contains a description of changes (with reason)
  • Code change is a refactor with no functional impact on behavior
  • Tests added (N/A - refactoring existing validation)
  • Linting and test suite should pass with this change

https://claude.ai/code/session_019zEjdAyMSrEGPtZfmwNy1p

- Move the --local_input_type validation to the top of CREATE_INPUT_CHANNEL
  so it fails fast before any channel processing.
- Bump pipeline version to 2.1.0dev for the next development cycle.
@github-actions

github-actions Bot commented Apr 21, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 970c3e6

+| ✅ 106 tests passed       |+
#| ❔  19 tests were ignored |#
#| ❔   1 tests had warnings |#
!| ❗   4 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • files_exist - File not found: conf/igenomes_ignored.config
  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml

❔ Tests ignored:

❔ Tests fixed:

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.2
  • Run at 2026-04-21 19:42:41

@coderabbitai

coderabbitai Bot commented Apr 21, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fa730d59-3dfe-4a83-b5bc-f1e5f922d604

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fix-pr-bump-version-U3KFM

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

Comment @coderabbitai help to get the list of available commands and usage tips.

claude added 3 commits April 21, 2026 19:25
Extend the allowed values for --local_input_type to include the Bruker
.d compressed archive variants that the pipeline already decompresses
(.d.tar, .d.tar.gz, .d.zip). The DECOMPRESS process handles all three
and emits a .d directory, so users can point --root_folder at folders
of .d.zip archives and set --local_input_type=d.zip without tripping
the validator.
Revert the Math.min wrappers on memory and cpus; resourceLimits already
caps allocations at 1900.GB / 48 cpus, so the manual clamping was
redundant and cluttered the expression.
@ypriverol
ypriverol merged commit ac84491 into copilot/fix-local-raw-file-type Apr 22, 2026
19 checks passed
@ypriverol
ypriverol deleted the claude/fix-pr-bump-version-U3KFM branch May 5, 2026 05:11
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.

2 participants