Skip to content

Align 0.7 adapter tests with backend constraints - #912

Merged
Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/version_specific_config_parsers_phase4_2
Aug 14, 2026
Merged

Align 0.7 adapter tests with backend constraints#912
Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/version_specific_config_parsers_phase4_2

Conversation

@MGudgin

@MGudgin Gudge (MGudgin) commented Aug 14, 2026

Copy link
Copy Markdown
Member

This PR aligns the 0.7.0-alpha adapter tests with the published backend-section constraints.

Details

  • Splits the mixed-backend empty request into generic, ProcessContainer, nested UI, and Seatbelt cases.
  • Adds matching containment values to backend-section and AppContainer alias requests.
  • Preserves expected-wire and current-wire equivalence coverage for every empty-section shape.

Tests

  • cargo fmt --all -- --check
  • cargo check -p wxc_common --all-targets
  • cargo clippy -p wxc_common --all-targets -- -D warnings
  • cargo test -p wxc_common config_contract_adapters::v0_7 (28 tests passed)
  • cargo test -p mxc_config_contract (175 tests passed)
  • git diff --check
Microsoft Reviewers: Open in CodeFlow

@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner August 14, 2026 20:57
Copilot AI balanced review requested due to automatic review settings August 14, 2026 20:57
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/version_specific_config_parsers_phase4_2 branch from d4c1990 to 4c0221c Compare August 14, 2026 20:59

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

Aligns 0.7 adapter test fixtures with backend containment constraints.

Changes:

  • Splits empty-section fixtures by backend.
  • Adds matching containment values and equivalence tests.
  • Preserves nested ProcessContainer UI coverage.
Show a summary per file
File Description
src/core/wxc_common/src/config_contract_adapters/v0_7.rs Updates 0.7 adapter fixtures and tests.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/core/wxc_common/src/config_contract_adapters/v0_7.rs
Copilot AI review requested due to automatic review settings August 14, 2026 20:59

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.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

This PR aligns the 0.7 adapter tests with the published backend-section
constraints.

Details

* Split the mixed-backend empty request into generic, ProcessContainer, nested
  UI, and Seatbelt cases.
* Add matching containment values to backend-section and AppContainer alias
  requests.
* Preserve expected-wire and current-wire equivalence coverage for every
  empty-section shape.

Tests

* `cargo fmt --all -- --check`
* `cargo check -p wxc_common --all-targets`
* `cargo clippy -p wxc_common --all-targets -- -D warnings`
* `cargo test -p wxc_common config_contract_adapters::v0_7` (28 tests passed)
* `cargo test -p mxc_config_contract` (175 tests passed)
* `git diff --check`

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 14, 2026 21:23
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/version_specific_config_parsers_phase4_2 branch from 4c0221c to 937e9c0 Compare August 14, 2026 21:23

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.

Review details

Suppressed comments (1)

src/core/wxc_common/src/config_contract_adapters/v0_7.rs:626

  • This fixes the Seatbelt enum fixture, but request_with_process_container_ui_isolation at lines 612–620 still emits processContainer without "containment": "processcontainer". That helper feeds both mapping and wire-equivalence tests, so the PR still leaves one 0.7 backend-section fixture violating the published matching-containment constraint.
                "containment": "seatbelt",
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@MGudgin
Gudge (MGudgin) merged commit af6ce03 into main Aug 14, 2026
23 checks passed
@MGudgin
Gudge (MGudgin) deleted the user/gudge/version_specific_config_parsers_phase4_2 branch August 14, 2026 21:39
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