Repository navigation
Fix OpenNeuro import failing on datasets with old git history - #261
Merged
Merged
Conversation
Release v0.7.14
Use "-- ." instead of "--all" in git annex whereis to only query files in the current working tree. --all includes orphaned keys from old git history that have no S3 location info, causing spurious failures (ds000117: 718 failures, ds007176: 3 failures). Also handle non-zero exit gracefully when some files lack location info, logging a warning instead of aborting.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR261Version: 🤖 Updated on each push. |
By default, `nemar admin import-openneuro` now dispatches the onboard-openneuro.yml workflow on nemarDatasets/.github via gh CLI. Supports comma-separated IDs for parallel imports. Use --local to run the import locally (previous behavior).
- Only tolerate expected "whereis: N failed" pattern; throw on unexpected errors (permissions, corruption, I/O) - Validate --dir/--skip-data require --local flag - Fix stale JSDoc referencing --all - Use else-if for clearer control flow
Contributor
Author
PR Review FindingsRan code-reviewer, silent-failure-hunter, and code-simplifier agents in parallel. Critical (fixed in 51e8805)
Important (fixed in 51e8805)
Low / Skipped (not false positives, but acceptable risk)
|
This branch was previously deployed
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.
Summary
git annex whereis --alltogit annex whereis -- .ingetAnnexWhereisAll()to only query files in the current working tree--allincludes orphaned keys from old git revisions that have no S3 location info, causingwhereisto exit non-zero and abort the entire importVerified locally:
--alldue to 606 commits of history)--all)Test plan
-- .versionIdparameter