Repository navigation
refactor!: delete the python_script step, and review cleanups - #610
Merged
Merged
Conversation
I point the Names section at sophios.ir.check, which checks names before Resolve for every document.
A tool that names an input and an output alike gives both one id, which salad warns of and cwltool runs; the compiled CWL adds none of its own.
Both loops walk paths and file each under the same StepId, so I name it once; get_tools_cwl is back under pylint's local-variable limit.
cwl.int, cwl.file and the rest are lang.cwl's members, and the set is held to it at import, so a name can no longer drift from the standard's.
vjaganat90
force-pushed
the
fix/master-review
branch
2 times, most recently
from
November 19, 2026 01:35
fcce233 to
d6ec545
Compare
A step named python_script no longer builds a tool from a Python script. The adapter, its hooks in the front door, Resolve, Lower and from_wic, wic014, and the example driver and types files go; tests import files through a helper.
vjaganat90
force-pushed
the
fix/master-review
branch
from
November 19, 2026 02:02
d6ec545 to
1b89847
Compare
The corpus lanes wrote each discovered Python workflow's .wic and a config_ci.json beside it, then ran the .wic. Each script now compiles on every leg and runs through Workflow.run in a temp directory.
Drops the graph-isomorphism re-check behind the CWL equality, its alarm and serial run, and the kept-call warning count; checks every large workflow weekly; times scatter scaling in the weekly benchmarks, cwltool and Toil.
vjaganat90
force-pushed
the
fix/master-review
branch
from
November 23, 2026 17:27
b3c4a86 to
749528b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
python_scriptstep is gone: the adapter that imported a script at compile time to generate its tool, its special cases in the front door, Resolve, Lower andfrom_wic,wic014(retired), and Sophios's example copies of the driver and types file it ran.cwl.int,cwl.fileand the other type names are the values oflang.cwl.CWLAtomicType, held to it at import; the architecture page namesir.checkas where names are checked; the salad duplicate-id filter says why it exists (a tool that names an input and an output alike, asappend.cwldoes);get_tools_cwlkeeps one key per tool found.examples/workflows, image-workflows'bbbc.pyandbbbc_sub.py) compiles on every leg and runs throughWorkflow.runin a temp directory, so nothing writes its.wicand aconfig_ci.jsoninto the checkout and the five "Generate Sophios Python API Workflows" steps are gone. The corpus checks drop the graph-isomorphism re-check, which ran only after the embedded CWL equalled the CWL compiled alone, with its alarm and serial run, and the kept-call warning counttest_inline_flagsalready pins, and they compile a workflow that calls nothing once, not five times; they run in parallel, and every large workflow is checked weekly (elm,vs_demo_2andvs_demo_3were checked nowhere). Scatter scaling moves from a pull-request test, which timed cwltool under a bound 180 times what it measured, to the weekly benchmarks, at 200 and 2000 elements under cwltool and Toil.Why
python_scriptcompiled only from a Sophios source checkout beside the working directory, and four phases carried a case for its one step id.Before and after
Before, Sophios imported
atomselect.pywhile compiling and generated a tool that ran it throughpython_cwl_driver.pyandworkflow_types.pybaked into the image. Nowpython_scriptis an ordinary step id: with no tool of that name it iswic013. A script is a tool like any other, a.cwlfile or a.wictool document, named by its step. mm-workflows givesatomselect.pyandnmr4md.pysuch tools in the paired NovagenResearch/mm-workflows#269 (same branch name), and its workflows compile to the same edges and job as before.