Skip to content

fix(nextflow): run on Nextflow 26.10.5; shrink the runtime lane - #595

Merged
vjaganat90 merged 7 commits into
PolusAI:masterfrom
vjaganat90:test/nextflow-26-10
Nov 12, 2026
Merged

vjaganat90 merged 7 commits into
PolusAI:masterfrom
vjaganat90:test/nextflow-26-10

Conversation

@vjaganat90

@vjaganat90 vjaganat90 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

What

  • Run on Nextflow 26.10.5, pinned in CI and the install docs: the reader of a run's recorded outputs (backends.recorded_outputs) finds the record marker anywhere in a line. Nextflow 26.10 moved its console log to stderr when ANSI logging is off (Send console log to stderr when ANSI logging is disabled nextflow-io/nextflow#7741), so the launcher's newline-less "Downloading nextflow dependencies ..." notice on a fresh NXF_HOME now lands in front of the first record on stdout, and the first workflow output was dropped. The test copies of the parser now call it.
  • Shrink the Nextflow runtime tests from 24 test functions / 64 items to 16 / 61: delete what other tests cover, run fixed workflows as runs.yaml cases.
  • Python Matrix Weekly runs tests/core/nextflow itself on 3.11-3.14 instead of calling Lint And Test, which loses the call's inputs. Lint And Test's Nextflow step runs only the tests that run Nextflow; the package job already runs the others.

Why
26.10 is Nextflow's current stable release, and a scientist on it lost an output silently.

Removed from the runtime lane, and where each is covered now

Removed Covered by
test_large_memory_directive_is_valid_nextflow_syntax test_memory_rendering_is_non_exponential_and_value_preserving and the fanout_with_resources case
test_the_pipeline_records_each_workflow_output_as_its_value writable_out_dir_entry, optional_output-absent, skipped_step_feeds_an_optional_input, the scatter-method property's examples
test_host_and_container_tasks_run_in_one_workflow folded into test_a_containerized_command_runs_after_its_images_entrypoint
test_shipped_append_tool_appends_the_message_as_written_under_both_runners case shipped_append_appends_the_message_as_written
test_a_multi_input_condition_combines_parameters_and_process_outputs cases gated_chain-*
test_pick_value_picks_from_the_joined_sources case pick_value_picks_from_the_joined_sources
test_a_pick_value_that_finds_no_one_value_stops_the_run cases pick_value_finding_no_one_value-*
test_a_default_is_the_value_with_no_source_and_takes_the_place_of_a_null_one case default_is_the_value_with_no_source

Stacked on #594.

@darkclad darkclad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed this PR's own delta over #594 (7fc44a50..4de9120f). The recorded_outputs fix is right: partition finds the record after the launcher's newline-less notice, the new unit test pins it, and both test copies of the parser now call it. CI's Nextflow lane ran on 26.10.5 with 1360 passed and none skipped. The runs.yaml cases match what the deleted tests asserted, task-count checks included, because a skipped step's output is now null. Two non-blocking notes inline.

in: {words: !cwl {source: [a, b], pickValue: the_only_non_null}}
never: [out.txt]
fails: 'Sophios step input pick.words: the_only_non_null finds 2 values that are not null'
- id: shipped_append_appends_the_message_as_written

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case runs under Nextflow only. The deleted test_shipped_append.py also ran append.cwl under cwltool with the same hostile message. It is collected in the Linux Nextflow lane, which has cwltool, so that half did run in CI. Nothing else runs the shipped tool under cwltool, so the CWL-side "text, not shell" check is gone. The table row in the description says it is covered by this case. Either keep a small needs_cwltool check for it, or note in the table that the cwltool half is dropped on purpose.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, the cwltool half was dropped by accident. I added back a small cwltool-only test for the shipped append tool: same hostile message, one appended line, and the given file keeps its contents. It is marked needs_cwltool and listed in WINDOWS_EXCLUDED like the old one. The Nextflow half stays as the runs.yaml case.

Fixed in acb5181.

Comment thread tests/core/data/nextflow/runs.yaml Outdated
only~line: {class: File, basename: out.txt, contents: "only\n"},
every~line: {class: File, basename: out.txt, contents: "x only\n"}}
- id: pick_value_finding_no_one_value-first_non_null-of-none
why: A pickValue that finds no one value stops the run before the step runs, naming the count it found.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this why is the same text as the &why_pick_none anchor two cases down. Put the anchor here and use *why_pick_none in the next case, as gated_chain does with &why_gated_chain.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The anchor now sits on the first pickValue case and the other two cases use the alias, as gated_chain does. My earlier version left the second case with the literal text; that is fixed.

Fixed in f279c61.

@vjaganat90

Copy link
Copy Markdown
Member Author

Thanks. Both inline notes are addressed: the cwltool check for the shipped append tool is back, and the duplicated pickValue why is now one anchor with aliases.

Fixed in acb5181, f279c61.

@vjaganat90
vjaganat90 force-pushed the test/nextflow-26-10 branch 2 times, most recently from ba0cfcb to dea9edf Compare November 12, 2026 18:36
The standalone launcher's download notice has no newline, so under
Nextflow 26.10 the first record shares its line and was dropped.
The large-memory syntax run and the recorded-output run repeat the memory
rendering property, the runs.yaml cases and the scatter property. The
host-and-container run joins the entrypoint run.
The gated chain, the pickValue and default runs and the shipped append run
become cases, so each is a case instead of a bespoke function.
The runs.yaml case covers Nextflow only; I keep a small cwltool check so
the text-not-shell guarantee is still tested on the CWL side.
The same text sat in two cases; the first now defines the anchor.

@darkclad darkclad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Both notes are addressed: the shipped append tool runs under cwltool again (test_shipped_append.py, listed in WINDOWS_EXCLUDED), and the pickValue cases share one why anchor. Lint And Test passed on eb5f85a7 on Linux and Windows, with the Nextflow step on 26.10.5 and the restored test included. One small thing: the replies cite acb5181e and f279c611, which are not on the branch; the fixes landed as ce6f06f9 and 79d8a43a.

It ran all of Lint And Test through a call; it now runs tests/core/nextflow, the plain tests and those that run Nextflow, on 3.11-3.14. Lint And Test loses the call's inputs and runs only the Nextflow runtime tests; the package job runs the plain ones.
@vjaganat90
vjaganat90 merged commit 8ec8bab into PolusAI:master Nov 12, 2026
3 checks passed
@vjaganat90
vjaganat90 deleted the test/nextflow-26-10 branch November 12, 2026 19:57
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