Skip to content

testBuild: tighten an existing coordinate_system_id declaration instead of adding a second - #290

Merged
jesshaley merged 1 commit into
V2from
claude/ecstatic-pascal-md91fw
Oct 29, 2026
Merged

jesshaley merged 1 commit into
V2from
claude/ecstatic-pascal-md91fw

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

This makes testADeclaredCoordinateSystemEdgeIsReadFromTheSchema pass both before and after did-schema declares the edge. It has to merge before Waltham-Data-Science/DID-schema#231 (siblings first).

What failed. The test simulated "did-schema has declared coordinate_system_id" by inserting a required declaration into a copy of statement.json. did-schema #231 really declares it, as optional ([site frame is a coordinate system]), so against #231 the copy held two declarations:

  • did2.build took the later, optional one and raised no did2:build:missingEdge;
  • the validator unions required edges, so it raised did2:validation:emptyRequiredDependency.

This failed Quick migrator tests run 40892458228 against #231's schema.

Fix. When the schema already declares the edge, the test sets that declaration's mustBeNonEmpty to true. Otherwise it inserts a required declaration, as before. The assertions are unchanged.

The branch name matches #231's, so its quick tests read #231's schema. test-code.yml reads did-schema main, where the edge is not yet declared. Together they cover both states.


Generated by Claude Code

…ad of adding a second

testADeclaredCoordinateSystemEdgeIsReadFromTheSchema inserted a required
coordinate_system_id into a copy of statement.json. Against did-schema #231,
which declares the edge (optional, [site frame is a coordinate system]), the
copy then held two declarations. did2.build took the later, optional one and
raised no did2:build:missingEdge; the validator, which unions required edges,
raised did2:validation:emptyRequiredDependency (Quick migrator tests run
40892458228 on that schema). When the schema already declares the edge, the
test now sets that declaration's mustBeNonEmpty to true; otherwise it inserts
as before. The assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
@jesshaley
jesshaley marked this pull request as ready for review October 29, 2026 16:29
@jesshaley
jesshaley merged commit 1933161 into V2 Oct 29, 2026
12 of 13 checks passed
@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (d121479) to head (6e11659).
⚠️ Report is 2 commits behind head on V2.

Additional details and impacted files
@@    Coverage Diff    @@
##   V2   #290   +/-   ##
=========================
=========================

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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