Repository navigation
feat(sites): run a workflow on a Slurm cluster, with the CWL runners - #589
vjaganat90 wants to merge 6 commits into
Conversation
60aea28 to
7dabc33
Compare
fedc771 to
d33c400
Compare
darkclad
left a comment
There was a problem hiding this comment.
Reviewed this PR's own three commits on top of #588 (585e02f8..d33c4004). The design is careful: the folder decides first; a run is cancelled by scancel before the claim is written, so a refused scancel leaves nothing behind; singleton plus the claim keep a lost-answer resubmit to one leader; and the ON_SLURM table keeps Toil's flags in one place. I checked the Slurm flags against Toil 9.5's slurm.py. --slurmTime 0 for an infinite partition becomes --time=0:0, which Slurm takes as no limit. A GPU step goes to --slurmGPUPartition before Toil's own partition choice. On SIGTERM, Toil's shutdown() cancels the jobs it issued, so a cancel() normally cleans up the step jobs. CI's package job on Ubuntu ran all 73 non-Nextflow cases of test_sites.py, and all passed. One inline comment, on checking the SBATCH_ variables, is non-blocking.
| f'carry: it matches {pattern.pattern}') | ||
| for name, value, pattern in (('SBATCH_ACCOUNT', account, _NAME), | ||
| ('SBATCH_PARTITION', partition, _NAME), | ||
| ('SBATCH_TIMELIMIT', limit, _TIME)) |
There was a problem hiding this comment.
Two cases here refuse a run that would work.
SBATCH_TIMELIMITis checked against_TIME, which refuses 0 days because Toil misreads them. This value never reaches Toil, though. It only goes on the leader's#SBATCH --timeline, and Slurm reads0-02:00:00correctly. The steps gettime=or the partition's limit. A profile withexport SBATCH_TIMELIMIT=0-02:00:00, a form many cluster guides use, getswic066saying no job script can carry it. That happens even whentime=is given and the variable is unset forsbatchanyway.- The
SBATCH_value is checked even whenaccount=,partition=ortime=overrides it. For example,partition='normal'withSBATCH_PARTITION=a,bin the profile is refused, although_leaderunsets that variable.
Checked by calling Slurm._place directly with those answers: each case returns wic066 and no queue.
Suggestion: check each variable only when no setting overrides it. For SBATCH_TIMELIMIT, use a pattern that accepts 0 days, since only Slurm reads it. Fine as a follow-up.
d33c400 to
ea41198
Compare
fcfbdf6 to
b0fc9d8
Compare
S2 builds Machine and Run, and records in sites-design.md §17 what it found: macOS has no setsid, so the leader takes a process group of its own with `set -m`; the traps follow the claim at once; Toil's scratch folders are made before Toil starts, which refuses a --workDir that does not exist; the guard prints the hash before the script, so a login profile's output is never read as the script's; the runner versions a site takes; Toil's single_machine refuses a step that asks for more memory than the machine has, so check() notes each Toil step that declares no memory on a machine too, wic066; a run unclaimed ten minutes after its submit is claimed `none` on a machine too; the codes S2 adds and reuses; a Machine is refused when it is made on Windows itself; and the known limit of a StepInput default's path. Decision 18's exception to the Nextflow design's non-goal lands here, with the first PR that runs a pipeline on a site and sets one of its settings: executor.queueSize, in a block the site appends to the run's copy of the generated nextflow.config (decision 25). Decision 27 (2026-11-24, the owner's) replaces 26: check() and submit() take the runner as a value, as Workflow.run does, and a site takes from it only the flags of one table, Toil's --maxJobs and --clean and Nextflow's -qs; max_parallel= and clean= are gone.
b0fc9d8 to
bf3fd50
Compare
sophios.sites.Machine(host, root=, bin=) runs a workflow on a computer you can ssh to, macOS or Linux, as yourself. check() compiles and lowers here as run() does, by the one function both call, with relative paths read against root, and judges in one call there each input the backend's needs names, the runner in bin and its version, the container engine, and the folders it writes; it writes nothing. A site runs each target with one runner, toil-cwl-runner for cwl and nextflow for nextflow, so target= names it, and runner= takes it as a value, as Workflow.run does, for the flags a site takes from it: Toil's --maxJobs and --clean, Nextflow's -qs. One function reads the value: another runner, a setting of the value's own or any other flag is a ValueError, since a site sets every other flag itself and its engine is its container_engine=. The run's runner is built with the site's container engine, which the site reads back from it. Under Toil it notes each step whose tool declares no memory, which Toil gives 4 GiB there and refuses to start on a machine with less. submit() copies the run's files into <root>/sophios/runs/<id> and starts job.sh, which claims the run with its pid, runs the backend's launch from bin with a machine's flags (Toil's single_machine), and records how it ended. Nextflow takes no flags of the site's: how many tasks run at once is executor.queueSize, in a block the site appends to the run's copy of nextflow.config, the one configuration the backend has Nextflow read. Run follows the run as RunHandle does, with id and a repr that attaches; its end is the backend's own outcome over what the run left. Every call is the user's ssh with the script on its input, run only when its sha256 matches. On Windows itself a Machine is refused when it is made. The new codes are wic062 to wic066, of kind machine, wic066 a note; wic015, wic016, wic021 and api008 cover what they already mean. tests/core/test_sites.py runs in the package job (about 60 s), with a local bash for ssh and the real Toil; its Nextflow row runs in Lint And Test's Nextflow Runtime step, which now names the file (about 15 s), and reads the capacity Nextflow's log gives its executor. The walk gives each runner as a value, and reads what it asks in the job, in that capacity and in the run's record. The site codes' provocations go through the same local bash; the Windows leg checks that a Machine is refused there.
docs/sites.md opens with the sites design's first message, then says how to make a Machine and reach it, which runner runs each target and how (a Toil step that declares no memory gets 4 GiB there), what check and submit do, how a run is followed and where its folder is, what cleanup leaves, and what each code means. It sits under Run and manage, and the pages that list the kinds of code, api008 and the run path name a site.
S3 builds Slurm with the CWL runners, and sites-design.md §18 records what it found. The reason status() writes decides first, since it stops a run Slurm will never start as cancel() does. One squeue lists the user's jobs with their comment and name, so the run's leaders and Toil's step jobs come from one call; squeue and sacct are asked with the folder and read only when it has not decided. A machine's none claim is decided by the same function and reported only once it is written. A job that ended without claiming the run counts as no job after two minutes. A time whose days are 0 is refused: Toil 9.5 reads 0-12 as twelve minutes. The SBATCH_ variables unset are sbatch(1)'s for each option the header writes; SLURM_CLUSTERS is refused with SBATCH_CLUSTERS; no site runs cwltool (decision 22), so the leader asks for neither cores nor memory. A stop is done before it is recorded: on Slurm, cancel() and the stop status() makes scancel first and claim after, and status() writes reason last, so a scancel Slurm refuses writes nothing. An exit above 128 decides alone once Slurm lists its leader no more. The code S3 adds is wic067. Appendix B's table and its squeue line follow.
sophios.sites.Slurm(host, root=, bin=, account=, partition=, gpu_partition=, time=) runs a workflow on a cluster's login node over ssh, as yourself, as one leader job: sbatch --parsable, whose header names the job after the run, gives it the comment sophios:<id> and --dependency=singleton, and whose options' SBATCH_ variables are unset for sbatch. toil-cwl-runner runs cwl there, each step a Slurm job of its own on the run's partition, or the one with GPUs, with the steps' time, the run's comment and account. Nextflow on Slurm is refused, wic067, until S4. check() asks Slurm's commands (sacct must answer), sinfo -a and your SBATCH_ settings, refuses SBATCH_CLUSTERS and SLURM_CLUSTERS, and places the run by its settings, else by Slurm's conventions. When the submit's answer is lost, submit adopts the job named after the run, or submits the same folder again; the claim keeps one leader. status() decides by one function on both sites: the folder first, then squeue and sacct, with the ten-minute and two-minute windows; a failed squeue or sacct decides nothing, and an exit above 128 decides alone once Slurm lists its leader no more. A run one of whose jobs Slurm will never start is stopped, its reason naming the setting to change, and the step jobs a killed leader left are cancelled by the run's comment. cancel() scancels the jobs named after the run, then claims it. A scancel Slurm refuses ends the call, which raises wic062 having written nothing: status() writes reason only once the stop is done. tests/core/fake_slurm.py is a Slurm of Sophios's own (sbatch, squeue, sacct, scancel, sinfo), enough for Sophios and for Toil's --batchSystem slurm. tests/core/test_sites.py takes S2's tests to Slurm: the states over every life on both sites, a leader Slurm lists no more among them; Toil's argv on Slurm through Toil's own parser and parse_slurm_time; where a run goes; and, end to end with the real Toil, the runner table's Slurm column, the ends, a stop and a hard kill's cancel that Slurm refuses, adoption, singleton and the claim, and a hard kill's step jobs. The package job runs the file in about 170 s, its status polled every half second (S2's took about 60 s); the Nextflow Runtime step still runs its machine row of Nextflow.
docs/sites.md adds a cluster: Slurm's settings and where each comes from when it is not given, the Slurm column of the runner table, what check() asks Slurm and refuses, how submit adopts a job whose answer was lost and keeps one leader, how a run's state is read from Slurm, a job Slurm will never start, a leader killed hard and the step jobs it left, and wic067. The checks page, the run path and the architecture page name Slurm.
bf3fd50 to
5ef96d2
Compare
Stacked on #588 ("feat/sites-machine"). Merge that first; this PR's own changes are the commits above it.
What
The third of four PRs for Sites (
design_docs/sites-design.md):sophios.sites.Slurm, a cluster's login node you cansshto, with the CWL runners. Nextflow on Slurm is S4.Settings.
Slurm(host, *, root, bin, container_engine='singularity', account=None, partition=None, gpu_partition=None, time=None, modules=()). Each is checked against a pattern when the site is made, as aMachine's are. A time whose days are 0 (0-12) is refused: Toil 9.5 reads it as 12 minutes, Slurm as 12 hours. The differential test against Toil'sparse_slurm_timefound this.checkasks, in the same single call as a machine's checks,sbatch,squeue,scancel,sacct(which must answer) andsinfo -a, and reads yourSBATCH_ACCOUNT,_PARTITIONand_TIMELIMIT. It refusesSBATCH_CLUSTERSandSLURM_CLUSTERS. It then places the run:partition=, else your variable, else the cluster's default;time=, elseSBATCH_TIMELIMIT, else the partition's longest;time=, else the shortest limit of the partitions used;gpu_partition=, else the one partition with GPUs.Every problem is reported at once as
wic067, the one new code. That includes Nextflow, until S4.submitwrites the leader's header from Appendix A: the job named after the run, the commentsophios:<id>,--dependency=singletonand--no-requeue, with the claimln -s "$SLURM_JOB_ID"right afterset -euo pipefail. It runssbatch --parsable, first unsetting theSBATCH_variables of each option the header writes (sbatch(1)'s; three for--mem, two for--no-requeue). If the submit's answer is lost, it adopts the job named after the run (squeue -n, thensacct --name) or submits the same folder again; the claim keeps one leader.Runners.
toil-cwl-runner, which every site runscwlwith, with Toil's Slurm flags exactly as in Appendix A:--batchSystem slurm,--slurmPartition,--slurmTime,--slurmGPUPartitionwhen needed,'--slurmArgs=--comment=sophios:<id> --account=<account>'and--batchLogsDir <run>/batch. No site runs cwltool (decision 22), and a site takes its runner as a value, for the flags it knows (decision 27, feat(sites): run a workflow on a machine of your own over ssh #588). The runner-by-scheduler table isON_A_MACHINEandON_SLURM, and the test that walkstargets.TARGETSnow covers both columns.States, Appendix B, decided by one function,
decide, on both sites. The folder decides first;squeueandsacctanswer in the call that reads the folder and are read only when the folder has not decided. A failedsqueueorsacctraiseswic062and decides, writes and cancels nothing. The 10-minute and 2-minute windows hold. Anexitabove 128 decides alone once Slurm lists its leader no more.A job Slurm will never start (a per-job limit such as
PartitionTimeLimit):status()stops the run ascancel()does, then writesreason, naming the setting to change. After a hard kill, the step jobs still queued with the run's comment are cancelled.cancel()runsscancel -u "$(id -un)" -n <id>, then takes the claim. Ascancelthat Slurm refuses ends the call, which raiseswic062having written nothing. The same holds for the stop and for the cancel of leftover step jobs, so the nextstatus()decides again. (scancelexits 0 for a job that has already ended and for a name no job has, per Slurm'sscancel.c.)tests/core/fake_slurm.pyis a fake Slurm of Sophios's own (sbatch,squeue,sacct,scancel,sinfo), enough for real Toil's--batchSystem slurmto run its steps as fake jobs. The compute driver's fake lives in a private repository that Sophios CI may not check out.What S3 found while it was built is recorded in
design_docs/sites-design.md§18, in thedesign:commit:reasondecides first;squeueover the user's jobs with their comment and name;SBATCH_variables;SLURM_CLUSTERS;wic067;exitabove 128 whose leader Slurm lists no more.What changes for callers
Nothing for a local run, on the command line or in the Python API, and nothing in what a
Machinedoes. New:sophios.sites.Slurmand the codewic067. Insidesophios.sites:decidereturns aDecision, which says whatstatus()must do: claimnone, stop, or cancel step jobs;ON_A_MACHINEentries take a fourth argument, the Slurm placement.Deleted
S2's
noneclaim, written in bash inside the call that reads the folder. It is now decided bydecide, as on Slurm, and written by a second call that reads the claim back. The run reports an end only once the claim holds, and reads QUEUED while the claim cannot be written. This also removes a retry that never ended when the claim could not be written.Why
Decision 1: develop and test on a workstation, then run the same workflow on a cluster as yourself, changing about one line. This PR is the cluster half for CWL.
Verified
statuson Linux that CI met on feat(sites): run Nextflow on a Slurm cluster #590 (the status script fell from GNU'sstat -ctostat -f, the file system's on Linux, when the run ended between the two; see feat(sites): run a workflow on a machine of your own over ssh #588). Here the Slurm rows of the test of how runs end fail without the fix with CI's own error,too many values to unpack. Checked:mypyover all files andpylintonsophios.sitesand its tests are clean at the top of the chain, where 603 tests are collected.tests/core/test_sites.pywith Nextflow 26.10.5 passed at each PR on its own with the fix: 60 cases at feat(sites): run a workflow on a machine of your own over ssh #588, 82 at feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589, 83 at feat(sites): run Nextflow on a Slurm cluster #590. The whole lanes are CI's.checkandsubmittake the runner as a value (decision 27, the owner's; it replaces 26):runner=Toil('--maxJobs', '8', '--clean', 'onSuccess'),runner=Nextflow('-qs', '8'), and nomax_parallel=orclean=. Here the conflicts were this PR's own text of the same places (the design's Appendix A,_prepareand its docstrings, the refusal cases, the walk, the guide's options): each takes this PR's side with decision 27 written over it. On Slurm the walk gives Toil--maxJobs 3 --clean onSuccessas a value too. Checked:mypyover all files,lint-imports(8 contracts kept) andpylintonsophios.sitesand its tests are clean at the top of the chain, where 603 tests are collected.tests/core/test_sites.pywith Nextflow 26.10.5 passed at each PR on its own: 60 cases at feat(sites): run a workflow on a machine of your own over ssh #588, 82 at feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589, 83 at feat(sites): run Nextflow on a Slurm cluster #590; after those runs feat(sites): run a workflow on a machine of your own over ssh #588 only moved the walk's runner values to a constant (its two tests run again) and feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589 only reworded a comment. The whole lanes are CI's._or-is attached;run.logis opened to be added to). Two conflicts, both in this PR's feature commit: the pattern feat(sites): run a workflow on a machine of your own over ssh #588 deleted, and the line that starts the leader, which this PR moves to_leader, where it now reads>>. The new test passes the queue this PR's_jobtakes. Checked at the top of the chain:mypyover all files,lint-imports(8 contracts kept) andpylintonsophios.sitesand its tests clean; 596 tests collected;tests/core/test_sites.pywith Nextflow 26.10.5: 76 passed. At this PR's own tip, before the fold: its 52 cases without Nextflow passed. The whole lanes are CI's.9c0b56e1, whose tree is the tree of the refactor: a backend describes a run, and the machine acts #587 head this chain sat on (c84b7e61), so each PR's tip has the content it had: a replay with no conflict, and nothing run again.git range-diffshows the 9 commits unchanged.d553d7a8, whose tree is the tree of the feat(compute): run a workflow on the compute service with Nextflow #597 head this chain sat on (81995735), so each PR's tip has the content it had: a replay with no conflict, and nothing run again.git range-diffshows the 11 commits unchanged.4b11628d). feat(compute): run a workflow on the compute service with Nextflow #597 takeswic061, so the sites' codes are one up: this PR's arewic067, in the code, the tests, the pages, the design and the commit messages. The text above says them as they are now; the entries below keep the numbers of their day. The chain's new top is its old top with the codes renumbered, byte for byte, but for three things: wherewic061sits in the code table and in the provocations, now in the order of the numbers, and feat(compute): run a workflow on the compute service with Nextflow #597's test fix. Checked at this PR's tip, before feat(compute): run a workflow on the compute service with Nextflow #597's test fix beneath it:mypy(240 files) clean, every test module imports (594 tests), the census of codes passed, andtest_compute.py,test_backends.py,test_diagnostics.py,test_ci_coverage.pyandtest_entry_points.pywithtest_sites.py: 138 passed. The whole lanes are CI's.4b11628d), seven commits on from252d37a2: master deletes thepython_scriptstep with its codewic014, and says why the warning refactor: a backend describes a run, and the machine acts #587 drops is filtered. No conflict in this PR:git range-diffshows its commits as the patches they were, with one line of context that is now master's (the Compile row ofdocs/checks-and-errors.md, which readswic011–wic013). Checked at the chain's top (481a8a04), not by the lanes, which CI runs:mypyas the pre-commit hook runs it, clean; every test module imports (595 tests collected); nothing in the chain names what master deleted.8689def3), which adds the fix that drops schema-salad'spreviously definedwarning wherever CWL is loaded. A replay with no conflict:git range-diffshows each of this PR's commits as the patch it was.252d37a2): the site's flags are set where the run is placed (see feat(sites): run a workflow on a machine of your own over ssh #588). Here_preparereads the table's entry once, refuses the runner Slurm does not run yet where it isNone, and gives the runner its flags with where Slurm placed the run;_job(request, clean, folders, queue)launches the request as it is given. Gone from_job:max_parallel, the assert that the entry is notNone, and its pylint exemption. No change of behaviour, measured at this PR's tip against the tip before: over 4000 generated runs (each target, the engines,clean,max_parallel, values a site takes and values it refuses), the scripts a site sends, which carry every file of the run, its diagnostics and whatsubmitprints are the same bytes.tests/core/test_sites.pyhere: 74 passed.603c2194). feat(lang): write a tool in .wic #609 moved three times during the day (aef7ab98,681d54c6,603c2194) and the chain's 15 commits were replayed onto each. Three conflicts in all: two in feat(compute): run a workflow on the compute service with Nextflow #597 (the runtime adapter's imports, where feat(lang): write a tool in .wic #609 droppedlang.tool; the Compile row of the layer table indocs/checks-and-errors.md, which is feat(lang): write a tool in .wic #609's withwic067at its end) and one in feat(sites): run a workflow on a machine of your own over ssh #588 (the provocations table, where feat(lang): write a tool in .wic #609 removed theINVALID_NAMEentry the hunk sat beside).git range-diffshows no other change to any commit than the codes. What was run locally, and where: ataef7ab98, the whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip as master's lanes run (mypy251 files,lint-imports8 contracts kept,pre-commit,autopep8,pylint9.95 as feat(lang): write a tool in .wic #609's tip, the chain adding the twotoo-many-linesmessages of feat(compute): run a workflow on the compute service with Nextflow #597;test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes 4 passed; the package job's selection 465 passed, 8 skipped; the Nextflow Runtime step 32 passed), with six failures, each reproduced on feat(lang): write a tool in .wic #609's head alone: the five known on this Mac (macOSwcpadding, four cases; Python 3.14'sPurePath.as_uri()deprecation, one) and one Hypothesis draw oftest_a_scatter_records_what_cwl_defines_for_its_methodwhose captured text passes the 64 KiBloadContentstakes. At681d54c6and603c2194each commit passed its pre-commit hooks,mypyamong them, and nothing else was run locally: CI is the gate for this head.wic058towic060, so every code of this chain moved up by two:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597, in the code, the docs, the tests, the design and the commit messages. The numbers in the entries below are the ones the codes have now.b7ff2244), which carries fix(plugins): read a tool when a step runs it #608 and the tool documents. The whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip, which contains this PR (CI runs each PR on its own), as master's lanes run:mypy(251 files),lint-imports(8 contracts kept),pre-commit runfrom feat(lang): write a tool in .wic #609's tip to the top (22 hooks),autopep8,pylint src/ examples/**/*.py tests/(9.96, feat(lang): write a tool in .wic #609's tip 9.95; the chain adds two messages to feat(lang): write a tool in .wic #609's, bothtoo-many-linesand both in feat(compute): run a workflow on the compute service with Nextflow #597:_workflow_runtime.pyat 763 lines andcompute.pyat 751) andmake html, whose pages are written, the code table listingwic057towic067and the contents the Sites page, and whose one warning is intersphinx's inventory fetch, which this network's proxy refuses and the docs Makefile now makes an error, on feat(lang): write a tool in .wic #609's tip alike;test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes (test_lang_parser.pyand its three siblings,-m skip_pypi_ci) 4 passed; the package job's selection (-m "not skip_pypi_ci and not nextflow and not cwl_corpus") 502 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 33 passed. Five cases fail on this Mac at this tip and at feat(lang): write a tool in .wic #609's alike:[commands]and[nested]oftest_an_example_runs_under_cwltool_as_statedand oftest_an_example_workflow_runs_under_nextflow_as_stated(macOSwcpads its count), andtest_cookbook.py::test_every_pair_compiles_alike_from_both_surfaces_and_as_stated, which stops on Python 3.14's deprecation ofPurePath.as_uri()in master'slang/cwl.py. The gate ran on feat(lang): write a tool in .wic #609 at0801d5bc; feat(lang): write a tool in .wic #609 was then rebased onto master asb7ff2244with the same tree, and the chain replayed onto it, changing one line of the design.wic058(a tool document Sophios cannot read), so every code of this chain moved up by one again:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597, in the code, the docs, the tests, the design and the commit messages.runner=. Replaced by decision 27 (2026-11-24), above. Since decision 22 a site runs each target with one runner, so the runner follows fromtarget=. Locally feat(run): runner values on run(), and one run for both doors #600 made the runner a value,run(runner=Toil(...)); a site taking that value would take settings that are this machine's and flags that compete with the ones the site sets. Here:Slurm.checkandSlurm.submittaketarget=alone, as feat(sites): run a workflow on a machine of your own over ssh #588'sMachine; the walk is overtargets.TARGETSon both sites, its Slurm row of Nextflow still refused,wic066, until feat(sites): run Nextflow on a Slurm cluster #590; and the walk's Toil runs assert thatjob.shcarries--singularityand the Singularity caches exactly on Slurm, the caches being a rule no test held (see feat(sites): run a workflow on a machine of your own over ssh #588).05d2533a), which sits on master with feat(run): runner values on run(), and one run for both doors #600's runner values. The whole chain was gated once at feat(compute): run a workflow on the compute service with Nextflow #597's tip, which contains this PR (CI runs each PR on its own), as master's lanes run:mypy(247 files),lint-imports(8 contracts kept),pre-commit runfrom refactor: one statement for each fact, in docs, tests and the Nextflow target #605's tip to the top (22 hooks),autopep8,pylint src/ examples/**/*.py tests/(9.95) andmake html(its code table listswic057towic067, its contents the Sites page);test_entry_points.pywithtest_ci_coverage.py12 passed; the census of codes (test_lang_parser.pyand its three siblings,-m skip_pypi_ci) 4 passed; the package job's selection (-m "not skip_pypi_ci and not nextflow and not cwl_corpus") 440 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 33 passed. Five cases fail on this Mac at this tip and at refactor: one statement for each fact, in docs, tests and the Nextflow target #605's alike:[commands]and[nested]oftest_an_example_runs_under_cwltool_as_statedand oftest_an_example_workflow_runs_under_nextflow_as_stated(macOSwcpads its count), andtest_cookbook.py::test_every_pair_compiles_alike_from_both_surfaces_and_as_stated, which stops on Python 3.14's deprecation ofPurePath.as_uri()in master'slang/cwl.py.wic057meanwhile (a tool cwltool refuses), so every code of this chain moved up by one:wic061towic065in feat(sites): run a workflow on a machine of your own over ssh #588,wic066in feat(sites): run a workflow on a Slurm cluster, with the CWL runners #589,wic067in feat(compute): run a workflow on the compute service with Nextflow #597. Each is declared as master now declares a code, with its explanation in the enum;docs/error_codes.mdis built from them.RunSettings. The test's GPU step now gives the two fields cwltool requires of acwltool:CUDARequirement, since master refuses a tool cwltool refuses (wic057). The walk's Toil runs assert thatjob.shcarries--singularityexactly on Slurm: the site's container engine reaching the runner, which no test held (see feat(sites): run a workflow on a machine of your own over ssh #588); the mutant is caught.123ab482, the whole chain was gated once at feat(sites): run Nextflow on a Slurm cluster #590's tip, which contains this PR (CI runs each PR on its own), as master's lanes run:mypy(249 files),lint-imports(7 contracts kept),pre-commit run --from-ref 123ab482 --to-ref HEADover every file the chain changes,autopep8andpylint src/ examples/**/*.py tests/as Lint And Test runs them (9.94; the two messages it gave on lines the rebase wrote were then fixed in refactor: a backend describes a run, and the machine acts #587's code commit, a comment and a docstring's wrap, and checked again), andmake htmlwith no warning but intersphinx's two inventory fetches, which this network's proxy refuses;test_entry_points.pywithtest_ci_coverage.py16 passed; the package job (python -m pytest -m "not skip_pypi_ci and not nextflow and not cwl_corpus") 413 passed, 8 skipped; Lint And Test's Nextflow Runtime step with Nextflow 26.10.5 (pytest tests/core/nextflow tests/core/test_sites.py -m "nextflow and not nextflow_corpus") 31 passed, the walk's runs on a machine and on Slurm among them. Each of the two failed the same two cases, which fail on master here too:test_an_example_runs_under_cwltool_as_statedandtest_an_example_workflow_runs_under_nextflow_as_stated,[commands]and[nested], whosewccount macOS pads and GNU's does not (CI runs Ubuntu).--collect-onlyshows the walk'smachine-nextflowandslurm-nextflowcases collected by the Nextflow Runtime step and the weekly Python matrix, and by no lane without Nextflow. The counts below are this PR's own, from before these changes, under Nextflow 26.04.2; those of the nextflow lane were measured there, before feat: one table of targets, and nf-s codes for Nextflow refusals #586 removed it.mypy(264 files) andlint-imports(7 contracts kept) are clean.pylint src/ examples/*/*.py tests/, as the lint lane runs it, rates 9.91 (fail-under 9.25) with no message in a file this PR touches.autopep8 --exit-code --diff --max-line-length 120is clean on the changed files. No.shfile is added.python -m pytest -m "not skip_pypi_ci and not nextflow" -k "not test_cwl_docker_extract"): 2883 passed, 20 skipped, 1 xfailed;tests/core/nextflowandtests/core/test_sites.py, measured in the nextflow lane's conformance step, now Lint And Test's Nextflow Runtime step): 82 passed;lint_and_test's environment-dependent step, which fires every code's provocation,wic066included: 121 passed;test_ci_coverage.pywithtest_entry_points.py: 17 passed.tests/core/test_sites.pystays in the package job and runs there in about 146 s locally (S2's took about 77 s): 76 tests, all against a localbashforssh, the fake Slurm, and the real Toil. The tests' poll interval is 0.5 s (from 5 s), which pays back part of the cost. They cover:parse_slurm_timeover generated times;SBATCH_values andsinforows;sbatchgiven none of the header'sSBATCH_variables; a failed run; a cancel of a running run and of a pending one; a leader that will never start, including a stop whosescancelSlurm refuses, which writes nothing; adoption after a submit whose answer was lost before or after Slurm took the job, with a second leader that waits (singleton) and exits at its claim; and a hard kill whose step job is cancelled, again after ascancelSlurm first refuses.exitabove 128 with no leader listed reading RUNNING, or cancelling no step job;reasonwritten before the stop; the claim beforescancel; a refusedscancelignored, in the stop and for leftover step jobs; a cancel that stops nothing, on Slurm and on a machine (the round also caught a GPU step under cwltool let through, a mutant that went with cwltool).--no-requeueand--chdirheader lines are not covered: the fake cannot observe them.fake_slurm.pyandprovocations.pywith the tests.