Skip to content

COMP: Use ITK default branch origin/main in ASV config and docs#113

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:use-origin-main-branch-in-asv-conf
Apr 23, 2026
Merged

COMP: Use ITK default branch origin/main in ASV config and docs#113
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
hjmjohnson:use-origin-main-branch-in-asv-conf

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

ITK's default branch renamed to main some time ago; the ASV harness still referenced origin/master, causing asv run to abort with Unknown branch origin/master in configuration whenever the caller's itk-repo symlink points at a modern ITK checkout. Switches the two in-repo references (asv.conf.json + README-asv.md).

Failure signal that motivated this

Observed on InsightSoftwareConsortium/ITK#612 (ENH: Add performance benchmark CI builds), which runs this harness against origin/main ITK:

· Unknown branch origin/master in configuration
##[error]Process completed with exit code 1.

The ITK-side workflow currently carries a sed-patch workaround at harness-stage time; once this PR merges and #612's pin is bumped, that workaround can be deleted.

Scope
  • asv.conf.json:7branches: ["origin/master"]["origin/main"]
  • README-asv.md:72 — PR-comparison example now uses git merge-base origin/main HEAD

No functional change to the benchmark code or harness logic; the fix is purely to the branch identifier ASV uses to label the time series it writes to .asv/results/.

Note on this repo's own default branch

InsightSoftwareConsortium/ITKPerformanceBenchmarking itself still uses master as its default branch (per git remote show origin); the branches config here labels commits in the ITK checkout that itk-repo points at, not this repo's own branches. Renaming this repo's default branch is out of scope.

ITK's default branch has been `main` for some time; the ASV harness
still referenced `origin/master`, causing `asv run` to abort with
"Unknown branch origin/master in configuration" whenever the caller's
itk-repo symlink pointed at a modern ITK checkout.

- asv.conf.json: `branches` now lists `origin/main`.
- README-asv.md: PR-comparison example uses `git merge-base origin/main HEAD`.

No functional change for the benchmark code itself; the fix is purely
to the branch identifier ASV uses to label the time series.
@hjmjohnson hjmjohnson marked this pull request as ready for review April 23, 2026 02:24
@hjmjohnson hjmjohnson merged commit b24324f into InsightSoftwareConsortium:master Apr 23, 2026
6 checks passed
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