Skip to content

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

Open
surajssd wants to merge 2 commits intomainfrom
suraj/persist-managed-gpu-exp-flag
Open

feat: persist ENABLE_MANAGED_GPU_EXPERIENCE state as a marker file on disk#7952
surajssd wants to merge 2 commits intomainfrom
suraj/persist-managed-gpu-exp-flag

Conversation

@surajssd
Copy link
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).

… 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>
Copy link
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

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.

3 participants