Skip to content

Use TAEF ignore properties to skip tests for WSL1 / WSL2 based on testpass version property#40459

Open
OneBlue wants to merge 5 commits intomasterfrom
user/oneblue/test-split
Open

Use TAEF ignore properties to skip tests for WSL1 / WSL2 based on testpass version property#40459
OneBlue wants to merge 5 commits intomasterfrom
user/oneblue/test-split

Conversation

@OneBlue
Copy link
Copy Markdown
Collaborator

@OneBlue OneBlue commented May 8, 2026

Summary of the Pull Request

This change switches from using /select to enable / disable wsl{1, 2} specific cases. Instead we use ignore properties, which make the UX of running tests locally with a custom filter nicer, since wsl tests won't run under the wrong version

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Copilot AI review requested due to automatic review settings May 8, 2026 00:27
@OneBlue OneBlue requested a review from a team as a code owner May 8, 2026 00:27
@OneBlue OneBlue marked this pull request as draft May 8, 2026 00:27
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 updates the WSL test execution flow to rely on TAEF conditional Ignore properties (driven by the test pass /p:Version run property) instead of injecting version-based /select: filters from the runner scripts/templates.

Changes:

  • Remove automatic version filtering (/select:) from run-tests.ps1 and shift version gating into the test metadata macros.
  • Update WSL1/WSL2/WSLC test method macros to use conditional Ignore[...] properties keyed off @Version.
  • Simplify CloudTest test group generation by reusing a single TestGroup.xml.in template (and deleting the WSLC-specific template), with per-group ${TEST_FILTER} selection.

Reviewed changes

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

Show a summary per file
File Description
tools/test/run-tests.ps1 Stops injecting automatic version /select: filtering into TE.exe invocation.
test/windows/Common.h Switches version-specific test macros from WSLVersion tagging to conditional Ignore[...] based on @Version.
cloudtest/TestGroup.xml.in Replaces the hardcoded selection query with a configured ${TEST_FILTER}.
cloudtest/TestGroup-wslc.xml.in Removed; WSLC now reuses the common TestGroup template.
cloudtest/CMakeLists.txt Introduces ${TEST_FILTER} per job type and reuses the common TestGroup template for WSLC jobs.

Comment thread test/windows/Common.h
Comment thread test/windows/Common.h Outdated
Comment thread cloudtest/CMakeLists.txt Outdated
@OneBlue OneBlue marked this pull request as ready for review May 8, 2026 17:51
Copilot AI review requested due to automatic review settings May 8, 2026 17:51
@OneBlue OneBlue marked this pull request as draft May 8, 2026 17:52
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 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread cloudtest/CMakeLists.txt Outdated
Comment on lines 50 to 57
set(version "2")
set(DIR ${OUT}/${image}-wslc)
set(TEST_FILTER "(@TestCategory='WSLC')")

file(MAKE_DIRECTORY ${DIR})


configure_file(${CMAKE_CURRENT_SOURCE_DIR}/TestMap.xml.in ${DIR}/TestMap.xml)
Copilot AI review requested due to automatic review settings May 8, 2026 18:45
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 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread test/windows/Common.h
Comment thread cloudtest/CMakeLists.txt
@OneBlue OneBlue marked this pull request as ready for review May 8, 2026 21:00
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.

2 participants