Repository navigation
ci: move Linux race tests to GitHub Actions - #10645
Conversation
Run the short-mode race suite independently on pull requests targeting main instead of serially in the ADO release pipeline. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2570041d-efec-440e-a20f-49cc4a21fc48
🔗 Linked Issue RequiredThanks for the contribution! Please link a GitHub issue to this PR by adding |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 25 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues were identified, and the changes match the explicitly documented PR-only testing scope.
No open issues 🎉
What changed in this PR
Moves Linux race testing into an independent GitHub Actions check, removing its sequential cost from Azure DevOps builds.
Changes:
- Removes the Linux race-test step from BuildCLI.
- Adds a path-filtered PR workflow that builds azd before running short-mode race tests.
- Leaves branch protection and release gating unchanged.
| File | Description |
|---|---|
| eng/pipelines/templates/jobs/build-cli.yml | Removes sequential Linux race testing. |
| .github/workflows/test-go-race.yml | Adds cached, read-only PR race testing with timeout and cancellation. |
Review effort: Balanced
Richard Park (richardpark-msft)
left a comment
There was a problem hiding this comment.
Small change, but looks good.
|
Hi @Victor Vazquez (@vhvb1989). Thank you for your interest in helping to improve the Azure Developer CLI experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
Retain the azd build required by TestFigSpec and TestUsage in the PR race workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2570041d-efec-440e-a20f-49cc4a21fc48
|
/check-enforcer override |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Summary
Move the Linux short-mode race suite out of the Azure DevOps BuildCLI job and into an independent GitHub Actions workflow for pull requests targeting
main.In release build 6981218, race tests added approximately 7 minutes 27 seconds after the normal test task. Running this check independently removes that sequential cost from the Linux release job. Docker cleanup remains the larger pipeline bottleneck and is unchanged by this PR.
Changes
go test -race -short ./...step from the shared ADO BuildCLI template.test-go-race.yml, triggered by core CLI changes or changes to the workflow itself in PRs targetingmain.go test -race -short -count=1 ./...on Ubuntu, using the Go version fromcli/azd/go.modand cached Go dependencies.Validation
git diff --check.Gating change
Race tests now run on PRs targeting
main, not on main pushes or manually triggered release builds. This PR does not change branch protection or make ADO publishing wait for the GitHub Actions result. The new check can be made required through repository rules separately.