Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
smockle
marked this pull request as ready for review
December 3, 2026 14:42
smockle
requested review from
accessibility-bot
and
an adaptive review from Copilot
December 3, 2026 14:42
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical supervision gaps can leave detached descendants running or crash the supervisor on asynchronous fork errors, while end-to-end lifecycle tests are missing and per-URL plugin installation adds overhead.
4 open issues
What changed in this PR
Introduces configurable per-URL timeouts for the Find action, with isolated scan workers and process cleanup. Failed scans stop the run without publishing partial findings.
Changes:
- Adds and documents
timeout_per_url. - Supervises worker and browser processes, and propagates scan failures.
- Adds cleanup, timeout, and fail-closed tests.
| File | Description |
|---|---|
| README.md | Documents the timeout input. |
| action.yml | Exposes and forwards the timeout. |
| .github/scanner-plugins/reflow-scan/index.ts | Propagates reflow errors. |
| .github/actions/find/tests/processSupervisor.test.ts | Tests supervisor outcomes and cleanup. |
| .github/actions/find/tests/processSupervisor.integration.test.ts | Tests real process-group termination. |
| .github/actions/find/tests/pluginManager.test.ts | Expects plugin-loading failures to propagate. |
| .github/actions/find/tests/index.test.ts | Tests timeout configuration and fail-closed behavior. |
| .github/actions/find/tests/fixtures/persistentProcessGroup.mjs | Provides persistent processes for cleanup tests. |
| .github/actions/find/tests/findForUrl.test.ts | Tests browser connections and error propagation. |
| .github/actions/find/src/processSupervisor.ts | Adds worker supervision and bounded cleanup. |
| .github/actions/find/src/pluginManager/index.ts | Rethrows plugin-loading errors. |
| .github/actions/find/src/index.ts | Dispatches workers and withholds incomplete results. |
| .github/actions/find/src/generateScreenshots.ts | Propagates screenshot failures. |
| .github/actions/find/src/findForUrl.ts | Supports supervised browsers and propagates failures. |
| .github/actions/find/README.md | Documents timeout and failure behavior. |
| .github/actions/find/action.yml | Declares the Find action timeout input. |
Review effort: Balanced (adaptive)
| clearTimeout(scanTimeoutTimer) | ||
|
|
||
| const browserClosed = browserServer.kill() | ||
| const processGroupPids = [scanProcess.pid, browserPid] |
| ) | ||
| let findingsForUrl | ||
| try { | ||
| findingsForUrl = await runScanInChildProcess( |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Part of https://github.com/github/accessibility/issues/11286 (Hubber access only)
Part of #302
This PR enables the Find action to clean-up timed-out scans, report the URL-specific failure, and stop without publishing partial findings. The timeout is configurable via a new, optional
timeout_per_urlinput. The recovery path uses POSIX process groups; further work would be required to support Windows runners.Related to #313; the biggest differences are:
mainwithout depending on earlier stacked PRs.