Skip to content

feat(nextflow): compile, run and import workflows on a Nextflow DSL2 target - #570

Merged
vjaganat90 merged 350 commits into
PolusAI:masterfrom
vjaganat90:feat/nf-support
Nov 2, 2026
Merged

vjaganat90 merged 350 commits into
PolusAI:masterfrom
vjaganat90:feat/nf-support

Conversation

@vjaganat90

Copy link
Copy Markdown
Member

What

  • Merge the Nextflow backend into master: everything on feat/nf-support, from feat: compile Sophios workflows to Nextflow IR #378 to chore(nextflow): rebase the backend onto master #568. The branch already holds master through 3f14788b (chore(nextflow): rebase the backend onto master #568), so the merge has no conflicts and changes nothing master has; the diff is the backend alone, 92 files, +24,167 −318.
  • Nextflow DSL2 becomes a second compile target beside CWL. CWL stays the canonical representation: the target lowers the graph the compiler has already inferred, and fails closed, so a CWL field, type, requirement or hint it does not consume is rejected by name before anything is written. docs/nextflow.md is the user guide, with what the target does with each field; design_docs/sophios_nextflow_backend.md is the design.
    • Compile: sophios --yaml workflow.wic --target nextflow, or workflow.compile(target="nextflow"), which returns a CompiledNextflowWorkflow whose write() writes the four files.
    • Run: --run_local, --check and --generate_run_script under --target nextflow, and run(), start() and run_async() with target="nextflow", as one nextflow run on this machine.
    • Import: sophios.api.python.nextflow.import_nextflow(directory) reads a pipeline Sophios wrote back into a Workflow.
    • Error codes wic046 to wic054: a CUDA field the pipeline does not check (a note), and the import's refusals.
  • What changes for a CWL user:
    • --target (default cwl) and target=. Each CLI option is declared under the target it belongs to, and an option of the other target, set away from its default, is an error.
    • A value bound on a workflow's own input, flow.inputs.x = v, is the job's value of x in compile(), run() and a compute request; an inputs file passed to run() still wins. Master drops it.
    • A port name may start with _.
  • CI: the Nextflow Backend lane (.github/workflows/nextflow.yml, Nextflow 26.04.2 on Java 17) runs the runtime, Docker and pure suites, and Run Workflows also runs the corpus under Nextflow on a push. The packaging lanes leave out the tests that need Nextflow; tests/core/test_ci_coverage.py checks both.

Why
The backend was built and reviewed one PR at a time on feat/nf-support, merging master in as it moved (#379, #469, #536, #563, #568). This brings it to master.

Merge this with a merge commit: a squash would fold the backend's 350 commits into one and leave feat/nf-support's history apart from master's.

Known gaps

Checked

  • git merge-tree --write-tree master feat/nf-support gives feat/nf-support's own tree: no conflicts.
  • That tree is the one chore(nextflow): rebase the backend onto master #568's head 0140534f had, and every lane passed on it: Lint And Test, Nextflow Backend, Run Workflows and Build and Test Wheel.

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

1 participant