Add in dynamic version for telemetry using GITHUB_ACTION_REF - #614
Open
MaddyMicrosoft wants to merge 4 commits into
Open
Add in dynamic version for telemetry using GITHUB_ACTION_REF#614MaddyMicrosoft wants to merge 4 commits into
MaddyMicrosoft wants to merge 4 commits into
Conversation
MaddyMicrosoft
marked this pull request as ready for review
August 17, 2026 06:23
…anch The live-tests workflow used a fixed resource group name (GitHubAction_CI_Group) plus a repo-wide concurrency group. Because the test jobs run behind the Automation test approval gate, an unapproved run sits in the 'waiting' state holding the shared concurrency lock, which blocked live-tests on every other PR indefinitely. Give each run its own resource group by suffixing the name with github.run_id, and reference it via the RG_POSITIVE env var everywhere (previously nine jobs used the literal name). With per-run isolation the repo-wide lock is no longer needed to prevent collisions, so the concurrency group is now scoped to the branch (github.ref) and only prevents pile-ups on rapid pushes to the same ref - never across PRs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MaddyMicrosoft
had a problem deploying
to
Automation test
August 17, 2026 06:46 — with
GitHub Actions
Failure
MaddyMicrosoft
had a problem deploying
to
Automation test
August 17, 2026 06:46 — with
GitHub Actions
Failure
MaddyMicrosoft
had a problem deploying
to
Automation test
August 17, 2026 06:46 — with
GitHub Actions
Failure
The per-run resource group name was referenced as the bash-style "$RG_POSITIVE" in az group show/create/delete run steps. Those steps use the runner default shell, which is PowerShell on windows-latest, so the name expanded to an empty string there and az failed with "argument --name/-n/--resource-group/-g: expected one argument". Reference the value through the GitHub Actions env expression instead, so it is substituted before the shell runs, making it shell-agnostic across ubuntu, windows, and macos. The azure/powershell inline scripts keep using the PowerShell env form, which is correct there. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
MaddyMicrosoft
requested a deployment
to
Automation test
August 17, 2026 07:04 — with
GitHub Actions
Waiting
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
Reports the action ref the consumer actually pinned in telemetry, instead of a hardcoded version string. Prevents manual changes and drift.
Change
setUserAgentbuilt theAZURE_HTTP_USER_AGENT/AZUREPS_HOST_ENVIRONMENTstrings with a hardcoded@v3. Because it was hardcoded, it silently goes stale across major bumps (the same class of bug that currently has the CLI action still reporting@v2on its v3 release).This reads
GITHUB_ACTION_REF(set by the runner to the ref the workflow pinned, e.g.v3,v3.1.0, a SHA, ormain) and uses it in the user-agent, falling back tounknownwhen it is not set:Why
@v3) from an exact version, a SHA, ormain.Notes
@is now the pinned ref rather than always@v3, so downstream parsing that assumed@vNshould bucket the new values. Worth a heads-up to whoever owns the user-agent dashboards.