Files
vscode/.github/actions/detect-agent-host-e2e-changes/action.yml
T
a60023fc73 agentHost: skip unaffected E2E tests in PR CI (#329879)
* 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>
2026-08-10 11:47:49 -07:00

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);