Skip to content

CI: keep screenshots, a trace and per-script timings from the browser lane #552

Closed

Description

@devswha

Problem

When the browser lane of "Integration and browser" fails, the job log holds only the assertion and the PASS lines before it. The two intermittent failures fixed on 2026-10-07 (#536, #537) could not be told apart from test timing in the logs; both were found by reproducing them on a PC with a probe. A third one (#551) is open with nothing more to go on than its one assertion.

What a failed run does not keep today:

  • What the page looked like. The browser scripts already write screenshots when UI_EVIDENCE_DIR is set, but CI does not set it, and nothing is taken at the point of failure. No Playwright trace is recorded.
  • What the server said. The web UI servers the scripts start log to the lane's output, mixed with the PASS lines, with no timestamps of their own. herdr's test-server.log is uploaded on failure; the frames the page received are not.
  • How long each script took. scripts/ci-browser.sh runs its scripts one after another and prints nothing between them. The profile behind chore(ci): build the demo's client once for the browser lane #548 had to be rebuilt from PASS-line timestamps, which also count each script's setup against the script before it.

What to add

  • In scripts/ci-browser.sh, print each script's name and how long it took, and a summary at the end.
  • On failure, keep a screenshot of every open page and, if the cost is acceptable, a Playwright trace of the failing context; upload them with the existing "Preserve failure logs" step (CHECK_DIR is already kept in CI, so a directory under it needs no new plumbing).
  • Timestamps on the test servers' own lines, so a server line can be placed against a PASS line.

No retries: a failure that a retry turns green is the kind this is meant to explain.

Then measure

Also unexplained

Seven CI runs of fork PRs on 2026-10-06 ended as failure with no jobs and no log (37455493445, 37452965707, 37443957584, 37437006600, 37436949778, 37411882568, 37411593274). They are not test failures. The likely cause is an approval-gated run that was closed or superseded, but the run metadata does not say. Worth one look, so the failure count of the CI workflow can be read without subtracting them by hand.

Activity

  1. devswha commented on Oct 12, 2026

    @devswha
    OwnerAuthor

    The parts of this issue that main already covers are done. The remaining work moves to #897, so this issue can close.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions