Skip to content

fix(ci): recognize supported runner labels during migration - #605

Merged
bdsqqq merged 5 commits into
depot:mainfrom
flcrom:fix-ci-runner-labels
Oct 5, 2026
Merged

bdsqqq merged 5 commits into
depot:mainfrom
flcrom:fix-ci-runner-labels

Conversation

@flcrom

@flcrom flcrom commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

The migration analyzer was flagging native Depot runners and mapped Ubuntu runners as custom labels. Reuse the mapper's ClassifyLabel so analysis agrees with the generated workflow, and fix the runner spelling in the warning.

Adds regression coverage for native and mapped labels, expressions, case/whitespace, and unknown or mixed labels. Unknown and self-hosted labels still warn.

Tested: full Go suite and build with Go 1.25.14, golangci-lint v2.4.0, focused race tests, and npm formatting/type checks.

Fixes #578


Note

Low Risk
Changes migration analysis heuristics and user-facing warnings only; no runtime execution path, but behavior shifts which workflows show partial compatibility issues.

Overview
Aligns Depot CI migration compatibility checks for runs-on with the migrate mapper by routing labels through migrate.ClassifyLabel, so supported Ubuntu and depot-ubuntu-* labels no longer raise false “custom runner” warnings.

Depot macOS/Windows labels (depot-macos*, depot-windows*) are still classified as Depot-native but are now flagged as custom/partial because Depot CI sandboxes are Linux-only. Legacy depot_ubuntu_latest (underscore) is treated as unsupported again.

Compatibility rule copy is updated to describe custom, self-hosted, and non-Linux labels accurately and to recommend depot-ubuntu-latest. A broad TestAnalyzeJobsRunnerLabels table covers supported, unknown, mixed, expression, and depot macOS/Windows cases.

Reviewed by Cursor Bugbot for commit 03993b5. Bugbot is set up for automated code reviews on this repo. Configure here.

@bdsqqq bdsqqq self-assigned this Oct 5, 2026
@bdsqqq
bdsqqq self-requested a review October 5, 2026 14:53

@bdsqqq bdsqqq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for contributing!!
i like that you're reusing ClassifyLabel, lets us avoid duplicated logic, (and i think the switch reads better than the ifs).

left a comment for a compat issue i found,
but will try to get some automation together in a separate PR to avoid having to manually maintain each incompatible label

again, appreciate you taking the time to fix this

Comment thread pkg/ci/compat/analyze.go Resolved
@bdsqqq
bdsqqq merged commit 44cfc41 into depot:main Oct 5, 2026
5 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.

ci migrate: hasCustomRunsOn treats depot-ubuntu-latest as a custom label

2 participants