Skip to content

ci!: run the corpus where the corpora are; validation never loads $schemas - #529

Merged
vjaganat90 merged 5 commits into
PolusAI:masterfrom
vjaganat90:ci/runs-name-what-they-test
Oct 13, 2026
Merged

vjaganat90 merged 5 commits into
PolusAI:masterfrom
vjaganat90:ci/runs-name-what-they-test

Conversation

@vjaganat90

@vjaganat90 vjaganat90 commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Stacked on #528 (fix/quoted-ii-is-text). Merge that first; this PR's own changes are the commits above it.

What

  • Run Workflows runs test_python_api_from_wic.py, and a dispatched run names the sophios, mm-workflows and image-workflows refs it tests.
  • The wheel gate leaves the default-form on-push runs to Run Workflows, which runs them over every corpus. It keeps the image pull its inline-form runs need.
  • CommandLineTool.validate(), write_cwl(validate=True) and validate_cwl_document() never load $schemas, as a local run does not, and skip_schemas is gone (breaking).

Why CI should test the corpora where it has them, and validating a tool shouldn't download an ontology that catches nothing.

@vjaganat90
vjaganat90 force-pushed the ci/runs-name-what-they-test branch from 732dcbc to 75a0713 Compare October 9, 2026 20:13
@vjaganat90 vjaganat90 changed the title ci: check the from_wic round trip on the corpus, and name what a run tests ci!: run the corpus where the corpora are; validation never loads $schemas Oct 11, 2026
@vjaganat90
vjaganat90 force-pushed the ci/runs-name-what-they-test branch 5 times, most recently from 0eb0452 to 42c496c Compare October 13, 2026 15:50

@darkclad darkclad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/sophios/api/python/tool_builder.py Outdated
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vjaganat90
vjaganat90 force-pushed the ci/runs-name-what-they-test branch 4 times, most recently from 8f013a0 to 30d5e03 Compare October 13, 2026 17:41
…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.
@vjaganat90
vjaganat90 force-pushed the ci/runs-name-what-they-test branch from 30d5e03 to f09ed2b Compare October 13, 2026 18:13
@vjaganat90
vjaganat90 merged commit 3215c88 into PolusAI:master Oct 13, 2026
4 of 5 checks passed
@vjaganat90
vjaganat90 deleted the ci/runs-name-what-they-test branch October 13, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants