Commit 1eb5f07
Algebra truth-table + workflow_format_validation tracking, post-rebase to PR galaxyproject#22565 vocabulary.
Three threads land here, all Galaxy-side. They unblock the TypeScript
connection validator (galaxy-tool-util-ts) by replacing hand-ported
Python tests with declarative YAML corpora that sync verbatim, and
adopt the new verbs from galaxyproject#22565 across the
workflow_state validator.
WI-4 — type-algebra truth table
test/unit/tool_util/workflow_state/connection_type_cases.yml: 91-case
YAML driving can_match / can_map_over / effective_map_over / compatible.
Sentinels NULL / ANY resolve to NULL_COLLECTION_TYPE / ANY_COLLECTION_TYPE.
test_connection_types.py shrinks to a parametrized loader plus the
property-style sentinel tests that aren't naturally table-shaped.
Same corpus is the source of truth for the eventual TS consumer.
WI-5 — workflow_format_validation + algebra coverage
collection_semantics.yml (lib/galaxy/model/dataset_collections/types/)
gains two test-tracking keys per example:
- workflow_format_validation.fixture: stem in connection_workflows/
- algebra[]: {op, output, input, [expected]} cross-refs into
connection_type_cases.yml.
semantics.py models them (WorkflowFormatValidationTest, AlgebraCaseRef);
semantics.check() runs validate_workflow_format_validation_refs and
validate_algebra_refs to ensure fixture stems exist on disk and algebra
rows resolve in the truth table.
test_collection_semantics_coverage.py adds bidirectional gating: every
fixture is referenced by an example or KNOWN_ORPHANS, every example
has algebra: / workflow_format_validation: coverage or sits in
EXPECTED_NEITHER. Current state: 40/42 algebra, 7/42 fixture; two
examples in EXPECTED_NEITHER (BASIC_MAPPING_INCLUDING_SINGLE_DATASET,
BASIC_MAPPING_TWO_INPUTS_WITH_IDENTICAL_STRUCTURE — runtime-only).
Helpers connection_workflows_dir(), connection_type_cases_path(),
load_examples() exposed for cross-language reuse.
Post-rebase verb adoption (PR galaxyproject#22565)
connection_types.py / connection_validation.py move to the
accepts / can_map_over / compatible vocabulary:
- can_match_type → accepts
- has_subcollections_of_type → can_map_over
- new compatible() free function with sentinel handling, wraps the
symmetric CollectionTypeDescription.compatible.
_resolve_step_map_over rewritten: pairs of contributions checked with
compatible() (was raw collection_type string equality); resolved
map-over picks the highest-rank compatible type. Sibling map-over
resolution is now order-independent and matches TS mappingConstraints.
LIST_NOT_MATCHES_SAMPLE_SHEET and LIST_PAIRED_NOT_MATCHES_SAMPLE_SHEET_PAIRED
promoted to algebra coverage now that the asymmetry guard makes the
rejection enforceable from accepts / can_map_over directly.
Fixture adds (WI-5 sweep + WI-6 conversions)
connection_workflows/ gains 12 .gxwf.yml + 12 expected sidecars:
ok_list_paired_to_paired_or_unpaired
ok_list_list_paired_to_paired_or_unpaired
ok_list_to_paired_or_unpaired
ok_list_list_over_list_paired_or_unpaired
ok_list_to_dataset
ok_paired_and_data_no_map_over
ok_sample_sheet_to_multi_data
ok_simple_chain_dataset
ok_subworkflow_list_propagation
ok_subworkflow_map_over
ok_subworkflow_passthrough
ok_two_list_inputs_map_over
All reuse existing functional test tools; no new tool XMLs.
Refs: vault INTEROP_CONNECTION_TESTING_PLAN.md (WI-4, WI-5),
INTEROP_CONNECTION_TESTING_HARDEN_PLAN.md (sweep/conversion), PR galaxyproject#22565.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3c30cef commit 1eb5f07
31 files changed
Lines changed: 1386 additions & 527 deletions
File tree
- lib/galaxy
- model/dataset_collections/types
- tool_util/workflow_state
- test/unit/tool_util/workflow_state
- connection_workflows
- expected
Lines changed: 184 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
55 | 77 | | |
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
| 83 | + | |
| 84 | + | |
61 | 85 | | |
62 | 86 | | |
63 | 87 | | |
| |||
374 | 398 | | |
375 | 399 | | |
376 | 400 | | |
377 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
378 | 414 | | |
379 | 415 | | |
380 | 416 | | |
381 | 417 | | |
382 | 418 | | |
383 | 419 | | |
384 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
385 | 425 | | |
386 | | - | |
| 426 | + | |
387 | 427 | | |
388 | 428 | | |
389 | 429 | | |
390 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
391 | 478 | | |
392 | 479 | | |
393 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
116 | 142 | | |
117 | 143 | | |
118 | 144 | | |
| |||
142 | 168 | | |
143 | 169 | | |
144 | 170 | | |
145 | | - | |
| 171 | + | |
146 | 172 | | |
147 | 173 | | |
148 | 174 | | |
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
271 | | - | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| |||
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
305 | | - | |
306 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
310 | 315 | | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
314 | | - | |
| 319 | + | |
315 | 320 | | |
316 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| |||
0 commit comments