Skip to content

Conversation

@TanayParikh
Copy link
Contributor

Support for the QuarantinedTest attribute.

Using the Quarantined trait defined here:

yield return new KeyValuePair<string, string>("Quarantined", "true");

Extension of #38693 which got auto-merged.

Support for the `QuarantinedTest` attribute.

Using the `Quarantined` trait defined here:
https://github.com/dotnet/aspnetcore/blob/ba18614ec220c1209a3976f66aacc2c761568931/src/Testing/src/xunit/QuarantinedTestTraitDiscoverer.cs#L18

Extension of #38693 which got auto-merged.
@TanayParikh TanayParikh requested a review from a team as a code owner November 29, 2021 22:12
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 29, 2021
@TanayParikh TanayParikh requested a review from a team November 29, 2021 22:12
@pranavkm
Copy link
Contributor

Out of curiosity, where do quarantined Blazor e2e tests run?

@TanayParikh
Copy link
Contributor Author

Out of curiosity, where do quarantined Blazor e2e tests run?

They're now being run as part of a new step of the components-e2e pipeline:

https://github.com/dotnet/aspnetcore/pull/38693/files#diff-eb7fafe7b73cc5c0d1cf18055a0392f032ef78a1e9a46ec7996448f07a4aba16R49-R51

@TanayParikh TanayParikh enabled auto-merge (squash) November 29, 2021 23:53
- I pointed to an `xUnit` example, sorry
Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More…

@TanayParikh TanayParikh disabled auto-merge November 30, 2021 16:23
@TanayParikh
Copy link
Contributor Author

Thanks Doug, applied your suggestions (and replaced _BuildConfig -> BuildConfiguration). Will monitor CI for results.

@dougbu
Copy link
Contributor

dougbu commented Nov 30, 2021

Looks like copying from Arcade didn't help you:

MSBUILD : error MSB1001: Unknown switch.
Switch: --ResultsDirectory:/home/vsts/work/1/s/artifacts/TestResults/Release

@dougbu
Copy link
Contributor

dougbu commented Nov 30, 2021

dotnet test --help says that should be --results-directory

- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined!=true|Quarantined=false'
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx"
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html"
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Unquarantined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We don't include /Unquarantined elsewhere but I guess it doesn't matter much if the artifacts are a bit different from those we see in other non-quarantined pipelines.

@TanayParikh
Copy link
Contributor Author

Screen Shot 2021-11-30 at 12 19 03 PM

🎉

@TanayParikh
Copy link
Contributor Author

@dotnet/aspnet-build can this please be merged, it's failing on unrelated tests (quarantined here #38733 / #38737). This CI failure is in turn blocking other PRs.

@TanayParikh TanayParikh disabled auto-merge November 30, 2021 23:48
@wtgodbe wtgodbe merged commit f444e01 into main Nov 30, 2021
@wtgodbe wtgodbe deleted the TanayParikh-patch-1 branch November 30, 2021 23:48
@ghost ghost added this to the 7.0-preview1 milestone Nov 30, 2021
TanayParikh added a commit that referenced this pull request Dec 3, 2021
* Fix `components-e2e` Pipeline

Support for the `QuarantinedTest` attribute.

Using the `Quarantined` trait defined here:
https://github.com/dotnet/aspnetcore/blob/ba18614ec220c1209a3976f66aacc2c761568931/src/Testing/src/xunit/QuarantinedTestTraitDiscoverer.cs#L18

Extension of #38693 which got auto-merged.

* Update components-e2e-tests.yml

* PR Feedback

* Update components-e2e-tests.yml

- I pointed to an `xUnit` example, sorry

* PR Feedback

* PR Feedback

* Update artifacts dir

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
wtgodbe pushed a commit that referenced this pull request Dec 7, 2021
* Quarantine CanAddAndDisposeRootComponents (#38693)

* Fix `components-e2e` Pipeline (#38704)

* Fix `components-e2e` Pipeline

Support for the `QuarantinedTest` attribute.

Using the `Quarantined` trait defined here:
https://github.com/dotnet/aspnetcore/blob/ba18614ec220c1209a3976f66aacc2c761568931/src/Testing/src/xunit/QuarantinedTestTraitDiscoverer.cs#L18

Extension of #38693 which got auto-merged.

* Update components-e2e-tests.yml

* PR Feedback

* Update components-e2e-tests.yml

- I pointed to an `xUnit` example, sorry

* PR Feedback

* PR Feedback

* Update artifacts dir

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants