Skip to content

Attribute and harden hosted native accessibility validation - #895

Merged
coneilen merged 2 commits into
mainfrom
coneilen-hosted-native-provider-validation
Oct 19, 2026
Merged

coneilen merged 2 commits into
mainfrom
coneilen-hosted-native-provider-validation

Conversation

@coneilen

@coneilen coneilen commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Make hosted native accessibility validation attributable and defend its MSVC setup against inherited duplicate PATH growth. Add direct PR coverage for provider, native-fixture, and harness changes without changing product behavior.

Refs #890. Upstream repeated Swift PATH prepends are tracked separately in #893; this change does not modify validate.ps1.

Changes

  • Preserve first-occurrence PATH order while deduplicating case-insensitively for the native child, then restore the exact original process PATH on success or failure. Do not truncate unique entries.
  • Report the resolved vcvars path, separate setup/discovery/compiler/executable stages and exits, and the actual inherited/deduplicated/post-vcvars PATH lengths. Require both recorded launch boundaries below 8191 characters and exactly one native 204 checks, 0 failures summary.
  • Keep generated batch source ASCII and pass Unicode/spaced paths as arguments. Mock-tool contracts cover abrupt stage exit 255, overlong repeated PATH, first-occurrence case/order, Unicode/spaced paths, and failure cleanup/restoration.
  • Add a classifier-gated Windows 2022 PR-native job and run its harness contracts in both PR-native and full-pinned jobs. Unknown paths and classifier failures fail closed; documentation-only changes retain their intended skip.

Test plan

RED: ./Tools/windows/validate.ps1 -Task all -SkipTrayLive -SkipWslRemoteE2E -> own run 39242733774 / job 118027204744 failed at vcvars: The input line is too long; The syntax of the command is incorrect; cmd exit 255, before discovery, compilation, or native assertions.
GREEN: pwsh -NoProfile -File Tools\windows\Tests\AccessibilityProvider.Native.Tests.Harness.Tests.ps1 -> 25 checks, 0 failures; mock tools only, not native provider behavior.
REGRESSION: & 'C:\Program Files\Git\bin\bash.exe' Tools\ci\tests\classify-changes.test.sh -> 80 passed, 0 failed, including requested paths, docs-only skip, unknown/diff failures, PR merge-base semantics, and workflow wiring.

Attribution: First own dispatch, attempt 1, head df7531ec81b7c5207e16f719da083987b642dafe, full-pinned job. vcvars resolved to VS 2022 Enterprise v17.14.41 and aborted cmd with 255. Historical failure PATH length was not recorded. The initial logging change also changed execution form, but it still reproduced the hosted failure; no claim that changing cmd chaining alone fixed it.

Additional retained REDs: the classifier initially failed 67 contracts before the new output/job existed; the abrupt-255 harness initially lacked explicit stage attribution; overlong inherited PATH was discarded by cmd and discovery failed with 9009 before deduplication. New batch-file Unicode and spaced-path regressions were reproduced and corrected separately; they are not the historical hosted cause.

Final local native evidence: the corrected actual fixture ran in pwsh -NoProfile -NonInteractive, with owned Unicode TEMP and deliberately repeated inherited PATH: 204 checks, 0 failures, all four native stage exits and raw cmd exit 0. PATH measured 12143 inherited → 4074 deduplicated → 5792 post-vcvars, including setup additions; both launch boundaries were below 8191. Exact original PATH restoration and zero remaining owned native scratch directories were asserted. Source SHA-256: 32388EE6E5B3A104410925225037FEEDF077E41B9795181AB707B0E8FBEF4953. vcvars was VS 2022 v17.14.42; where cl honestly selected the inherited installed VS 2019 MSVC 14.29 tool, not a claimed VS 2022 compiler.

Final manual full-pinned gate is not yet verified GREEN: Second and final authorized own dispatch, attempt 1, head 28b744c791bbc22e00666479a8b56b9022e9a698, Full pinned Windows validation job. Latest verified snapshot at 2026-10-19 13:04:40Z: job still in_progress, executing Run complete release gate; the post-release real hardening matrix had not completed. No hosted GREEN or clearance of #890 is claimed by this receipt. The dispatch budget is exhausted; no rerun, third dispatch, or automatic extension beyond the 13:07:49Z hard stop is authorized. The remote job is left uncancelled; its eventual result must be recorded separately if it is not available before handoff.

Review: one fresh default code-review agent reviewed the six-file change and reported no significant issues.

Limits: the separate Windows 2025 access-denied identity-guard false refusal is not this change's gate or fix; the earlier exit-race premise is retired. No macOS make test/make check, physical keyboard, screen-reader, visual parity, daemon persistence, or ledger promotion is claimed. The manual full-pinned dispatch is distinct from PR-native coverage configuration and is not a PR required-check result.

Checklist

  • I have read the Contributing Guidelines
  • I have signed off my commits (git commit -s) per the DCO
  • Tests pass locally (make test)
  • Code follows the existing style (make check)
  • I added the test/contract before the implementation and observed the intended RED failure

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 1b5c8644-46f4-4f37-b15a-1fec1f883cea
Signed-off-by: Colin Neilens <[email protected]>
Preserve first-occurrence PATH order and exact restoration while removing duplicate setup growth before cmd. Attribute each native stage, require 204 checks, and exercise native provider changes on PRs.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 1b5c8644-46f4-4f37-b15a-1fec1f883cea
Signed-off-by: Colin Neilens <[email protected]>
@coneilen
coneilen force-pushed the coneilen-hosted-native-provider-validation branch from 28b744c to ab3ab76 Compare October 19, 2026 13:34
@coneilen

Copy link
Copy Markdown
Collaborator Author

Hosted validation result: the manual \Full pinned Windows validation\ job 118054295765 (run 39250943852, head 28b744c) completed successfully at 13:34Z. This is the green run the body records as pending. It clears the native accessibility provider step's exit 255 (#890) on the hosted runner, with the PATH dedup in place. The upstream repeated Swift PATH prepends remain tracked separately in #893.

@coneilen
coneilen merged commit 22a4e72 into main Oct 19, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant