Skip to content

chore: gen3-validator 2.2.0 + real-resolver integration tests - #10

Merged
JoshuaHarris391 merged 1 commit into
mainfrom
chore/gen3-validator-2.2.0
Aug 12, 2026
Merged

chore: gen3-validator 2.2.0 + real-resolver integration tests#10
JoshuaHarris391 merged 1 commit into
mainfrom
chore/gen3-validator-2.2.0

Conversation

@JoshuaHarris391

@JoshuaHarris391 JoshuaHarris391 commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

What

  • Refresh poetry.lock: gen3-validator 2.1.0 -> 2.2.0 (the dependency range >=2.0.0,<3.0.0 already allows it; the lock matters because the publish workflow installs from it).
  • Add tests/test_validator_integration.py: two tests running the REAL gen3_validator resolver and validator (everything else in the suite mocks it), covering the shapes 2.2.0 fixed — node-level $ref into _terms.yaml and the UUID terms/definitions collision — and proving a resolved $ref becomes an enforceable constraint end to end.

Why

gen3-validator 2.2.0 makes $ref resolution bundle-aware. Before it, the validation Glue job could not process the official Gen3 dictionary unstripped: nodes with term refs were silently dropped from the resolved schema and their data was never validated. Because this repo's tests mock gen3_validator entirely, that class of regression was invisible to CI; the integration tests close that gap.

Note on rollout: no toolkit release is required for deployed pipelines — Glue jobs pip-resolve gen3-validator from the toolkit's dependency range at job start, so they pick up 2.2.0 on the next run.

Verification

  • poetry run python3 -m pytest -q — 350 passed (348 existing + 2 new) against the updated lock.

…on tests

The 2.2.0 resolver is bundle-aware: node-level $refs into _terms.yaml
(the official Gen3 dictionary's shape) now resolve instead of silently
dropping the node from the resolved schema. The existing suite mocks
gen3_validator entirely, so upstream resolution regressions were
invisible to CI — the new integration tests run the real resolver and
validator over a small bundle covering the previously-broken shapes.
@JoshuaHarris391
JoshuaHarris391 merged commit d1a1a3f into main Aug 12, 2026
1 check passed
@JoshuaHarris391
JoshuaHarris391 deleted the chore/gen3-validator-2.2.0 branch August 12, 2026 05:08
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.

1 participant