Skip to content

fix: vhdbuilder phase 2.5 should still use nbccsecmd hack#8712

Open
lilypan26 wants to merge 4 commits into
mainfrom
lily/scriptless/fix-vhdbuilder-phase-2.5-e2es
Open

fix: vhdbuilder phase 2.5 should still use nbccsecmd hack#8712
lilypan26 wants to merge 4 commits into
mainfrom
lily/scriptless/fix-vhdbuilder-phase-2.5-e2es

Conversation

@lilypan26

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
For phase 2.5, we should still use nbccsecmd hack, not scriptless compilation

Which issue(s) this PR fixes:

Fixes #

Copilot AI review requested due to automatic review settings June 15, 2026 18:39
@lilypan26 lilypan26 changed the title fix: vhdbuilder phase 2.5 should still use hack fix: vhdbuilder phase 2.5 should still use nbccsecmd hack Jun 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the e2e VMSS customData generation flow for “scriptless phase 2.5” scenarios so that the aks-node-controller NBC cmd “hack” path is used (instead of falling back to non-scriptless customData generation).

Changes:

  • Reorders customData generation in createVMSSModel to compile/upload aks-node-controller earlier and apply the NBC cmd hack path first.
  • Keeps the existing non-scriptless fallback path for DISABLE_SCRIPTLESS_COMPILATION, but now after the hack path.

Comment thread e2e/vmss.go Outdated
Copilot AI review requested due to automatic review settings June 15, 2026 21:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread e2e/test_helpers.go Outdated
@lilypan26 lilypan26 force-pushed the lily/scriptless/fix-vhdbuilder-phase-2.5-e2es branch from 9a67e76 to 4e4f371 Compare June 15, 2026 21:33
Comment thread e2e/validators.go Outdated
if nbc != nil && nbc.EnableScriptlessNBCCSECmd && s.VHD.SupportsScriptless() {
fileNameToCheck := "/opt/azure/containers/aks-node-controller-nbc-cmd.sh"
if !config.Config.DisableScriptLessCompilation && !s.Tags.NetworkIsolated {
if s.Runtime.AKSNodeConfig != nil || (!config.Config.DisableScriptLessCompilation && !s.Tags.NetworkIsolated) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think there are 2 cases

  1. AgentBaker E2E - Where we compile the AKS node controller and this uses -hach.sh
  2. Regular PR E2E - Where we use production scenario because we us whatever is on disk

The check before seems fine isnt it?

Comment thread e2e/vmss.go Outdated

customData = func() string {
if config.Config.DisableScriptLessCompilation {
if config.Config.DisableScriptLessCompilation && !s.Runtime.NBC.EnableScriptlessNBCCSECmd {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm seems odd, are we saying this is old scriptless?

Copilot AI review requested due to automatic review settings June 15, 2026 23:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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.

4 participants