Rename test env controlling and project test capabilities variables#8518
Rename test env controlling and project test capabilities variables#8518
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR revises the documentation in tests/README.md to reflect updates in variable naming for controlling test environments and project test capabilities. Key changes include updating text for clarity and consistency with renamed MSBuild properties, along with minor formatting and capitalization improvements.
- Updated CI and Helix instructions to match variable renaming
- Improved capitalization and consistency in documentation
Files not reviewed (13)
- eng/Testing.props: Language not supported
- eng/Testing.targets: Language not supported
- tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj: Language not supported
- tests/Aspire.Dashboard.Tests/Aspire.Dashboard.Tests.csproj: Language not supported
- tests/Aspire.Elastic.Clients.Elasticsearch.Tests/Aspire.Elastic.Clients.Elasticsearch.Tests.csproj: Language not supported
- tests/Aspire.EndToEnd.Tests/Aspire.EndToEnd.Tests.csproj: Language not supported
- tests/Aspire.Hosting.Docker.Tests/Aspire.Hosting.Docker.Tests.csproj: Language not supported
- tests/Aspire.Hosting.Testing.Tests/Aspire.Hosting.Testing.Tests.csproj: Language not supported
- tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj: Language not supported
- tests/Aspire.Oracle.EntityFrameworkCore.Tests/Aspire.Oracle.EntityFrameworkCore.Tests.csproj: Language not supported
- tests/Aspire.Playground.Tests/Aspire.Playground.Tests.csproj: Language not supported
- tests/Directory.Build.targets: Language not supported
- tests/Shared/RepoTesting/Aspire.RepoTesting.targets: Language not supported
7f036e5 to
dc32257
Compare
53c34c0 to
9f00bb2
Compare
9f00bb2 to
bf6e745
Compare
|
We should also run a Azdo build to check that nothing breaks. |
164a73e to
fc7b570
Compare
radical
left a comment
There was a problem hiding this comment.
Looks good. Added some comments. Is the azdo build for this looking good too?
Yes, both a PR and a full manual build |
Co-authored-by: Ankit Jain <radical@gmail.com>
8d9939b to
832bf9c
Compare
|
Waiting on an outerloop tests run for this - https://github.com/dotnet/aspire/actions/runs/14324978740/job/40148735516 |
radical
left a comment
There was a problem hiding this comment.
LGTM! Thank you for working on this, and patience with the review process!
Feel free to merge once the latest azdo run is green with the same test count :)
|
|
||
| <PropertyGroup> | ||
| <RunOnGithubActions>false</RunOnGithubActions> | ||
| <RunOnGithubActions Condition=" '$(RunOnGithubActionsWindows)' == 'true' or '$(RunOnGithubActionsLinux)' == 'true' ">true</RunOnGithubActions> |
There was a problem hiding this comment.
Is this logic correct?
Shouldn't RunOnGithubActionsWindows be considered only when on Windows, and RunOnGithubActionsLinux be considered only on Linux, instead of ORing them together without any OS checks?
Currently, it seems like Playground is run on GitHub Actions on Windows (VSTest just ignores when no tests are run, but with my PR for MTP I'm getting zero tests ran for Playground)
Could you please double check @RussKie? Am I missing something here?
There was a problem hiding this comment.
Yes, the logic is correct.
These variables denote the "capabilities":
Lines 13 to 22 in ac098f7
...and used to generate runsheets, which then executed on individual build agents.
You can see how it is being used in https://github.com/dotnet/aspire/pull/8618/files#diff-ce47bb41900ee3082587fce1184e86392a2c25a05882281792f04e8e8abc51f4.
There was a problem hiding this comment.
After a third look and two cups of tea later, I see the issue now. Thank you for pointing it out.
SkipTests should be OS-aware, so that we don't run a test on Windows, if the test project declared it couldn't be run on Windows. This is getting fixed in #8687.
No description provided.