Skip to content

{confcom} Add single-string exec command arrays alongside argv for Windows - #10506

Merged
JaysonTaiMicrosoft merged 1 commit into
Azure:mainfrom
takuro-sato:windows-exec
Oct 23, 2026
Merged

JaysonTaiMicrosoft merged 1 commit into
Azure:mainfrom
takuro-sato:windows-exec

Conversation

@takuro-sato

@takuro-sato Takuro Sato (takuro-sato) commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

Retain exec argument arrays and additionally emit Windows command-line strings to work around hcsshim passing CommandLine as a single argument.
Apply this to Windows exec commands, probes, and lifecycle hooks. Preserve Linux behavior and deduplicate identical entries.
Add regression coverage for quoting, deduplication, and exact argument matching.


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

…icies

Retain exec argument arrays and additionally emit Windows command-line
strings to work around hcsshim passing CommandLine as a single argument.

Apply this to Windows exec commands, probes, and lifecycle hooks.
Preserve Linux behavior and deduplicate identical entries.

Add regression coverage for quoting, deduplication, and exact argument
matching.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 09:41
@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 22, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Takuro Sato (@takuro-sato)! We will review the pull request and get back to you soon.

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.

🟢 Approval recommended

The change is narrowly scoped to Windows serialization, includes focused regression coverage, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Updates confcom’s Windows exec policy generation to accommodate hcsshim passing a command line as one argument, while retaining argument arrays and preserving Linux behavior.

Changes:

  • Adds deduplicated Windows command-line representations for exec commands, probes, and lifecycle hooks.
  • Adds regression coverage for quoting, deduplication, source preservation, and exact argument matching.
  • Bumps confcom to version 2.4.1 and documents the workaround.
File Description
src/​confcom/​setup.py Bumps the extension version to 2.4.1.
src/​confcom/​HISTORY.rst Records the Windows exec workaround.
src/​confcom/​azext_confcom/​tests/​latest/​test_confcom_input_fields.py Adds Windows serialization and Linux preservation tests.
src/​confcom/​azext_confcom/​data/​customer_rego_policy_windows.txt Adds a comment explaining the dual command representations.
src/​confcom/​azext_confcom/​container.py Emits deduplicated Windows command-line entries alongside argument arrays.

Review effort: Balanced

@x-engineering-agent
x-engineering-agent Bot requested a review from a team October 22, 2026 09:52

@KenGordon KenGordon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

To the extensions team, please can you expedite this release. I own this product.

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@JaysonTaiMicrosoft JaysonTaiMicrosoft changed the title Add single-string exec command arrays alongside argv for Windows {confcom} Add single-string exec command arrays alongside argv for Windows Oct 22, 2026
@JaysonTaiMicrosoft
JaysonTaiMicrosoft merged commit 4ba5c2b into Azure:main Oct 23, 2026
32 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ confcom ] : https://dev.azure.com/msazure/One/_build/results?buildId=187251524&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants