Skip to content

Enhance and organize test execution#40108

Open
AmelBawa-msft wants to merge 12 commits intofeature/wsl-for-appsfrom
user/amelbawa/e2e-1
Open

Enhance and organize test execution#40108
AmelBawa-msft wants to merge 12 commits intofeature/wsl-for-appsfrom
user/amelbawa/e2e-1

Conversation

@AmelBawa-msft
Copy link
Copy Markdown

@AmelBawa-msft AmelBawa-msft commented Apr 5, 2026

  • Moved container attach tests from WSLCE2EContainerCreateests.cpp to WSLCE2EContainerAttachTests.cpp
  • Moved container exec tests from WSLCE2EContainerCreateTests.cpp to WSLCE2EContainerExecTests.cpp
  • Moved container run tests from WSLCE2EContainerCreateTests.cpp to WSLCE2EContainerRunTests.cpp
  • Added additional E2E tests
  • Replace S_OK with 0

@AmelBawa-msft AmelBawa-msft requested a review from a team as a code owner April 5, 2026 07:15
Copilot AI review requested due to automatic review settings April 5, 2026 07:15
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 reorganizes the WSLC Windows E2E test suite by splitting previously co-located container tests into dedicated files and adds additional coverage for container run/exec behaviors (env vars/files, ports, interactive scenarios).

Changes:

  • Added WSLCExecutionResult::StdoutContainsLine() and new shared helper functions (WriteFile, GetPythonHttpServerScript) to reduce repeated test logic.
  • Introduced new E2E test classes/files for container exec and container attach, and expanded container run tests (env/env-file and port mapping cases).
  • Removed the migrated tests and local helper utilities from WSLCE2EContainerCreateTests.cpp.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/windows/wslc/e2e/WSLCExecutor.h Adds StdoutContainsLine() to the execution result helper API.
test/windows/wslc/e2e/WSLCExecutor.cpp Implements StdoutContainsLine() for line-based stdout assertions.
test/windows/wslc/e2e/WSLCE2EHelpers.h Declares new shared helpers for file-writing and python http server command generation.
test/windows/wslc/e2e/WSLCE2EHelpers.cpp Implements new shared helpers formerly embedded in CreateTests.
test/windows/wslc/e2e/WSLCE2EContainerRunTests.cpp Adds/relocates container run tests (env/env-file, ports, interactive).
test/windows/wslc/e2e/WSLCE2EContainerExecTests.cpp New file containing container exec E2E tests.
test/windows/wslc/e2e/WSLCE2EContainerCreateTests.cpp Removes migrated run/exec/port tests and local helper utilities.
test/windows/wslc/e2e/WSLCE2EContainerAttachTests.cpp.cpp New file containing container attach E2E tests (note: filename issue raised in comments).

@benhillis benhillis marked this pull request as draft April 6, 2026 01:47
@benhillis benhillis marked this pull request as ready for review April 6, 2026 01:47
@benhillis
Copy link
Copy Markdown
Member

Tried converting to draft to get the dynamic / submit-nuget task to go away, it did not...

@benhillis
Copy link
Copy Markdown
Member

Might have to re-create (or I will override gates), sorry!

Copilot AI review requested due to automatic review settings April 6, 2026 17:10
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 10 out of 10 changed files in this pull request and generated 4 comments.

Copilot AI review requested due to automatic review settings April 6, 2026 19:12
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 10 out of 10 changed files in this pull request and generated 3 comments.

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