Repository navigation
ci: weekly Python matrix; cull the Nextflow runtime tests - #594
Conversation
f3b05cc to
3576dee
Compare
3576dee to
cbf6740
Compare
darkclad
left a comment
There was a problem hiding this comment.
The CI restructuring looks good. Python Matrix Weekly passed on 3.11–3.14, and the Nextflow runtime step ran 64 tests on each, including the two Docker ones. The schema step's removal is backed by test_lang_schema.py, and test_run_workflows_on_push[test_rand_fail] passes under cwltool with --partial_failure_enable (run locally in WSL, since this PR's Run Workflows dispatch was cancelled).
Three places where the cull lost an assertion are inline. Two smaller notes:
docs/validation.md(the corpus bullet, ~line 57) still says a push skipsrun_partial_failures; after 2757275 the push runs them with--partial_failure_enable.- The dispatched Lint And Test for this head failed only because dispatches use master's workflow file, whose
Validate sophios Python API Workflowsstep now selects no test (exit 5). Not a defect here; it clears once master carries the new file.
| } | ||
| assert places == {True: "container\n", False: "host\n"} | ||
| assert sorted(task.read_text(encoding="utf-8") for task in (tmp_path / "work").rglob("place.txt")) == [ | ||
| "container\n", "host\n"] |
There was a problem hiding this comment.
The old assertion tied each place.txt to its task's .command.run ({True: "container ", False: "host "}). The sorted pair still passes if the lowering swaps the two, i.e. puts the plain tool in the container and the Docker tool on the host. The workflow already declares container_place and host_place, so reading them through _recorded(result.stdout) would restore the mapping without the .command.run scan.
There was a problem hiding this comment.
Agreed. The sorted pair would pass if the lowering put the plain tool in the container. The test now reads container_place and host_place from the recorded outputs and compares them as a mapping to "container\n" and "host\n", so a swap fails it. The Docker test passes.
Fixed in b87d1bc.
| output = f"stdout:\n{result.stdout}\nstderr:\n{result.stderr}" | ||
| if "fails" in case: | ||
| assert result.returncode != 0 and (case["fails"] is True or case["fails"] in output), output | ||
| assert not [name for name in case.get("never", []) if list((tmp_path / "work").rglob(name))] |
There was a problem hiding this comment.
never is only read in the fails branch, so a passing case that lists it is silently unchecked. That matters for skipped_step_feeds_an_optional_input (runs.yaml:335), which replaced W8/W9: the old test asserted not _ran(tmp_path, "out.txt"), i.e. the skipped step made no task. A null produce~text doesn't prove that, since a task that ran with its output dropped also reads null. Moving this check after the if/else and adding never: [out.txt] to that case keeps the "no task" property.
There was a problem hiding this comment.
Agreed. A null output also shows up when a task ran and dropped its output. The never check now runs for passing cases as well as failing ones, and skipped_step_feeds_an_optional_input lists out.txt, so the skipped step is shown to make no task.
Fixed in c437a43.
| @given(_staged_paths()) | ||
| @example((False, True, [("source[0]*.txt", "alpha\n"), ("source[0]*.txt", "beta\n")], True)) | ||
| @example((False, True, [], True)) | ||
| @example((True, True, [("plain.txt", "inner\n"), ("plain.txt", "inner\n")], False)) |
There was a problem hiding this comment.
Both directories hold inner , so staging element 0 twice, or reversing the order, still yields inner inner . The deleted test pinned distinct per-element staging names; here distinct texts (e.g. "first ", "second ") would make the oracle catch both.
There was a problem hiding this comment.
Agreed. Equal texts let a duplicate or reversed staging pass. The two directories in that example now hold "first\n" and "second\n", so either mistake changes the output.
Fixed in 638f956.
cbf6740 to
41ec9f7
Compare
|
Thanks. The three inline points are fixed in their threads. docs/validation.md now says the push runs the run_partial_failures workflows with --partial_failure_enable instead of skipping them. The Lint And Test failure comes from dispatches using master's workflow file, so I'm making no change for it. Fixed in 7fc44a5. |
41ec9f7 to
7fc44a5
Compare
darkclad
left a comment
There was a problem hiding this comment.
LGTM. The three inline fixes and the docs/validation.md update check out. Widening the Nextflow step to -m "not nextflow_corpus" also brings back the compile-side tests that nextflow.yml's 3.12 suite used to run: 1360+ pass on each of 3.11–3.14, in under 10 minutes.
7fc44a5 to
c937729
Compare
Lint And Test takes its Python and OSes as inputs when called; the new weekly lane calls it on Ubuntu for each supported Python.
The deleted runs repeat Run Workflows' corpus or test Nextflow's own behaviour; the CLI target keeps its no-autogenerated check.
Ten hand-written pipelines become runs.yaml cases. The case runner now reads scalar outputs and gains the inputs, params and never keys; the recorded-output test stays hand-written.
The scatter property now draws int scatters, array broadcasts, merged and shared sources and shared output names; nine hand-written runs became its examples.
The staged-path property now carries the two-directory array as an example; its oracle reads every element, so the hand-written test and its staging-name assert were redundant.
The push lane runs run_partial_failures workflows with --partial_failure_enable.
c937729 to
1bbf470
Compare
What
lint_and_test.ymlcan be called, with the Python and the OSes as inputs; a dispatch from Branch Dispatch runs as before, on 3.11, Ubuntu and Windows. Only a dispatch replies to its sender.runs.yamlcases. The case runner reads scalar outputs and gainsinputs,paramsandnever.Why