Skip to content

feat: persist ENABLE_MANAGED_GPU_EXPERIENCE state as a marker file on disk#7952

Merged
ganeshkumarashok merged 2 commits intomainfrom
suraj/persist-managed-gpu-exp-flag
Feb 27, 2026
Merged

feat: persist ENABLE_MANAGED_GPU_EXPERIENCE state as a marker file on disk#7952
ganeshkumarashok merged 2 commits intomainfrom
suraj/persist-managed-gpu-exp-flag

Conversation

@surajssd
Copy link
Copy Markdown
Member

Allow other node components to discover whether managed GPU experience
is enabled by writing /opt/azure/containers/managed-gpu-experience.enabled
on enable and removing it on disable, following the established marker
file pattern (e.g. provision.complete).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adds a marker file /opt/azure/containers/managed-gpu-experience.enabled to persist the managed GPU experience state, allowing other node components to discover whether the feature is enabled. The implementation follows the established marker file pattern (e.g., provision.complete, base_prep.complete).

Changes:

  • Added marker file creation/deletion in configureManagedGPUExperience() function
  • Updated unit tests to mock and verify mkdir, touch, and rm commands
  • Regenerated test snapshots (gzipped CustomData) to reflect the updated script

Reviewed changes

Copilot reviewed 33 out of 67 changed files in this pull request and generated no comments.

File Description
parts/linux/cloud-init/artifacts/cse_config.sh Added marker file logic with directory creation and file touch/removal
spec/parts/linux/cloud-init/artifacts/cse_config_spec.sh Added mocks for mkdir, touch, rm and test assertions
pkg/agent/testdata/*/CustomData Regenerated gzipped cloud-init data snapshots

@surajssd surajssd force-pushed the suraj/persist-managed-gpu-exp-flag branch from 1ca73b3 to a4d4d88 Compare February 26, 2026 21:22
… disk

Allow other node components to discover whether managed GPU experience
is enabled by writing /opt/azure/containers/managed-gpu-experience.enabled
on enable and removing it on disable, following the established marker
file pattern (e.g. provision.complete).

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Copilot AI review requested due to automatic review settings February 26, 2026 21:32
@surajssd surajssd force-pushed the suraj/persist-managed-gpu-exp-flag branch from a4d4d88 to fde33b1 Compare February 26, 2026 21:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 33 out of 67 changed files in this pull request and generated 3 comments.

Comment thread parts/linux/cloud-init/artifacts/cse_config.sh
Comment thread spec/parts/linux/cloud-init/artifacts/cse_config_spec.sh
Comment thread spec/parts/linux/cloud-init/artifacts/cse_config_spec.sh
@ganeshkumarashok ganeshkumarashok merged commit 04ca854 into main Feb 27, 2026
29 of 33 checks passed
@ganeshkumarashok ganeshkumarashok deleted the suraj/persist-managed-gpu-exp-flag branch February 27, 2026 18:42
saewoni pushed a commit that referenced this pull request Mar 20, 2026
… disk (#7952)

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
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