Skip to content

ci: alignment auditor joins the pipeline — portable paths + fail-on-findings - #695

Merged
jackwener merged 1 commit into
mainfrom
feat/alignment-audit-ci
Jul 9, 2026
Merged

ci: alignment auditor joins the pipeline — portable paths + fail-on-findings#695
jackwener merged 1 commit into
mainfrom
feat/alignment-audit-ci

Conversation

@jackwener

Copy link
Copy Markdown
Member

Closes the last governance-infrastructure item: scripts/audit-alignment.mjs (the round-13 machine auditor for same-type height mismatches / centerline drift / radius splits) is now a CI gate.

  • Portability: repo root derived from the script location (was a hardcoded absolute path), user-data dirs under os.tmpdir()
  • CI semantics: alignment findings AND fixture launch failures exit 1 (a fixture that can't boot means no coverage — fail loud)
  • Pipeline: appended to the e2e job, reusing its renderer build + xvfb pattern

Locally verified end-to-end: all fixtures clean, exit 0.

…indings

The CDP alignment auditor becomes a CI gate: hardcoded machine paths
replaced (repo root derived from the script location, user-data dirs
under os.tmpdir), findings and fixture launch errors now exit non-zero,
and the e2e job runs it under the same xvfb pattern right after the
renderer it builds. Locally verified: all fixtures clean, exit 0.
@jackwener
jackwener merged commit cc1089f into main Jul 9, 2026
2 of 3 checks passed
@jackwener
jackwener deleted the feat/alignment-audit-ci branch July 9, 2026 16:24
Astro-Han added a commit that referenced this pull request Jul 9, 2026
* fix(ci): resolve electron binary portably in alignment auditor

#695 made the alignment auditor a CI gate but left the macOS
Electron.app path hardcoded, so ubuntu-latest e2e dies with ENOENT
before any fixture runs (breaks main and every open PR, including
#680). Resolve via the electron package export like capture-screenshots
and real-window-smoke, and fold spawn errors into the per-fixture
failure count instead of an unhandled crash.

* fix(ci): harden alignment auditor electron launch for Linux CI

Portable electron path alone was not enough: every fixture still died
with "fetch failed" on ubuntu-latest because the auditor launched unlike
capture-screenshots / Playwright e2e (no cwd, switches after app path,
stdio ignored, no Linux sandbox flags, fixed 8.5s sleep).

Align spawn with the working launchers: cwd=apps/desktop, app='.',
Chromium switches first, --no-sandbox/--disable-gpu/--disable-dev-shm-usage
on Linux, pipe stderr/stdout, poll CDP until a page target appears, and
include process tails in fixture errors so the next failure is diagnosable.
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