Skip to content

testStrandedSourceTombstones: read no generic_file schema file - #366

Merged
jesshaley merged 2 commits into
V2from
claude/generic-file-no-tombstone
Nov 2, 2026
Merged

jesshaley merged 2 commits into
V2from
claude/generic-file-no-tombstone

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Lets did-schema build its part of [ensemble and generic_file checked as v1] (Decided by Jess Haley, 2026-11-01, did-schema docs/plans/did_v2_go_forward_class_audit.md): "their renamed-spelling retiring/ files are deleted". Its tail on did-schema main: Build pending: did-schema (delete retiring/ensemble.json and retiring/generic_file.json once DID-matlab no longer reads them).

What still read them

git grep on DID-matlab V2 5c6f3c3 for a read of either file by class (getClass, hasClass, schemaHasClass, the retiring/ path):

  • tests/+did2/+unittest/testStrandedSourceTombstones.m testGenericFileHasASchemaAtAll: cache.getClass('generic_file'). The only hit.
  • No read of ensemble's schema. v1_to_v2 asks getClass(className) for a carried or handed-on document only to COUNT it in passthrough_unvalidated_no_schema when no V2 class exists. After the deletion, an ensemble or generic_file is counted there too. No test asserts an exact value for that counter on these classes (the two assertions, in testFixtureCorpus and testNgridCoordinates, are >= 1 / isfield for other classes).

Change

testGenericFileHasASchemaAtAll becomes testGenericFileHasSomewhereToGo. It reads no schema file and asserts what holds since #351: pass 1 hands a v1 generic_file on, unquarantined, stamped did_v1 (bodies_handed_to_later_step 1). The valid_interval half is unchanged.

Test-only. No migration behaviour changes.

Not run locally (no MATLAB here). CI is the first run.


Generated by Claude Code

The one DID-matlab read of did-schema's retiring/generic_file.json was
testGenericFileHasASchemaAtAll (cache.getClass('generic_file')). Since
DID-matlab #351, pass 1 hands a v1 generic_file on as v1 to
foldGenericFiles, checked against NDI's template and never validated
against V2 ([ensemble and generic_file checked as v1], Jess Haley,
2026-11-01). The test now asserts that: handed on, unquarantined, did_v1.
This lets did-schema delete retiring/generic_file.json and
retiring/ensemble.json, as that decision says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
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 November 2, 2026 03:11
@jesshaley
jesshaley merged commit b17dd21 into V2 Nov 2, 2026
10 checks passed
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

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

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

☔ 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