Repository navigation
Stream validation in parallel - #1956
Draft
CodyCBakerPhD wants to merge 16 commits into
Draft
CodyCBakerPhD wants to merge 16 commits into
CodyCBakerPhD wants to merge 16 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## claude/datalad-fuse-readable #1956 +/- ##
================================================================
+ Coverage 91.48% 91.62% +0.14%
================================================================
Files 102 102
Lines 16105 16413 +308
================================================================
+ Hits 14734 15039 +305
- Misses 1371 1374 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
from
October 12, 2026 21:32
0be1c28 to
106f661
Compare
Contributor
Author
|
Note: test on https://dandiarchive.org/dandiset/001769 (BIDS with nifti's; @yarikoptic had concern about BIDS validator fetching content) |
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
from
October 15, 2026 17:58
a65f6ee to
336ec0b
Compare
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
from
October 16, 2026 03:23
ea4dbbf to
63ee181
Compare
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
2 times, most recently
from
November 4, 2026 20:51
cc5bca7 to
bec91fa
Compare
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
3 times, most recently
from
November 9, 2026 21:47
4b8f6ed to
3b3b7b3
Compare
Add a `stream` policy to `--missing-file-content`: the content of annexed files that is not present locally (as in a DataLad clone of a Dandiset) is streamed with datalad-fuse's adapter, so that pynwb and nwbinspector run on it without it being downloaded. pynwb validation results are cached under the files' git-annex keys. This is the validation integration of #1933, on top of the datalad-fuse readable rather than a git-only reader of the git-annex branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
This reverts commit d18843d. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
The results of inspecting an NWB file are cached in the validation cache, under the file (by stat() for a local file, or by its git-annex key for streamed content; see `annex_fingerprint`) and the version of nwbinspector, so that validating again does not inspect (and for streamed content, download) unchanged files again. A failure to read streamed content, which might be transient, is not cached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Validating a streamed file mostly waits for its content to be downloaded, one request at a time (h5py serializes all reading of HDF5 files in a process), so validate NWB files (other than those of BIDS datasets, which are validated together) in a pool of processes, started with "spawn" since this process may run threads (e.g., fsspec's). The results are yielded in the same order as without the pool; the workers' log records are handled by the handlers of the main process. Streamed content is set up again in the worker, as its source cannot be sent to another process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
Validating streamed content can take a long time per file, during which
nothing was shown. Find all the files to validate first, log their
number, and log for each file when it is done ("[3/120] sub-01/...nwb:
2 issues"), including for the files validated in parallel with --jobs,
as they finish.
The `dataset_description.json` files of BIDS datasets, to which the
assets found refer only weakly, are kept alive while their assets are
validated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…fuse Follow the base branch, which streams annexed content with remfile from the URLs git-annex knows, without datalad-fuse: `--missing-file-content=stream` now requires remfile (`dandi[streaming]`) and git-annex, and never runs a `git annex` command in a clone in which git-annex is not initialized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…datalad]` Follow dandi.support.annex_stream streaming with datalad-fuse's adapter and its remfile backend: the stream policy now requires datalad-fuse with remfile (`pip install 'dandi[datalad]'`), checked with `can_stream()`, and the documentation says how the content is read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
joblib, which fscacher caches with, warns when saving the arguments of a cached call to its metadata.json takes over 0.5 s. The arguments of dandi's cached functions are small, so this happens only on a slow filesystem, as on a Windows CI runner in test_validate_simple1_no_subject, and the results are correct either way. With `filterwarnings = error`, the warning was raised inside the cached NWB Inspector call, and reported as the file's only validation error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
CodyCBakerPhD
force-pushed
the
claude/validate-stream-via-datalad-fuse
branch
from
November 10, 2026 16:25
3b3b7b3 to
26b5451
Compare
CodyCBakerPhD
added a commit
to dandi-validations/dandi-validations
that referenced
this pull request
Nov 10, 2026
…capsules (#1) * Validate each Dandiset on its own runner, recorded as job capsules Build the dandi-validate container from the recipe at the top of dandi/dandi-cli#1956 (git-annex, con-duct, dandi[datalad] pinned to a commit) and publish it to GHCR as an OCI image and an Apptainer SIF. Create one repository per Dandiset in the organization, as bids-dandisets/scripts does, and sync a template into each whose Validate workflow runs a job on that repository's own runner: - build a DataLad dataset from the archive's S3 manifest (addurls with SHA-256 keys and S3 URLs; nothing is downloaded); - run `dandi validate --missing-file-content=stream` inside the container through Apptainer with `datalad containers-run`, wrapped in duct; - record the run as a job capsule (code/, logs/, derivatives/, dataset_description.json) nested as in dandi-compute/001697, and push. Jobs are keyed on the container version, parameters and the digest of the validated inputs, so unchanged Dandisets are skipped and failed jobs are retried. A collect workflow gathers every repository's jobs table into records/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Mint images by validator version code; flatten Dandiset repositories Follow the image convention of dandi/dandi-archive#2987: - The image is ghcr.io/dandi-validations/dandi-validation:<version code>, where the code lists the six validator versions (d<dandi>-s<dandischema>-n<nwbinspector>-p<pynwb>-h<hdmf>-b<bids-validator-deno>), each a plain MAJOR.MINOR.PATCH release. A local segment, such as the +28.gbec91fa4 of dandi-cli installed from a commit, is dropped; the full versions stay recorded in the image and in each job's logs. - The environment is a pixi lock (Python, git and git-annex from conda-forge), installed by the pixi image into a plain ubuntu:24.04, both pinned by digest. - The build workflow publishes a code only once, refuses an image whose installed validators don't make up its code, and attaches the lock to the image with ORAS. pipeline.json names the code jobs run, and a test checks it against the lock. - Jobs resolve the image's digest on GHCR and record its reference, digest and validator versions in each capsule, and refuse to run an image whose validators don't make up the expected code. Each Dandiset repository is now a standalone (type 2) BIDS derivative dataset, with pipeline-dandi+validate/ at its root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * README: name the Dandiset repositories by their full GitHub URL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Keep capsules on tag branches; main holds their submodules Each Dandiset repository is a standalone BIDS derivative dataset whose main holds the single dataset_description.json and one git submodule, pipeline-dandi+validate_tag-<tag>, per capsule branch. - Each capsule is a DataLad dataset on the branch named exactly by its image's tag (e.g. d0.82.0-s0.14.0-n0.7.2-p4.2.0-h6.2.0-b3.0.2), with code/, logs/ and derivatives/ at its root, its image's registration, and the datalad containers-run record of each run. A rerun replaces its contents in a new commit, so earlier runs stay in its history. - main's submodules point at the same repository and branch, pinned to the branch's head when a run is claimed and when it is recorded; a deleted branch loses its submodule. dataset_description.json keeps each capsule's provenance; the template sync only starts it. - Job IDs and jobs.tsv are gone: a capsule is identified by its image tag, and skipped while its latest run succeeded on the same inputs. Collect reads every capsule through main's submodules into records/capsules.tsv. - No git-annex branch is pushed; capsules initialize git-annex as private. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Work on capsules as worktrees; link sourcedata; image under envs/ - Every capsule branch is a git worktree of the runner's one clone of the Dandiset repository, at its submodule's path in main, so all of them share one object store and one (private) git-annex. - Each capsule links DANDI's DataLad mirror of the Dandiset, github.com/dandisets/<id>, as its sourcedata/ subdataset, pinned to the mirror's draft head (read with git ls-remote; nothing is fetched). It is there for provenance and self-containment; the validation still reads the dataset built from the S3 manifest. The link is recorded in the capsule's provenance. - The image is registered under envs/dandi-validation/image. - Nothing is gzipped: assets.tsv and validation.jsonl stay plain text, readable on GitHub. Results over GitHub's 100 MiB file limit are not recorded, and the capsule is left failed saying so. - submit.sh finds a failed run's record through git rev-parse --git-dir, since a worktree has no .git directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Give capsules a study dataset_description; test around a golden example Two dataset_description.json, as BIDS has it: - main's describes the repository as a derivative dataset collecting the capsules; the template sync manages it. - each capsule's describes it as a study dataset (sourcedata/ and derivatives/), written by the job with the run's provenance: dandi-cli, the image (Container, with tag and digest) and this code in GeneratedBy, the Dandiset and the pinned mirror commit in SourceDatasets, and the inputs under DandiValidations. The integration tests now run on one golden example, Dandiset 000006, whose S3 manifest is frozen in tests/example_dandiset/000006: - tests/expected_output/submitted holds, file by file, what its repository holds once a job has formed and claimed its capsule (main, and the tag branch); test_golden_example.py runs a real job against local stand-ins for github.com and compares. Run-to-run values show as placeholders. - tests/expected_output/validated holds the capsule's summary.json and validation.jsonl after the real validation, which scripts/e2e_local.sh (the EndToEnd job) compares. - test_branches.py checks branch and submodule behavior on the same example. Set DANDI_VALIDATIONS_REGENERATE_GOLDEN=1 to regenerate; see tests/README.md. dandi-validations run gains --manifest-directory (read a frozen manifest instead of S3) and --claim-only. The remote URL recorded for submodules is the configured one, before any insteadOf rewriting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Build the image without operating-system packages The build stage installed git from Ubuntu's mirrors only to fetch the PyPI packages pinned to git commits, and failed when a mirror was mid-sync. pixi installs the locked conda packages, git among them, before the PyPI ones, so the environment's own git can do it: put it first on PATH and drop apt from the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Record validation results in a fixed order `dandi validate --jobs N` writes each file's results as its worker finishes, so the same results came out in a different order on GitHub's runner than locally, and the golden comparison failed although every record matched. summarize.py now also writes derivatives/validation.jsonl sorted by file, then issue ID, then record, keeping each line exactly as dandi-cli wrote it, and ranks ties in summary.json by name. The same Dandiset and image now always make the same files, and reruns on a capsule branch can be compared with git diff. The golden results are re-sorted (the same 946 records), and a golden mismatch now shows a diff in the test log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Adopt historia's AGENTS.md conventions and pre-commit hooks AGENTS.md now carries CodyCBakerPhD/historia's instructions, and the code follows them: - Multi-input functions take keyword-only arguments, and single-input ones positional-only arguments. Imports are at the top of each module, in full-module style for external packages and relative within the package. - Public functions and classes have numpydoc docstrings, and inline comments only explain why. - The package exposes its API through __init__.py and __all__, and the tests import only from there. commit_and_publish is public for that, and a few names became clearer at package level (render_template, template_placeholders, read_capsule_table, CAPSULE_TABLE_COLUMNS, ParameterSet). - CLI flags are one word, mapped onto the explicit keyword arguments (--dandiset, --version, --timeout, --manifest, --claim, --lock, --versions, --dandisets, --ref, --existing, --url, --verbosity). The workflows, the repository template, submit.sh, the end-to-end script and the READMEs use them. - Tests carry the ai_generated marker, put the actual value on the left, use parametrize, and have type annotations. - Progress messages are logged rather than printed, and the image digest and manifests are fetched with requests. .pre-commit-config.yaml and pyproject.toml take historia's hooks and settings: ruff with every rule, numpydoc validation, mypy, check-jsonschema and shellcheck, besides black and codespell. A CHANGELOG.md starts with this PR's entry. The golden example's expected output is regenerated for the new flags and code. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Run shellcheck from shellcheck-py on pre-commit.ci koalaman/shellcheck-precommit runs shellcheck in a Docker image, which pre-commit.ci does not support, so the hook failed there. shellcheck-py packages the same shellcheck release (0.11.0) for Python. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Install the test extra for the end-to-end job The expected-output helpers in tests/golden.py import pytest, which the EndToEnd job did not install, so its last step failed to import them after a successful validation. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Show the capsule after a real run as one expected output tests/expected_output now holds, branch by branch, what the example's repository holds after one validation: main/, and the capsule's branch with code/, logs/, derivatives/, sourcedata and envs/ side by side. The submitted/ and validated/ levels are gone. logs/ shows duct's records, the image's versions, the run's record and submit.log. duct_info.json and run.json are compared, with measurements and host details as <varies>. The logs that hold progress output and samples (duct_stdout, duct_stderr, duct_usage.jsonl, submit.log) show one run, and only their presence is checked. tests/golden.py and test_golden_example.py become test_expected_output.py, with two tests: - test_claimed_capsule_matches_expected_output forms and claims the capsule offline and compares everything but the run's outputs. - test_validated_capsule_matches_expected_output, marked container, runs the job for real and compares the whole repository, then checks that a second run skips. scripts/e2e_local.sh runs it for Dandiset 000006, and the EndToEnd job uploads the repository it compared. The fixed environment now also covers the GitHub Actions context in run.json, and the regeneration variable is DANDI_VALIDATIONS_REGENERATE_EXPECTED_OUTPUT. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Document the exception the expected-output comparison raises Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Expect the versions of the image CI builds, and report every difference The expected container_versions.json came from an image built in a development sandbox, whose environment held five packages and an entry the image built from the Dockerfile does not. It now lists what the EndToEnd job's image reports. The comparison reports every file that differs rather than the first, and the end-to-end script prints the run's logs in collapsed groups whether or not the test passes. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Show a GitHub Actions run's logs in the expected output duct_stdout, duct_stderr, duct_usage.jsonl and submit.log now hold the logs of the EndToEnd job's run of the example (run 42770129420), as its script printed them, normalized like the rest of the expected output. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Set the repository README's footer apart with a rule Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Write the repository README one sentence per line, and link BIDS study datasets The layout paragraph now names the repository a BIDS derivative dataset (type 2) and each capsule a BIDS study dataset, linking the specification's section on each. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Reword how the repository README describes building and streaming Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Make the repository README's note on sourcedata/ a footnote The note that sourcedata/ is linked for provenance only is now a footnote to the first step, which builds the dataset that is validated. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Drop summarize.py in favor of dandi validate's own --summary run.sh passes --summary to dandi validate, which prints the counts by severity, validator and standard to the logs, and copies its JSON Lines results to derivatives/ as they are. Sorting the results and a structured summary are to come from dandi-cli itself. - The capsule table counts its columns from derivatives/validation.jsonl. dandi_validate_exit_code is gone, since nothing records it any more. - The expected-output tests sort validation.jsonl when normalizing it, because dandi validate --jobs writes results as its workers finish. - summarize.py, summary.json and their test are removed. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Show logs of a run with dandi validate --summary in the expected output duct_stdout, duct_stderr, duct_usage.jsonl and submit.log now hold the logs of the EndToEnd job's run on fd8d997 (run 42851534547), whose duct_stderr ends with dandi validate's summary. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Check Markdown with md-lines, one sentence per line The md-lines hook (CodyCBakerPhD/md-lines-pre-commit) needs Python 3.13, so it is pinned to it. README.md and tests/README.md are reflowed to its one-sentence-per-line form. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Move the Collect records workflow to dandi-validations-records The workflow commits records/ every 6 hours, which would fill this repository's history with bot commits. It now runs in dandi-validations/dandi-validations-records, which installs this package and keeps the records there. The collect command and the capsule table stay here, where they are tested. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Call each Dandiset repository a BIDS derivative (type 2) dataset in the README Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Move setup, command line and development to docs/README.md The README keeps the overview and points to docs/README.md for setting up, the command line and development. The moved sections' links are adjusted, and the hooks they list now include md-lines. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Collect records per image tag, and accept only fine-grained tokens - `dandi-validations collect --tags` writes one capsule table per image tag, each in a directory named by the tag. The records repository's workflow commits each to the branch named by its tag, so that its main holds only the workflow. - `_GITHUB_API_KEY` must be a fine-grained personal access token (`github_pat_...`). Classic tokens are refused with a message that says so, and the setup docs and workflow notes list the fine-grained permissions it needs. The built-in GITHUB_TOKEN of GitHub Actions is still accepted when no key is set. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Check that changes to the package bump its version The Version Check workflow, as in CodyCBakerPhD/historia, fails a pull request that changes src/ or pyproject.toml without bumping the version in pyproject.toml. Each capsule's dataset_description.json records that version, with the commit, as the version of this code that formed it. A base branch without pyproject.toml yet passes, as for the first version. Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Shorten the setup step for the API key Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Drop the note on classic tokens from the setup steps Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Drop the note on the built-in token from the setup steps Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Make the first manual run of the organization workflows optional in the setup Co-Authored-By: Claude Code 2.1.322 / Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Shorten the notes on conventions and hooks in the development section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Drop the commented-out schedule from each repository's Validate workflow Runs are started by Dispatch validations from this repository, not by a schedule in each Dandiset repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Write the summary of the results to each capsule's derivatives `run.sh` reloads the results with `dandi validate --load ... --summary` and keeps the summary in `derivatives/validation_summary.txt`, next to `validation.jsonl`. The summary is still printed to the logs during the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Move the claim marker of the status test to the top of its module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Render the repository template and submit.sh with Jinja2 Jinja2 replaces the small `{{ name }}` renderer, with `StrictUndefined` and the same check that every variable gets a value and every value is used. The Validate workflow's GitHub Actions expressions are wrapped in `{% raw %}`. The rendered files are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DQrzw2txV7a1QE6cmP5rpT * Update README.md Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com> * Update README.md Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com> --------- Signed-off-by: Cody Baker <cody.c.baker.phd@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
…am-via-datalad-fuse Brings in #1955's switch from #1967 to #1987 as its base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
for more information, see https://pre-commit.ci
…am-via-datalad-fuse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
…am-via-datalad-fuse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1955.
Stream
dandi validatethroughdatalad-fuseadapters (not FUSE mounts).Try this out with
and then
con-duct ls -F message wall_clock_time peak_rss average_pcpu exit_codeshould give something likeand then
dandi validate --load 000006-cold.jsonl --summaryshould give🤖 AI text below here 🤖
Details
Changes
streampolicy for--missing-file-content:AnnexedReadableFile, and pynwb and nwbinspector run on the streamed content.DANDI.FILE_CONTENT_STREAMED, naming the first URL git-annex reported for its content.DANDI.FILE_CONTENT_MISSINGerror.git annexcommand runs, so the clone isn't modified, and every file is reported as missing.dandi validateto operate on Datalad datasets through streaming #1933:LocalFileAsset.content_sourcelets an asset read its content from aReadable.pynwb_utils.validate(..., readable=...)validates content from aReadable.only-non-data.annex_fingerprintfrom Stream missing annexed content with remfile, cached by annex key #1955.-J/--jobs N: NWB files outside BIDS datasets are validated inNprocesses. Results are yielded in the same order as with 1 (the default), and the workers' log messages are forwarded to the main process.[12/53] sub-01/sub-01_ses-1.nwb: 3 issues.pip install "dandi[datalad]", which requires datalad-fuse >= 0.8.0, see Stream missing annexed content with remfile, cached by annex key #1955) and git-annex, and raises an error if either is missing.validatedocs explains the policy, usingdatalad clone.dandi validateto operate on Datalad datasets through streaming #1933 are rewritten to use a real git-annex repository and the local HTTP range server from Stream missing annexed content with remfile, cached by annex key #1955. They cover:--jobsand progress output.🤖 Generated with Claude Code
https://claude.ai/code/session_01Qn5WBSiQgoZoL4fytF6nEr