mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-21 00:42:58 +01:00
* agentHost: skip unaffected E2E tests in PR CI Classify changed PR files inside the existing Electron jobs and skip the bundled-provider Agent Host E2E suite when no relevant source, SDK, build, or harness files changed. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * agentHost: fail open when change detection fails Run the full Agent Host E2E suite when pull request file enumeration fails, keeping the classifier an optimization rather than a CI dependency. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
948 B
YAML
27 lines
948 B
YAML
name: Detect Agent Host E2E changes
|
|
description: Determines whether a pull request can affect the Agent Host end-to-end tests.
|
|
|
|
inputs:
|
|
token:
|
|
description: GitHub token used to list the pull request files.
|
|
required: true
|
|
|
|
outputs:
|
|
affected:
|
|
description: "'true' when the Agent Host E2E tests may be affected."
|
|
value: ${{ steps.detect.outputs.affected }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Detect relevant changes
|
|
id: detect
|
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
with:
|
|
github-token: ${{ inputs.token }}
|
|
script: |
|
|
const { pathToFileURL } = require('url');
|
|
const scriptUrl = pathToFileURL(process.env.GITHUB_WORKSPACE + '/.github/actions/detect-agent-host-e2e-changes/detect.ts');
|
|
const { detectAgentHostE2EChanges } = await import(scriptUrl.href);
|
|
await detectAgentHostE2EChanges(github, context, core);
|