Skip to content

test: live-site stops get stand-in sites, and the clock panel's gap check allows a late recorder - #911

Merged
earakely-scale merged 4 commits into
mainfrom
edgararakelyan/live-site-test-fallback
Nov 24, 2026
Merged

earakely-scale merged 4 commits into
mainfrom
edgararakelyan/live-site-test-fallback

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

chromium_universe_test loads four live sites through the computer's egress proxy, each at a different universe date. When one of them refuses GitHub's runners for a while, the slow tier goes red for every branch at once. On 2026-11-24 gnu.org closed the connection (net::ERR_CONNECTION_CLOSED) for runs of two unrelated branches within the same ten minutes.

Also the clock panel's rate test, which failed on the CodeBuild Linux run of this PR: AssertionError: [1.0125656127929688, 0.8290576934814453].

Change: the clock panel's redraw gaps

test_at_another_rate_it_redraws_at_every_universe_minute_at_most_once_a_second_and_frozen_not_at_all measures the gap between redraws by when the fake xfconf-query records its call, which is once its Python interpreter is up. The panel spaces its redraws from its own decision time (redrawn = now, then redraw() runs xfconf-query). So one call that starts 0.17 s late under the suite's load shortens the gap after it to 0.83 s, though the panel kept a second.

  • The floor is now 1 - START_LAG_S (0.6 s), named in the module.
  • At rate 60 a universe minute is a real second, so the floor only guards against two redraws in one second. Those land a poll (0.25 s) apart, well under it.
  • The ceiling (1.6 s) is unchanged.
  • I couldn't reproduce the failure on macOS, where the interpreter starts fast enough: 20 parallel runs passed with the old floor too.

Change: live-site stand-ins

  • Each stop names a second site that stands in when the first doesn't load. A stop passes when either one's page shows its title within LOAD_S.
  • The egress check expects interception on the sites that loaded.
  • A failed navigate (a 400 from browser/v1 navigate) counts as not loaded instead of failing the test.
  • When a stand-in was needed, the test warns with what the first site did, so a site that stays down shows in the warnings summary.
  • gnu.org is replaced by openbsd.org; stand-ins are postgresql.org, netbsd.org, ruby-lang.org and freebsd.org, none behind a bot challenge.
  • The docstring said 182 days back; the stops go 400.

What the test checks is unchanged: each date is outside any live certificate, so every site is re-signed by the egress proxy, and the boot browser never relaunches.

Testing

  • A temporary commit put an unreachable first site on the first stop. In CI's slow tier the test passed: the navigate failed (net::ERR_TUNNEL_CONNECTION_FAILED), python.org stood in, and the warning named the failed site. Every other stop's first site loaded: openbsd.org, kernel.org and wikipedia.org. The commit is reverted.
  • The final commit runs the real list.
  • Titles were checked against each site's page.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

This PR makes two tests less sensitive to outside delays:

  • Each universe-date stop can load a stand-in site.
  • The clock test allows for late redraw recordings.

No new actionable issues or repository-rule violations were found. Tests were not run during this review.

Reviews (2) · Last reviewed commit: "test(computers): the clock panel's redra..." · Reviewed by Greptile

earakely-scale and others added 2 commits November 23, 2026 22:34
…refusing CI's runners doesn't fail the run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e stand-in in CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale marked this pull request as ready for review November 24, 2026 06:48
@earakely-scale
earakely-scale requested a review from a team as a code owner November 24, 2026 06:48
earakely-scale and others added 2 commits November 23, 2026 22:48
…-in in CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the recording xfconf-query

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale earakely-scale changed the title test(computer): each live-site stop has a stand-in site test: live-site stops get stand-in sites, and the clock panel's gap check allows a late recorder Nov 24, 2026
@earakely-scale
earakely-scale merged commit 0559e39 into main Nov 24, 2026
35 of 37 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/live-site-test-fallback branch November 24, 2026 07:19
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