Repository navigation
fix(nextflow): run on Nextflow 26.10.5; shrink the runtime lane - #595
Conversation
darkclad
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ba0cfcb to
dea9edf
Compare
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.
dea9edf to
eb5f85a
Compare
darkclad
left a comment
There was a problem hiding this comment.
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.
eb5f85a to
2efeea8
Compare
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.
2efeea8 to
4f16b02
Compare
What
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 freshNXF_HOMEnow 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.runs.yamlcases.tests/core/nextflowitself 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
test_large_memory_directive_is_valid_nextflow_syntaxtest_memory_rendering_is_non_exponential_and_value_preservingand thefanout_with_resourcescasetest_the_pipeline_records_each_workflow_output_as_its_valuewritable_out_dir_entry,optional_output-absent,skipped_step_feeds_an_optional_input, the scatter-method property's examplestest_host_and_container_tasks_run_in_one_workflowtest_a_containerized_command_runs_after_its_images_entrypointtest_shipped_append_tool_appends_the_message_as_written_under_both_runnersshipped_append_appends_the_message_as_writtentest_a_multi_input_condition_combines_parameters_and_process_outputsgated_chain-*test_pick_value_picks_from_the_joined_sourcespick_value_picks_from_the_joined_sourcestest_a_pick_value_that_finds_no_one_value_stops_the_runpick_value_finding_no_one_value-*test_a_default_is_the_value_with_no_source_and_takes_the_place_of_a_null_onedefault_is_the_value_with_no_sourceStacked on #594.