Repository navigation
In progress
Description
Parent: github/accessibility-scanner#300
Goal
Give action users and downstream filing a reliable way to distinguish a completed check with no findings from a check that failed, timed out, or never ran.
Current behavior
findForUrl catches scan errors and returns the findings collected so far. The caller interprets an empty array as no accessibility gaps. The findings file alone cannot tell whether an absent finding represents a successful check or incomplete coverage.
Scope
- Define and document a typed completion contract keyed by requested URL and scanner/plugin. Preserve requested URL identity through redirects rather than relying only on the final browser URL.
- Represent completed, failed, timed-out, skipped/not-started, and unknown coverage unambiguously. Keep findings separate from completion status; a partial findings array must not imply completion.
- Track each planned scan through its lifecycle, including checks that never start because an earlier stage fails. Surface navigation and setup failures at the appropriate scope.
- Carry the contract through the
findaction outputs and the top-level composite action to downstream consumers. This task owns the shared schema and transport, not how cached issues are reconciled. - Emit a concise, sanitized summary identifying incomplete work and the failed stage. Do not log sensitive page/browser state or unsafe URL data.
- Define the action's unsuccessful/incomplete-run signaling so workflow authors can react. If a strict-failure option is introduced, document its default and ensure outputs needed for diagnostics remain available.
Acceptance criteria
- A completed scan with zero findings is distinguishable from every incomplete case in both machine-readable results and user-facing summaries.
- Mixed-success runs retain successful findings while identifying failures at URL/scanner granularity; later checks that never ran are not marked completed.
- Redirects, disabled scan types, navigation failure, plugin failure, timeout, and cleanup failure are covered by tests, including their effects on coverage.
- Public action outputs and documentation describe the schema and backward-compatibility behavior. Missing or unknown coverage is not silently treated as a successful check.
- Until the filing consumer handles partial results safely, incomplete runs cannot proceed to ordinary issue resolution as though they were complete.
Boundary
This is the outcome-model and reporting task. It does not implement timeout enforcement, reflow-specific recovery, or issue-closing policy. It can be developed with synthetic outcomes while the execution work proceeds, and provides the contract required by safe reconciliation.
🤖 Assisted by Copilot
Metadata
Metadata
Assignees
Labels
No labels
Activity