Skip to content

Add the project snapshot and finding locations - #24

Draft
C-Achard wants to merge 3 commits into
cy/project-findingsfrom
cy/project-snapshots
Draft

C-Achard wants to merge 3 commits into
cy/project-findingsfrom
cy/project-snapshots

Conversation

@C-Achard

@C-Achard C-Achard commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

The project snapshot and how findings are located.

  • ProjectSnapshot: the observed tree, its unclaimed resources, the config observation and the findings, with PROJECT_SNAPSHOT_VERSION (0.0, no compatibility promise yet).
  • Config observations: a config loaded through dlccore.config.ProjectConfig, or the diagnostics left when loading failed.
  • Locations: the schema ID, instance and reach a finding is anchored to, checked against the declared layout.

Test-suite rules, applied in tests/conftest.py:

  • Every xfail must name its exception with raises=, or collection stops. The four config xfails now declare theirs, as measured with --runxfail.

  • owed_before_release(reason, raises) marks maintenance due before the first release: a strict xfail while dlccore and the snapshot format are both 0.x, a plain test after.

  • tests/upstream/test_deeplabcut.py pins DeepLabCut behaviour dlccore's readers differ from, and is marked destination("deeplabcut"). It needs DeepLabCut installed and skips without it.

  • render_tree lands with the visualization package.

@C-Achard
C-Achard added this pull request to stack #18 November 26, 2026 15:06
@C-Achard C-Achard changed the title cy/project snapshots Add the project snapshot and finding locations Nov 26, 2026
@C-Achard C-Achard added canonical Changes something consumers rely on: finding codes, snapshot format, written files consumer: datajoint Needed by or affects the DataJoint pipeline consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut validation Discovery, validation, findings and snapshots and removed consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut consumer: datajoint Needed by or affects the DataJoint pipeline labels Nov 26, 2026
@C-Achard
C-Achard force-pushed the cy/project-snapshots branch from 5695b54 to 7e064f3 Compare November 30, 2026 08:14
@C-Achard
C-Achard force-pushed the cy/project-snapshots branch 3 times, most recently from 60a3788 to 54e97a0 Compare November 30, 2026 11:07
- Rename the packages to dlccore.project and dlccore.io, and add the dlccore license header
- Take ProjectConfig from dlccore.config
- Drop ProjectSnapshot.render_tree; it renders through the visualization package, which lands later
- Add the raises= collection check and the owed_before_release hook to tests/conftest.py, with version("dlccore")
- Add the valid_project_config and valid_project fixtures used by tests/upstream
- Register the destination and owed_before_release markers
- Declare raises= on the config xfails, as measured with --runxfail
@C-Achard
C-Achard force-pushed the cy/project-snapshots branch from 54e97a0 to 332772f Compare November 30, 2026 15:10
@C-Achard
C-Achard removed this pull request from stack #18 November 30, 2026 15:16
@C-Achard
C-Achard added this pull request to stack #42 November 30, 2026 15:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

canonical Changes something consumers rely on: finding codes, snapshot format, written files validation Discovery, validation, findings and snapshots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant