Skip to content

Remove unused fields from LCOW SandboxOptions#2719

Merged
rawahars merged 4 commits intomainfrom
copilot/remove-unused-fields-sandboxoptions
May 5, 2026
Merged

Remove unused fields from LCOW SandboxOptions#2719
rawahars merged 4 commits intomainfrom
copilot/remove-unused-fields-sandboxoptions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

  • Remove GuestDrivers and VPMEMMultiMapping fields from internal/builder/vm/lcow/sandbox_options.go
  • Remove their parsing code in parseSandboxOptions in internal/builder/vm/lcow/specs.go (including the osversion import that became unused)
  • Remove VPMEMMultiMapping parity check from test/parity/vm/lcow_doc_test.go
  • Return explicit errors from the LCOW builder when VPMemNoMultiMapping or VirtualMachineKernelDrivers annotations are set (matching the existing NetworkConfigProxy pattern in processAnnotations)
  • Update the existing VPMemNoMultiMapping test case so it doesn't conflict with the new error
  • Add new test cases for the two newly-rejected annotations
  • Add a comment above the unsupported-annotations slice explaining why these constants still exist (handled by the legacy uvm.CreateLCOW path) — addresses PR #2719 review comment

Copilot AI changed the title [WIP] Remove unused fields from SandboxOptions and LCOW Builder Remove unused fields from LCOW SandboxOptions May 4, 2026
Copilot AI requested a review from rawahars May 4, 2026 09:39
…s in LCOW builder

Agent-Logs-Url: https://github.com/microsoft/hcsshim/sessions/f2729ee4-3f81-4e0d-9cac-97f0153e27de

Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.com>
@rawahars rawahars marked this pull request as ready for review May 4, 2026 09:51
@rawahars rawahars requested a review from a team as a code owner May 4, 2026 09:51
Copy link
Copy Markdown
Contributor

@shreyanshjain7174 shreyanshjain7174 left a comment

Choose a reason for hiding this comment

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

LGTM — fields are genuinely unused, reject loop is a clean consolidation, tests are properly updated.

Comment thread internal/builder/vm/lcow/specs.go
Copilot AI requested a review from rawahars May 4, 2026 17:50
@rawahars rawahars merged commit 342d6ca into main May 5, 2026
45 of 47 checks passed
@rawahars rawahars deleted the copilot/remove-unused-fields-sandboxoptions branch May 5, 2026 03:42
Copilot AI added a commit that referenced this pull request May 6, 2026
* Initial plan

* Remove unused GuestDrivers and VPMEMMultiMapping fields from LCOW SandboxOptions

Agent-Logs-Url: https://github.com/microsoft/hcsshim/sessions/5b4958c5-1086-4f2b-8705-70c8f6a141ba

Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.com>

* Reject VPMemNoMultiMapping and VirtualMachineKernelDrivers annotations in LCOW builder

Agent-Logs-Url: https://github.com/microsoft/hcsshim/sessions/f2729ee4-3f81-4e0d-9cac-97f0153e27de

Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.com>

* Address review: add comment explaining unsupported annotations

Agent-Logs-Url: https://github.com/microsoft/hcsshim/sessions/e9eef610-ee26-4800-a063-7ec96478e41a

Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rawahars <65640262+rawahars@users.noreply.github.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.

[shimV2] Remove unused fields from SandboxOptions and LCOW Builder

5 participants