Skip to content

Add 1ES Unofficial pipeline for Components E2E tests#66759

Open
akoeplinger wants to merge 1 commit into
dotnet:mainfrom
akoeplinger:components-e2e-tests-internal
Open

Add 1ES Unofficial pipeline for Components E2E tests#66759
akoeplinger wants to merge 1 commit into
dotnet:mainfrom
akoeplinger:components-e2e-tests-internal

Conversation

@akoeplinger
Copy link
Copy Markdown
Member

Extract shared job template to avoid duplication between the public and internal pipeline definitions.

Extract shared job template to avoid duplication between the
public and internal pipeline definitions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 20, 2026 18:46
@akoeplinger akoeplinger requested review from a team and wtgodbe as code owners May 20, 2026 18:46
@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label May 20, 2026
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 adds an internal (1ES Unofficial) Azure DevOps pipeline for running the Components E2E test job, and factors the previously inlined job definition into a shared job template so the public and internal pipeline YAML can reuse the same implementation.

Changes:

  • Added a shared job template for the Components E2E test run steps/artifact publishing.
  • Updated the existing public components-e2e-tests.yml pipeline to reference the new shared job template.
  • Added a new internal components-e2e-tests-internal.yml pipeline that extends the 1ES Unofficial pipeline template and runs the shared job.

Reviewed changes

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

File Description
.azure/pipelines/jobs/components-e2e-test-job.yml New shared job template containing the Components E2E test build/test steps and artifact publishing.
.azure/pipelines/components-e2e-tests.yml Replaces the inlined job definition with a reference to the shared job template.
.azure/pipelines/components-e2e-tests-internal.yml New internal pipeline extending 1ES Unofficial template and invoking the shared E2E job template.

Comment on lines +20 to +30
- task: Cache@2
displayName: Cache node_modules
inputs:
key: '"node_modules" | "node24" | "$(Agent.OS)" | $(Build.SourcesDirectory)/package-lock.json'
restoreKeys: |
"node_modules" | "node24" | "$(Agent.OS)"
path: node_modules
cacheHitVar: NODE_MODULES_CACHE_HIT
- script: npm ci
displayName: NPM install
condition: ne(variables.NODE_MODULES_CACHE_HIT, 'true')
Comment on lines +65 to +69
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined=true' -p:RunQuarantinedTests=true
-p:VsTestUseMSBuildOutput=false
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx"
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html"
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Quarantined
Comment on lines +91 to +95
- name: Components_E2E_Logs
path: artifacts/log/
publishOnError: true
includeForks: true
- name: Components_E2E_Test_Logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants