Skip to content

ci: the viewer's browser tests are part of CI passed, so a PR cannot merge before they pass on its head (#1374) #1394

Closed

Description

@DrunkOnJava

Problem

Pull requests merge when full / CI passed is green. The viewer's Playwright suite is not part of it: it runs in Deploy viewer (.github/workflows/deploy-viewer.yml, pull_request trigger), a workflow that CI passed does not wait for.

#1370 merged before those tests had finished: Deploy viewer was skipped while the PR was a draft, then cancelled by a later push, and CI passed was green throughout. Main's Deploy viewer then went red on memory-ceiling-capped.spec.ts (#1374). The maintainer's arm.sh checks the viewer run only when a PR is armed, so a PR updated with main after arming can still merge before the viewer tests rerun on its head.

Change

  • The viewer job moves to a reusable workflow, .github/workflows/viewer-test.yml (workflow_call, and workflow_dispatch so a draft's viewer can still be checked by hand).
  • ci.yml calls it as job viewer, listed in ci-ok's needs, in the full set only (a ready PR, or a push to main); the draft fast set does not run it.
  • A change that touches only documentation skips it, as Deploy viewer's deploy step skips waiting for CI on such a commit. A skipped job counts as a pass in CI passed.
  • Deploy viewer drops its pull_request trigger and no longer runs the browser tests itself; its deploy job still waits for CI passed on the pushed commit, which now includes them.
  • The suite is split across parallel jobs so that CI passed does not wait much longer. The timing before and after is recorded in the pull request.

Refs #1374.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:citype:ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions