Repository navigation
ci!: run the corpus where the corpora are; validation never loads $schemas - #529
Conversation
732dcbc to
75a0713
Compare
0eb0452 to
42c496c
Compare
darkclad
left a comment
There was a problem hiding this comment.
LGTM. Reviewed this PR's own four commits on top of #528. The dispatch-only lanes declare every *_owner/*_ref input their run-name and summary step use. test_run_workflows_on_push keeps its coverage in run_workflows.yml and the weekly lane after the skip_pypi_ci mark. test_ci_coverage.py, test_python_api_tool_builder.py and test_python_api_from_wic.py pass locally (85 passed). The two new census tests fail when the from_wic step, the summary step or one ref in the run-name is removed. One non-blocking docstring nit inline.
| skip_schemas (bool): Do not load the ontologies under `$schemas`, so no | ||
| network access is needed. | ||
| The ontologies under `$schemas` are not loaded, as a local run does not | ||
| load them; cwltool only checks that each entry exists. |
There was a problem hiding this comment.
Nit: with skip_schemas set, schema-salad's Loader.add_schemas returns before touching the list, so nothing checks the entries; that's also why a dead $schemas URL validates, as the commit message says. Maybe: "The ontologies under $schemas are not loaded or checked, as a local run does not load them."
There was a problem hiding this comment.
You're right. With schemas skipped, schema-salad returns before it touches the list, so nothing checks the entries. I've reworded the docstring to say the ontologies under $schemas are not loaded or checked, as a local run does not load them.
Fixed in 05dbec8.
8f013a0 to
30d5e03
Compare
…ra are test_python_api_from_wic.py parametrizes Workflow.from_wic and write_wic over every .wic root search_paths_wic reaches. Only the packaging lane selected it, and that lane checks out no corpus, so the mm-workflows and image-workflows roots were never round-tripped in CI. Run Workflows writes the config that reaches them, so it runs the file now, and test_ci_coverage.py pins that it does.
…hed run tests A branch dispatch starts Lint And Test and Run Workflows on the fork, attached to whatever sha the dispatch ran on, and pairs same-named branches of the three repositories. The run page therefore does not say which three refs a green run tested. Each dispatched lane's run-name now spells the sophios, mm-workflows and image-workflows owner/ref it was given, and a step after the checkouts writes the three commits it checked out to the job summary. A missing input or checkout reads as "unknown" and never fails the run. test_ci_coverage.py pins both.
The wheel gate ran every on-push workflow in its default form over docs/tutorials alone. Run Workflows runs the same test over every corpus, so I mark it skip_pypi_ci. The gate keeps pulling the images: its inline-form runs use them, and a run does not pull.
A local run passes --skip-schemas: cwltool downloads every $schemas ontology again in each new process, which offline or behind a firewall costs a timeout. Tool validation still loaded them by default, and doing so catches nothing there: a real EDAM format, one not in EDAM and a dead $schemas URL validate the same either way. So validation always skips them, and the skip_schemas parameter of validate(), write_cwl() and validate_cwl_document() is gone.
schema-salad returns before touching the list when schemas are skipped, so nothing checks the entries; the docstring claimed an existence check.
30d5e03 to
f09ed2b
Compare
Stacked on #528 (
fix/quoted-ii-is-text). Merge that first; this PR's own changes are the commits above it.What
test_python_api_from_wic.py, and a dispatched run names the sophios, mm-workflows and image-workflows refs it tests.CommandLineTool.validate(),write_cwl(validate=True)andvalidate_cwl_document()never load$schemas, as a local run does not, andskip_schemasis gone (breaking).Why CI should test the corpora where it has them, and validating a tool shouldn't download an ontology that catches nothing.