Repository navigation
fix(e2e): test VHDs built from the main or dev branch under test - #10188
Closed
Artur Khantimirov (r2k1) wants to merge 1 commit into
Closed
Artur Khantimirov (r2k1) wants to merge 1 commit into
Artur Khantimirov (r2k1) wants to merge 1 commit into
Conversation
When VHD_BUILD_ID and SIG_VERSION_TAG_VALUE are unset, e2e_run.sh now selects SIG images tagged branch=<branch>: the PR target branch for PR runs, or Build.SourceBranch for CI and scheduled runs. Only main and dev are mapped; other branches keep the e2e default. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Windows Unit Test Results 3 files 21 suites 55s ⏱️ Results for commit 4444ffe. |
Contributor
Contributor
Contributor
|
Contributor
Author
|
Closing: dev already tests dev images by default, so this change is not needed. Main will keep its refs/heads/main default and get main-built VHDs instead. |
Artur Khantimirov (r2k1)
deleted the
r2k1-e2e-branch-based-vhd-selection
branch
November 25, 2026 08:58
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
4444ffeef1aa1b13acbc739e41a4857bcd4f2d2cshellspec spec/e2e/e2e_runner_scripts_spec.sh: 24 examples, 0 failures.↑ The 4 new branch cases fail without the script change.
↑ ShellCheck (bash and POSIX pass) is clean.
↓ Not run in an ADO E2E pipeline yet; PR CI is pending.
↓ On main, effect depends on Linux images tagged refs/heads/main, which do not exist yet.
What this PR does / why we need it:
Goal: main and PRs to main test images built from main. dev and PRs to dev test images built from dev.
When
VHD_BUILD_IDandSIG_VERSION_TAG_VALUEare unset,.pipelines/scripts/e2e_run.shnow setsSIG_VERSION_TAG_NAME=branchandSIG_VERSION_TAG_VALUEtorefs/heads/mainorrefs/heads/dev:BUILD_REASON=PullRequest) useSYSTEM_PULLREQUEST_TARGETBRANCH. GitHub givesmainwithoutrefs/heads/, so the script normalizes it.BUILD_SOURCEBRANCH.official/*,windows/*, feature branches) keep the Go default frome2e/config(refs/heads/devon dev).SIG_VERSION_TAG_VALUEis kept.VHD_BUILD_IDstill wins.Impact:
refs/heads/dev(fix: set default e2e image tag to dev #10133).e2e_run.shis identical on main and dev, so this commit can be cherry-picked to main.Prerequisite before the main cherry-pick:
branch=refs/heads/mainmust exist. GalleryPackerSigGalleryEastUS(rgaksvhdtestbuildrg) has 0 Linux versions taggedrefs/heads/mainacross 34 Linux image definitions; all are taggedrefs/heads/dev. Only Windows images have main tags.+refs/heads/dev; the YAML hastrigger: none.vhdbuilder/packer/cleanup.shdeletes SIG versions older than 168h (7 days).Related: draft PR #10186 on main restores #10133 (Entra ID cluster profile, default tag). The main cherry-pick of this PR should follow #10186 and the main VHD schedule.
Validation:
shellspec spec/e2e/e2e_runner_scripts_spec.sh: passed, 24 examples, 0 failures. The 4 new branch cases fail without the script change.shellcheck .pipelines/scripts/e2e_run.sh spec/e2e/e2e_runner_scripts_spec.sh: passed.shellcheck --shell=sh -i SC3010 -i SC3014 .pipelines/scripts/e2e_run.sh: passed.Which issue(s) this PR fixes:
Fixes #