Skip to content

[Task] F1: add containerized Playwright smoke and required frontend CI checks #10

Closed

Description

@DavidVFitzGerald

Delivery phase

Phase 1 - frontend with mock services

Goal

Make the mock frontend foundation verifiable by the same reproducible commands locally and on PRs.

Context and authority

Milestone F1; read AGENTS.md, docs/team/product-manager.md, docs/product/LCA_diff_PRD.md, docs/engineering/roadmap.md, and docs/engineering/LCA_diff_Implementation_Specification.md §§3.3, 9.2, 12; roadmap F1 gate. Current planning baseline is on docs/agent-workflow, pending review/merge into main; proposed ADRs are not accepted authority. Add Playwright config/smoke tests under apps/frontend/, matching browser dependencies to tooling/test container image, frontend npm lock and .github/workflows/. These application paths are planned until created. Exclude all archive/reference folders.

Requirements and constraints

Pin Playwright and matching container-installed browsers/OS dependencies; install no host binaries. Establish npm --prefix apps/frontend run test:e2e (noninteractive). Every PR runs frozen npm install, format/lint/type/unit/build plus a small browser smoke in containers; introduce only applicable existing-layer gates, not fake backend successes.

One session-sized task/PR including verification and handoff. Run all development, installation and checks in containers; install nothing on the host. No real backend, Firebase project, cloud credentials or proprietary inputs. If the current PRD/spec must change, prepare an ADR and updates to both current documents in the same PR.

Acceptance criteria

  • AC1 - A clean container install uses the committed npm lock and a pinned Playwright version with its matching Chromium/Firefox binaries and OS dependencies installed inside the development/test container. Named Playwright projects chromium and firefox exist; there is no host npm/browser dependency.
  • AC2 - Playwright smoke loads the minimal mock frontend and verifies its explicit demo marker and service-composition availability without fetching/rendering protected dataset content. It needs no API/Firebase/cloud/proprietary inputs; product authentication arrives in F2.
  • AC3 - The test:e2e script runs noninteractively; frontend PR CI runs all six quality/build/browser checks with failures reflected as failing checks.
  • AC4 - A workflow_dispatch path can run the available full frontend suite; missing later app journeys are documented rather than marked passed.
  • AC5 - F1 completion evidence records versions, exact container commands/results and service/mock contract coverage; the mock-only limitation and future real integration are explicit.

Out of scope and follow-ups

Product auth smoke coverage arrives in #15; selector/grid/score journeys arrive in F3–F5. No branch-protection success claim if repository permissions/plan prevent enforcement; report that blocker.

Verification plan

Run inside ./dev shell: npm --prefix apps/frontend ci, format:check/lint/typecheck/test:unit/build, npm --prefix apps/frontend run test:e2e -- --project=chromium, and npm --prefix apps/frontend run test:e2e -- --project=firefox. Then inspect a real PR/workflow run for the delivered SHA; distinguish local success from CI execution.

Engineer records branch/SHA and exact results, leaves issue open, and hands off to QA. QA verifies every criterion at that SHA and reports PASS/FAIL/BLOCKED; mock evidence is not proof of real security/integration.

Dependencies and readiness

Blocked by #9. No implementation until dependencies and the M1 environment runtime gate are satisfied. This body is groomed planning material, not PM READY while blockers remain. Coordinator/PM rechecks merged dependencies and session-sized scope before starting.

Current readiness — supersedes historical blockers above

PM: READY, AC1–5 unchanged. PR #43 merged at 7704e8e; #9 closed after independent QA PASS and final hosted quality CI PASS. Current merged docs/contracts replace historical planning-branch statements. Implement named Chromium and Firefox Playwright projects with matching binaries/OS dependencies installed only in containers, minimal unauthenticated demo smoke and no protected dataset calls/content, PR/dispatch CI and accurate F1 completion evidence. No product auth UI before F2, no backend/security completion claim. No new ADR/product decision required. Completion remains pending implementation, independent QA, CI and approved merge.

Activity

  1. added
    task
    frontend
    blocked
    on Nov 13, 2026
  2. DavidVFitzGerald commented on Nov 13, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: BLOCKED

    Groomed using docs/team/product-manager.md for F1, Phase 1 — frontend with mock services. Documentation review: PASS for scope, required sections, specification coverage and acyclic dependency links; this is not application QA or implementation readiness.

    Blocking predecessor issues: #9. The M1 runtime gate (#2) and merged bootstrap/M2 configuration (#3) also remain required. PM must recheck merged dependencies and current interfaces before changing this to READY.

    Engineer implements one issue, commits regularly and hands the delivered SHA plus exact container checks to independent QA; do not close before QA, review and approved merge. No backend/Firebase/cloud credentials or host installations are required for Phase 1.

  3. removed
    blocked
    on Nov 14, 2026
  4. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: READY

    Rechecked merged #9/PR #43 and independent QA/hosted quality PASS. AC1–5 unchanged; body addendum supersedes historical blockers. Implement feat/f1-playwright-smoke in isolated rootless workspace; both chromium/firefox projects and zero protected data calls required. Record clean install, exact versions/container commands, browser+quality results, real hosted CI and remaining F2–F5/I1 coverage accurately. Independent QA follows at delivered SHA.

  5. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    Branch feat/f1-playwright-smoke, SHA 78645cf73a758423678733cc8276cf52aea5fd89. AC1–5 implemented: pinned Playwright/browser runtime in dev/CI containers, named Chromium/Firefox projects, noninteractive smoke and dispatch suite, failure artifacts, F1 coverage evidence and conditional roadmap gate. No product UI/auth/backend change.

    Rootless rebuilt workspace ./dev check PASS (UID mapping, capabilities/no-new-privileges, eight preflight scenarios). Frozen npm ci PASS (230 packages). Commands inside the container:

    npm --prefix apps/frontend ci
    npm --prefix apps/frontend run format:check
    npm --prefix apps/frontend run lint
    npm --prefix apps/frontend run typecheck
    npm --prefix apps/frontend run test:unit
    npm --prefix apps/frontend run build
    npm --prefix apps/frontend run test:e2e -- --project=chromium
    npm --prefix apps/frontend run test:e2e -- --project=firefox

    All PASS: 104 unit tests/six files; Chromium one smoke PASS; Firefox one smoke PASS. Wrong-marker browser assertion demonstrated exit 1 with screenshot/trace, then restored and both projects rerun green. Playwright 1.65.1, Chromium 159.0.8154.6/revision1255, Firefox159.0/revision1572. Shared installer uses lockfile and Debian snapshot20261112; binaries reside /ms-playwright inside image. YAML parse/shell syntax/whitespace PASS; clean worktree. docs/engineering/f1-verification.md records full commands/results/limitations.

    Independent QA and hosted CI pending at delivered SHA. No host installation or original-checkout changes. Future product auth/selector/grid/score journeys and real integration remain explicitly unverified. Leave issue open until QA, CI and approved merge.

  6. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: FAIL

    Independent QA at 78645cf73a758423678733cc8276cf52aea5fd89: local frozen install/format/lint/type/unit/build PASS (104 tests), named Chromium and Firefox each PASS. Binary probes confirm pinned revisions and container paths; worktree unchanged.

    AC3 FAIL in actual PR CI run https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43590019891: Chromium passed, but Firefox refused root process UID0 using GitHub's HOME=/github/home owned by UID1001. All preceding quality and browser install steps passed. Reproduce/logs: gh run view 43590019891 --log-failed. Expected both named browsers pass the required quality job; actual Firefox exits1 at launch. Failure diagnostics uploaded.

    Engineering is correcting the CI container home configuration, preserving sandbox/capability settings, then committing for fresh hosted validation. AC1/AC2 local evidence PASS; final AC3/AC4 and complete verdict pending corrected hosted PR/manual runs. QA made no edits. Leave #10 open and PR #44 draft pending fix and final QA.

  7. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA — CI Firefox home fix

    Final SHA 965fe7a. Both PR/main and manual browser steps now set HOME=/root, the actual UID0 container home, correcting GitHub runner HOME ownership mismatch. No ownership, capability or sandbox changes. Local equivalent ownership assertion and smoke pass both browsers (2 tests); workflow YAML parse and whitespace PASS; clean worktree. Evidence documents the initial hosted failure and requires fresh PR/manual runs. Prior full unit/quality/frozen-install evidence remains unchanged; independent QA and corrected hosted runs pending.

  8. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    Independent final QA at 965fe7acb413d8c7f1ded83cb3c9818e549dcb27, Phase 1 synthetic mock mode, PR #44. Supersedes the initial hosted Firefox FAIL at 78645cf; that failure remains recorded.

    Criterion Verdict/evidence
    AC1 PASS — Independent fresh npm ci installs 230 packages without lock drift. Playwright1.65.1 and launched Chromium159.0.8154.6/rev1255, Firefox159.0/rev1572 match registry and /ms-playwright container paths. Both named projects exist; no host browser/dependency installs.
    AC2 PASS — Both browsers load/reload built demo, observe provider-backed unauthenticated status, no protected content/API/fetch/XHR/external requests or runtime/console errors. Existing unit spies complement network assertions for in-memory calls.
    AC3 PASS — Noninteractive scripts and actual final PR quality run pass frozen install, format/lint/type/unit/build and both browsers. Initial Firefox home mismatch fixed using actual container home, without sandbox/capability/ownership changes.
    AC4 PASS — Actual workflow_dispatch full-suite run at final SHA passes all available unit/browser tests. Future product journeys explicitly documented as unbuilt.
    AC5 PASS — F1 evidence records exact pins, commands, coverage across #6–#9, local results, initial CI failure and conditional merge gate. No real auth/backend/security/full-MVP claim.

    Independent local checks at final SHA: format:check, lint, typecheck, test:unit (104 tests/six files), build and both browser projects PASS (two tests,8.1s). Prior independent frozen install and launched-binary version probes apply to unchanged lock/browser configuration. Commands executed inside rootless lca-f1-playwright workspace. Whitespace PASS; reviewed SHA/worktree unchanged; QA made no edits.

    Observed final hosted evidence, exact same SHA:

    No blocking regression or ADR-required deviation found. Next: maintainer reviews/merges PR #44; coordinator then closes #10 and records F1 complete. Product auth/browser journeys and real integration retain linked follow-ups.

  9. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: READY FOR REVIEW

    PR #44, branch feat/f1-playwright-smoke, final SHA 965fe7a. Independent QA PASS AC1–5; local frozen install,104unit tests, all quality/build checks and both browser projects PASS. Actual final PR run43590590606 and manual full-suite run43590586868 both SUCCESS with104unit and2browser tests. Initial CI Firefox home failure fixed and retained in history. Clean committed worktree, no unresolved blockers. Next owner: maintainer reviews/merges PR #44; coordinator then closes #10 and records F1 milestone complete. F1 currently has only this issue open. No merge/deployment/publication performed.

  10. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: merged/closed. The maintainer confirmed PR #44 was merged; GitHub records merge 9612943 at 2026-11-14T11:39:19Z. Independent final QA PASS is recorded at delivered SHA 965fe7a in #10 (comment), and required quality CI run 43590590606 and manual full-suite run 43590586868 both passed. F1 gate is complete; F2 #11/#12 may be rechecked for readiness. This is mock frontend foundation evidence only; real auth/security/integration remains B2/I1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions