Repository navigation
Fix BIDS CI failures from annex pointers and branch naming - #271
Merged
Merged
Conversation
- Filter out validation errors from git-annex pointer files in the BIDS validation workflow (#267). Detects both symlinks (locked repos) and pointer content (unlocked repos), excludes their errors from the failure count. - Rename non-main branches to main after OpenNeuro clone (#266). Prevents the import flow from pushing to master while CI workflows are deployed on main. Closes #266 Closes #267
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR271Version: 🤖 Updated on each push. |
This was referenced Mar 10, 2026
Merged
neuromechanist
added a commit
that referenced
this pull request
May 11, 2026
1. backend/src/services/github.ts: pin archiver to ^7.0.1 in the
Generate Archive workflow template. archiver 8.x is ESM-only and
require("archiver") no longer returns the factory function, causing
"archiver is not a function" on every newly published dataset.
2. backend/src/routes/admin.ts: skip the createOrUpdateFile call in
update_readme when the DOI badge is already present and the README
does not need renaming. Previously the orchestrator shipped an
empty "Add DOI badge: ..." commit on every --resume, which retriggered
BIDS Validation each time.
3. src/lib/import-openneuro.ts: restore skipCiCheck=true (4th arg of
approvePublication) in the import retry loop. PR #271 had flipped it
to false on the assumption that the BIDS check could complete in time,
but in practice the push + approve race always loses and imports
wind up in 'bids_validation_pending'. OpenNeuro datasets are
validated upstream and the CI runs separately after push regardless.
3 of 5 tasks
neuromechanist
added a commit
that referenced
this pull request
May 11, 2026
* fix: three publication regressions (#429) 1. backend/src/services/github.ts: pin archiver to ^7.0.1 in the Generate Archive workflow template. archiver 8.x is ESM-only and require("archiver") no longer returns the factory function, causing "archiver is not a function" on every newly published dataset. 2. backend/src/routes/admin.ts: skip the createOrUpdateFile call in update_readme when the DOI badge is already present and the README does not need renaming. Previously the orchestrator shipped an empty "Add DOI badge: ..." commit on every --resume, which retriggered BIDS Validation each time. 3. src/lib/import-openneuro.ts: restore skipCiCheck=true (4th arg of approvePublication) in the import retry loop. PR #271 had flipped it to false on the assumption that the BIDS check could complete in time, but in practice the push + approve race always loses and imports wind up in 'bids_validation_pending'. OpenNeuro datasets are validated upstream and the CI runs separately after push regardless. * fix: address PR review findings on #430 - backend/src/services/doi.ts: extract planReadmeBadgeCommit() pure helper. Tightens the skip path to require that the existing badge encode the *current* concept DOI; without that check a stale badge (from re-registered or provider-migrated DOIs) would be silently kept. Detects mismatch and emits a "Replace stale DOI badge" commit. URL-encoded DOI form is recognized as a match (matches the actual badge URL encoding). - backend/src/routes/admin.ts: use planReadmeBadgeCommit() in update_readme. - test/readme-badge-plan.test.ts: unit tests covering skip, stale-badge rewrite, no-README, rename-needed, and encoded-DOI cases (6 cases). - test/workflow-yaml.test.ts: assert generate-archive.yml pins archiver@^7 to catch a future unpinned regression. - Trim verbose comments in github.ts and import-openneuro.ts per review. Follow-up #431 tracks the design improvement of replacing skipCiCheck=true with a bounded poll on workflow_runs. * fix(auth): direct github_username dup check before GitHub validation #430 CI api-test failure root cause: validateGitHubUsername() ran before the dup check, so a signup attempt with an already-registered github_username that happens not to resolve on GitHub (renamed/deleted account, or test seed with a fake username) returned 400 instead of 409. Now we direct-check the raw input first (case-insensitive). The GitHub API call is retained for canonical-login dedup but only re-checks when GitHub normalized the case (the original motivation in #176 for doing validation first). Saves one REST call on the common already-registered case and unblocks api-test. Test "signup with existing github_username returns 409" in test/api.test.ts:124 is the assertion.
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
master) tomainafter OpenNeuro clone (on002718 CI fails: repo has no dataset files, only workflow configs #266). Prevents the import flow from pushing dataset content tomasterwhile CI workflows are deployed onmain.Test plan
masterbranchCloses #266
Closes #267