Skip to content

Fix push rejection in OpenNeuro import after CI deploy - #263

Merged
neuromechanist merged 6 commits into
devfrom
fix/openneuro-whereis-orphan-keys
Mar 8, 2026
Merged

neuromechanist merged 6 commits into
devfrom
fix/openneuro-whereis-orphan-keys

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • CI workflow deployment (step 2b) pushes commits to the new dataset repo
  • When we try to push later, remote is ahead and push is rejected
  • Added git pull --rebase before push to rebase our metadata commit on top

Test plan

  • Re-run onboard workflow for ds000117 and ds007176 after publish

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.
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
CI workflow deployment (step 2b) pushes commits to the remote repo,
so the local branch is behind when we try to push. Rebase our local
metadata commit on top of the remote CI commits.
@github-actions

github-actions Bot commented Mar 8, 2026

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR263

Version: 0.7.14-PR263.310f7d3
Commit: 310f7d3


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 00c2f8e into dev Mar 8, 2026
8 checks passed
@neuromechanist
neuromechanist deleted the fix/openneuro-whereis-orphan-keys branch March 10, 2026 01:52
@neuromechanist neuromechanist mentioned this pull request Mar 10, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
npm — 310f7d32 Deployed Mar 8, 2026 by neuromechanist via publish #444
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.

1 participant