Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project to create helix work items for host tests #108529

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

elinor-fung
Copy link
Member

  • Add src/installer/tests/helixpublish.proj
    • Defines correlation payloads (pre-built test targets, .NET install layout, product host binaries, test/mock host binaries)
    • Sets pre-commands to set environment variables used by tests for test assets and artifacts locations
    • Generate helix work items for each host test project - runs dotnet test <host_test_dll> for each test with the built output as the payload directory
  • Update RepoDirectoryProvider to use HELIX_CORRELATION_PAYLOAD (when available) for path to product/test host binaries.

This is not hooked up to actually run in a pipeline. I tested by manually kicking off runs by setting environment variables and directly building the new project. For example:

  • dotnet build src\installer\tests\helixpublish.proj -c Release /t:Test /p:Creator=dev /p:HelixTargetQueues=Windows.Amd64.Server2022.Open
  • dotnet build ./src/installer/tests/helixpublish.proj -c Release /t:Test /p:Creator=dev /p:HelixTargetQueues=Ubuntu.2204.Amd64.Open

Contributes to #77800

cc @dotnet/appmodel

Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@elinor-fung
Copy link
Member Author

@dotnet/appmodel PTAL

@elinor-fung elinor-fung merged commit f457155 into dotnet:main Oct 11, 2024
69 of 71 checks passed
@elinor-fung elinor-fung deleted the host-tests-helix branch October 11, 2024 21:06
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants