Skip to content

fix: set default e2e image tag to dev (#10133) - #10186

Closed
Artur Khantimirov (r2k1) wants to merge 1 commit into
mainfrom
r2k1-backport-e2e-image-tag-main
Closed

Artur Khantimirov (r2k1) wants to merge 1 commit into
mainfrom
r2k1-backport-e2e-image-tag-main

Conversation

@r2k1

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: ce6c264635d12023a77c619cc8171bdaa53e7156

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Clean git cherry-pick -x of #10133 (f864e09); diff is limited to 7 e2e files.
↑ go build ./... && go vet ./... and go test ./config/... and the changed credential-provider unit tests pass in e2e/.
↓ No live E2E run on main yet.
Diagnosis confidence 9/10 ↑ On main, e2e/config/config.go:125 has SIGVersionTagValue: "refs/heads/main" and getBaseClusterModel has no AADProfile; #10157 reverted the e2e part of #10133 that #10136 carried.
↑ VHD builds now tag images branch=refs/heads/dev only.
Evidence fit 8.5/10 ↑ Main build 193161589 (2d0fb2a) fails with failed to get latest image by tag branch=refs/heads/main: not found.
↑ The abe2e-kubenet-v5 PUT is denied by policy Azure_KubernetesService_AuthN_Enabled_Microsoft_Entra_ID, which AADProfile{Managed: true} addresses.
↓ Not yet confirmed by an E2E run on this branch.

What this PR does / why we need it:

Cherry-pick of #10133 to main (dev already has it).

#10157 reverted the contaminated #10136 on main. #10136 also carried the e2e changes of #10133, so the revert removed them too. Since then, every Agentbaker E2E run on main fails:

  • could not find image for VHD aks-acl-gen2-tl: failed to get latest image by tag branch=refs/heads/main: not found (VHD builds now tag refs/heads/dev).
  • Frozen-image scenarios reach cluster creation, but the abe2e-kubenet-v5 PUT is denied by policy Azure_KubernetesService_AuthN_Enabled_Microsoft_Entra_ID.

This PR re-applies only the e2e changes of #10133:

  • DEFAULT_SIG_IMAGE_BRANCH = "refs/heads/dev" as the default SIGVersionTagValue, with a unit test.
  • EnableRBAC: true and AADProfile{Managed: true} on the base E2E cluster model.
  • Callers that used the literal refs/heads/main now use the constant.

It does not bring back the VHD version bump of #10136. .pipelines/scripts/e2e_run.sh is identical on main and dev (it overrides the tag only when VHD_BUILD_ID is set), so no pipeline change is needed. No other Entra ID change exists on dev.

Note: only bypass holders (Nishchay (@awesomenix), Tim Wright (@timmy-wright), Cameron Meissner (@cameronmeissner)) can merge into main. This PR targets main on purpose because the fix is already on dev.

Validation (in e2e/):

  • go build ./... && go vet ./... — passed
  • go test ./config/... — passed
  • go test ./scenario/ -run 'TestCredentialProviderWindowsEligibility|TestCredentialProviderScenariosRegisteredOnce' -count=1 — passed

Which issue(s) this PR fixes:

Fixes # N/A (E2E triage item agentbaker-e2e-cd804eda4f)

(cherry picked from commit f864e09)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   1m 15s ⏱️
811 tests 811 ✅ 0 💤 0 ❌
838 runs  838 ✅ 0 💤 0 ❌

Results for commit ce6c264.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
parts_windows Package 1 74% ➖
staging_cse_windows Package 1 72% ➖
debug 0% ❌
provisioningscripts 2% ❌
Summary 40% (2073 / 7315) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 30% ❌
Summary 30% (5037 / 16765) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-live-patching/pkg/status 100% ✔
github.com/Azure/agentbaker/apiserver 24% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 79% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
github.com/Azure/agentbaker/aks-node-controller 73% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/parser 88% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 92% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
Summary 84% (6152 / 8108) ✔

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.

2 participants