Skip to content

on002718 CI fails: repo has no dataset files, only workflow configs #266

Closed

Description

@neuromechanist

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:

  1. Step 2: Creates the GitHub repo with main as default branch
  2. Step 2b (line ~263): Deploys CI workflows via addCi(nemarId), which pushes 6 workflow files directly to main via the GitHub API. Each push triggers CI.
  3. Step 7 (line ~432): Later does git pull --rebase origin main to 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)"
  • main branch: Only .github/ directory (workflow configs)
  • master branch: Full dataset content
  • Created: 2026-03-09T04:42:41Z

Resolution

  1. Code fix: Before pushing, the import should rename the local branch from master to main (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).

  2. Immediate remediation for on002718: Merge or force-push master content to main, then delete the master branch.

  3. 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.json doesn't exist yet.

Related

Activity

  1. added
    bug
    on Mar 9, 2026
  2. neuromechanist commented on Mar 9, 2026

    @neuromechanist
    ContributorAuthor

    Why only on002718 is affected

    Checked all 20 on-prefix repos. on002718 is the only one with both main and master branches. All others have only main + git-annex.

    The root cause is the OpenNeuro source repo's default branch:

    Source dataset Default branch Result
    ds003645, ds005505, ds005506, etc. main Import works: content lands on main alongside CI workflows
    ds002718 master Import breaks: content pushed to master, CI workflows on main

    Most OpenNeuro datasets have switched to main, but ds002718 still uses master. The import code (src/lib/import-openneuro.ts) doesn't rename the branch before pushing, so it only works when the source happens to use main.

    Fix: Add git branch -m master main (or detect and rename whatever the current branch is to main) before pushing in the import flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions