test: (scriptless) Enable scriptless phase 3 in AB e2es#8453
test: (scriptless) Enable scriptless phase 3 in AB e2es#8453lilypan26 wants to merge 57 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Enables “scriptless phase 3” coverage in the AgentBaker e2e suite by adding a new scriptless_anc subtest path that provisions nodes using AKSNodeConfig/aks-node-controller, plus wiring many existing scenarios to provide an AKSNodeConfigMutator.
Changes:
- Added a new
scriptless_ancsubtest variant and runtime flag (EnableScriptlessANC) to drive scriptless phase-3 execution. - Refactored/expanded the e2e “aks-node-controller hack” customData generation to optionally include AKSNodeConfig and/or an nbc-cmd script.
- Updated many scenarios to set equivalent
AKSNodeConfigMutatorfields alongside existing NBC mutators.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| e2e/vmss.go | Refactors customData hack generation and wires scriptless ANC + NBC cmd hack paths into VMSS creation. |
| e2e/types.go | Adds EnableScriptlessANC and adjusts kubelet-config-file detection logic for scriptless ANC scenarios. |
| e2e/test_helpers.go | Adds scriptless_anc subtest generation and new gating helper. |
| e2e/scenario_test.go | Adds AKSNodeConfigMutator coverage across many existing scenarios. |
…scriptless/phase-3-e2e
…e/AgentBaker into lily/scriptless/phase-3-e2e
…e/AgentBaker into lily/scriptless/phase-3-e2e
Co-authored-by: lilypan26 <106703606+lilypan26@users.noreply.github.com>
…e/AgentBaker into lily/scriptless/phase-3-e2e
| var diffs []string | ||
| for _, key := range sortedKeys { | ||
| pcVal, inPC := pcEnv[key] | ||
| nbcVal, inNBC := nbcEnv[key] | ||
| switch { | ||
| case inPC && !inNBC: | ||
| diffs = append(diffs, fmt.Sprintf("only-in-pc: %s", key)) | ||
| diffs = append(diffs, fmt.Sprintf("only-in-pc: %s=%s", key, pcVal)) | ||
| case !inPC && inNBC: | ||
| diffs = append(diffs, fmt.Sprintf("only-in-nbc: %s", key)) | ||
| case pcVal != nbcVal: | ||
| diffs = append(diffs, fmt.Sprintf("differs: %s", key)) | ||
| if !isExpectedDiffCSEVar(key) { | ||
| diffs = append(diffs, fmt.Sprintf("only-in-nbc: %s=%s", key, nbcVal)) | ||
| } | ||
| case !envValsEqual(pcVal, nbcVal): | ||
| if !isExpectedDiffCSEVar(key) { | ||
| diffs = append(diffs, fmt.Sprintf("differs: %s pc=%s nbc=%s", key, pcVal, nbcVal)) | ||
| } |
|
AgentBaker Linux PR gate — E2E mass-failure (change-caused, HIGH confidence)
Two failure shapes, same root cause:
Likely root cause (
Build-vs-test: test-code-caused (e2e converter + scenario tagging) with a tightly-coupled product-code enabler ( Confidence: HIGH — three independent indicators converge: PR's own validator firing loudly on ACL/default, the Strongest alternative (less likely): Side-channel (not the cause, FYI): Recommended next action (owner: @lilypan26):
Posted by Clawpilot AgentBaker gate detective. |
What this PR does / why we need it:
EnableScriptlessANCCustomDataPhase3to provide both ANC and NBC cse cmd to AKS node controllerWhich issue(s) this PR fixes:
Fixes #