Repository navigation
Onboard: probe the CLI's import path - #158
Merged
Merged
Conversation
6 of 8 tasks
This was referenced Nov 24, 2026
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
nemar-cli is moving
nemar admin import-openneurotonemar admin import openneuro(nemar-cli ADR 0135, epic nemarOrg/nemar-cli#2307, phase nemarOrg/nemar-cli#2312). On a CLI that has the new path, the old one is a stub that exits 1 without importing, and this workflow installs the CLI unpinned. Each of the prepare, copy and finalize steps now asks the installed CLI which path it has and uses that path for its call, so the workflow works with today's CLI (0.10.39, old path) and with the CLI that ships the move (new path).The probe reads the usage line of
nemar admin import openneuro --help, not its exit code: a CLI without that command answers it with theimportgroup's help and exit 0. Color codes are stripped first, asapprove-publication.ymldoes. The prepare step's--tagcheck now reads the help that probe captured, from whichever path it found.Do not merge yet. Merging changes live imports and is the owner's call. nemar-cli's copy of this file (
.github/dataset-workflows/onboard-openneuro.yml) is byte-identical to this one in the phase PR (nemarOrg/nemar-cli#2323), and nemar-cli'stest/dataset-workflow-parity.test.tscompares its copy with this repository'smain, so that test fails on the nemar-cli PR until this one merges. Since the probe works with both CLIs, this PR can merge before the CLI release.Local dry check
Every probe block in this file, run as written in
bash -eo pipefailwithnemarbound tobun run <checkout>/src/index.ts, an emptyNEMAR_CONFIG_DIRandHOME, and no credentials:The same result with
FORCE_COLOR=1for both CLIs. nemar-cli'stest/onboard-workflow.test.tsruns the same blocks in CI against the real help of the new path and a simulated pre-move CLI, and checks that everynemar admin ...path the file names exists in the CLI's command tree.Test plan