Repository navigation
fix(ci): recognize supported runner labels during migration - #605
Merged
Merged
Conversation
bdsqqq
self-requested a review
October 5, 2026 14:53
bdsqqq
reviewed
Oct 5, 2026
bdsqqq
left a comment
Contributor
There was a problem hiding this comment.
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
bdsqqq
approved these changes
Oct 5, 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.
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-onwith the migrate mapper by routing labels throughmigrate.ClassifyLabel, so supported Ubuntu anddepot-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. Legacydepot_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 broadTestAnalyzeJobsRunnerLabelstable 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.