-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Make E2E tests work on Linux, support retries, and have new Azure pipeline #36207
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fa49528
Make E2E tests work on Linux, support retries, and have new Azure pip…
638489d
Opt components E2E tests out of other CI pipelines (run only in the n…
SteveSandersonMS a2530c5
Update src/Components/test/E2ETest/Tests/InputFileTest.cs
SteveSandersonMS 7102baf
Move new pipeline logic into old pipeline
SteveSandersonMS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This configuration builds and runs Components E2E tests only | ||
pr: none | ||
|
||
# Don't run CI for this config | ||
trigger: none | ||
|
||
variables: | ||
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE | ||
value: true | ||
- name: _TeamName | ||
value: AspNetCore | ||
|
||
jobs: | ||
- template: jobs/default-build.yml | ||
parameters: | ||
condition: ne(variables['SkipTests'], 'true') | ||
jobName: Components_E2E_Test | ||
jobDisplayName: "Components E2E test" | ||
agentOs: Linux | ||
installNodeJs: true | ||
installJdk: true | ||
isTestingJob: true | ||
steps: | ||
- script: git submodule update --init | ||
displayName: Update submodules | ||
- script: ./restore.sh | ||
displayName: Run restore.sh | ||
- script: npm install --prefix ./src/Components/test/E2ETest | ||
displayName: NPM install | ||
- script: .dotnet/dotnet build ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-restore | ||
displayName: Build | ||
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --logger trx | ||
displayName: Run E2E tests | ||
- task: PublishTestResults@2 | ||
displayName: Publish E2E Test Results | ||
inputs: | ||
testResultsFormat: 'VSTest' | ||
testResultsFiles: '*.trx' | ||
searchFolder: '$(Build.SourcesDirectory)/src/Components/test/E2ETest/TestResults' | ||
testRunTitle: ComponentsE2E-$(AgentOsName)-$(BuildConfiguration)-xunit | ||
condition: always() | ||
artifacts: | ||
- name: Components_E2E_Test_Logs | ||
path: ./src/Components/test/E2ETest/TestResults | ||
publishOnError: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.Testing; | ||
|
||
[assembly:Retry] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to have both
components-e2e-tests.yml
andcomponents-e2e-tests-new.yml
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I only create the new one so I could invoke it manually (the old one is currently disabled, which means you can't even run it manually).
Before merging this PR, I'll replace the contents of the old pipeline with the new one, and delete the new one. Then we can re-enable the old one as per the "rehab plan" I listed above.
Thanks for checking.