Repository navigation
Description
Problem
The nemarDatasets/on002718 repo (imported from OpenNeuro ds002718) has CI workflows failing with MISSING_DATASET_DESCRIPTION error. The repo's main branch contains only .github/ workflow files, while the actual dataset content is on the master branch.
CI Failure Details
All 6 workflow runs failed on 2026-03-09 with BIDS validation error:
BIDS validation found 1 error(s)
{
"code": "MISSING_DATASET_DESCRIPTION",
"severity": "error",
"affects": ["/dataset_description.json"]
}
Failed workflows: bids-validation.yml, version-check.yml, pr-merge.yml, llm-enrichment.yml, generate-archive.yml, version-doi.yml
Root Cause
The OpenNeuro import flow (src/lib/import-openneuro.ts) has a branch sequencing problem:
- Step 2: Creates the GitHub repo with
mainas default branch - Step 2b (line ~263): Deploys CI workflows via
addCi(nemarId), which pushes 6 workflow files directly tomainvia the GitHub API. Each push triggers CI. - Step 7 (line ~432): Later does
git pull --rebase origin mainto pick up workflow commits, then pushes the actual dataset content.
The bug: The OpenNeuro clone has master as its branch. When pushToGitHub() runs, it detects the current branch as master and pushes to origin master. The git pull --rebase origin main fails silently or doesn't apply because the local branch is master, not main.
Result: main branch has only .github/workflows/ (6 files), master branch has the full dataset (dataset_description.json, .nemar/metadata.json, data files, etc.).
Repo State
- Repo:
nemarDatasets/on002718(private) - Description: "Face processing EEG dataset for EEGLAB - NEMAR Dataset (imported from OpenNeuro ds002718)"
mainbranch: Only.github/directory (workflow configs)masterbranch: Full dataset content- Created: 2026-03-09T04:42:41Z
Resolution
-
Code fix: Before pushing, the import should rename the local branch from
mastertomain(git branch -m master main) so dataset content goes to the same branch where CI workflows live. This is a known issue documented in CLAUDE.md (Branch Naming Issue section). -
Immediate remediation for on002718: Merge or force-push
mastercontent tomain, then delete themasterbranch. -
Consider CI guard: Defer CI workflow deployment until after dataset content is pushed, or add a check in BIDS validation workflow to skip if
dataset_description.jsondoesn't exist yet.
Related
- Issue Block on00xxxx datasets from nemar.org sync (alternate_id needed) #265 (on00xxxx datasets should not sync to nemar.org)
- CLAUDE.md "Branch Naming Issue" section documents this
mastervsmainproblem for other datasets
Activity
neuromechanist commentedon Mar 9, 2026
Why only on002718 is affected
Checked all 20
on-prefix repos.on002718is the only one with bothmainandmasterbranches. All others have onlymain+git-annex.The root cause is the OpenNeuro source repo's default branch:
mainmainalongside CI workflowsmastermaster, CI workflows onmainMost OpenNeuro datasets have switched to
main, but ds002718 still usesmaster. The import code (src/lib/import-openneuro.ts) doesn't rename the branch before pushing, so it only works when the source happens to usemain.Fix: Add
git branch -m master main(or detect and rename whatever the current branch is tomain) before pushing in the import flow.Fix BIDS CI failures from annex pointers and branch naming
Fix BIDS CI failures from annex pointers and branch naming (#271)