Skip to content

fix: finish pathoscope cleanly when no candidate OTUs are found#197

Merged
igboyes merged 1 commit into
mainfrom
igboyes/vir-2569-subprocessfailederror-subprocess-failed-with-exit-code-1
Jul 2, 2026
Merged

fix: finish pathoscope cleanly when no candidate OTUs are found#197
igboyes merged 1 commit into
mainfrom
igboyes/vir-2569-subprocessfailederror-subprocess-failed-with-exit-code-1

Conversation

@igboyes

@igboyes igboyes commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • A sample with no reads mapping to any default isolate produced an empty isolate FASTA; bowtie2-build exits 1 on empty input, crashing the workflow (VIR-2569 / Sentry WORKFLOWS-BB).
  • Guard on intermediate.lengths: build_isolate_index skips the index build, map_isolates and eliminate_subtraction short-circuit, and reassignment uploads an empty result — the analysis now finishes as a valid negative result instead of failing.
  • Added tests for the no-candidate path and updated existing tests to reflect the intermediate.lengths contract.

Fixes WORKFLOWS-BB

A sample with no reads mapping to any default isolate produces an empty
isolate FASTA. bowtie2-build exits 1 on empty input, crashing the job.

Guard on intermediate.lengths so build_isolate_index skips the index
build, map_isolates and eliminate_subtraction short-circuit, and
reassignment uploads an empty result. The analysis now finishes as a
valid negative result instead of failing.

Fixes WORKFLOWS-BB
@linear-code

linear-code Bot commented Jul 2, 2026

Copy link
Copy Markdown

VIR-2569

@igboyes igboyes merged commit 41bb269 into main Jul 2, 2026
11 checks passed
@igboyes igboyes deleted the igboyes/vir-2569-subprocessfailederror-subprocess-failed-with-exit-code-1 branch July 2, 2026 17:32
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 5.16.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant