oficina / equipo Public

ci: fix stale browser tests; hold five pre-thin walks as known broken

The first hosted run of the browser lanes failed eleven tests. Six were
stale expectations, now fixed:

- TestBrowserReceiptFollowsReview: since slice 4c Equipo merges an
  approved task, so the receipt ends at Done, merged into main, with no
  merge button; the waits on the deliberately slow step and review get
  20 s, as the rail drive's do.
- TestBrowserTaskThread: the answer leads with the session's headline,
  as ask_test.go already expects.
- TestBrowserSettingsMenu and TestBrowserSettingsRail: Machines is a
  Settings section now (six drill-ins, Add a machine in the rail).
- TestTeamsHierarchyBrowser and TestConversationLayout skipped on CI:
  they looked for a browser on PATH only. They read RASTRILLO_CHROME
  and use testci.Absent, which fails where the box supplies one.

Five walk pre-thin pages the thin core replaced (four in equipotest,
TestConversationLayout in plan3test) and fail every time. They are
quarantined with reasons starting "Broken:": the quarantine shard still
runs them and prints QUARANTINE BROKEN, does not go red for them, and
says when one passes. A known-broken test that stops running is red.

Browser lanes rebalanced from the run's times: thintest is one lane, so
five browser lanes and 20-check@28.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 44927a900cada8041fd82ad02cc1a0d6d0df9969 parent 9412df2
13 files changed, +91 −34
  • .amadan/ci.d/{20-check@29 => 20-check@28} +2 −2
  • docs/superpowers/plans/HOSTED-CI-PROGRESS.md +7 −2
  • internal/equipotest/browser_test.go +2 −0
  • internal/equipotest/chat_browser_test.go +2 −0
  • internal/equipotest/optimistic_browser_test.go +2 −0
  • internal/equipotest/task_browser_test.go +3 −1
  • internal/headless/browser_review_test.go +10 −7
  • internal/headless/browser_thread_test.go +3 −1
  • internal/plan3test/conversation_layout_browser_test.go +7 −2
  • internal/plan3test/teams_navigation_browser_test.go +6 −2
  • internal/thintest/settings_browser_test.go +5 −4
  • scripts/ci-quarantine.txt +10 −0
  • scripts/ci-test.py +32 −13

CI passed — run details

diff --git a/.amadan/ci.d/20-check@29 b/.amadan/ci.d/20-check@28
similarity index 86%
rename from .amadan/ci.d/20-check@29
rename to .amadan/ci.d/20-check@28
index a02c26ed..8bd34ec1 100755
--- a/.amadan/ci.d/20-check@29
+++ b/.amadan/ci.d/20-check@28
@@ -1,7 +1,7 @@
#!/bin/sh
-# Everything but perf, as 29 shards side by side; AMADAN_SHARD picks one
+# Everything but perf, as 28 shards side by side; AMADAN_SHARD picks one
# (scripts/ci-test.py: LANES, BROWSER_LANES, then EXTRA_SHARDS). Seventeen
-# test lanes of about a minute each. Then six browser lanes: the
+# test lanes of about a minute each. Then five browser lanes: the
# -tags browser tests, each driving the pinned headless Chromium
# (scripts/ci-chromium.json). Then the quarantine: known flaky tests
# (scripts/ci-quarantine.txt), kept out of the lanes. Then runner-host: the exact bubblewrap build,
diff --git a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
index 4610bbfa..7ed53b4d 100644
--- a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
@@ -69,7 +69,12 @@ between two delegated cgroups. So:
`/opt/chromium-<version>`, and the box sets `RASTRILLO_CHROME` to its
launcher, which `harness.ChromePath` reads first. Raise it with
`scripts/ci-chromium-pin.py VERSION SNAPSHOT SECURITY_SNAPSHOT`. The
- quarantine runs a quarantined browser test with the browser tag.
+ quarantine runs a quarantined browser test with the browser tag. A
+ quarantine line whose reason starts `Broken:` is a test that fails every
+ time because the pages it drives were replaced (five pre-thin walks in
+ equipotest and plan3test): the quarantine shard runs it every time and
+ prints `QUARANTINE BROKEN`, without going red for it, and says
+ `QUARANTINE BROKEN TEST PASSES` when its line can go.
## Caches across fresh machines
@@ -97,7 +102,7 @@ between two delegated cgroups. So:
| `00-prepare` | fetch and verify the pinned programs and Chromium, pull the image, deepen the clone, set file times |
| `05-copy` | `make copy-release-check`: copy still marked COPY REVIEW REQUIRED fails here, not at the staging build |
| `10-compile` | compile every package and its tests once (the browser packages with `-tags browser` too), link no test; build rastrillo and the static check tools |
-| `20-check@29` | 17 test lanes, 6 browser lanes, the quarantine, `runner-host` (bubblewrap build, pinned codex, namespaces, cgroup move, uncached), and the static checks in four groups; a failed test is retried once |
+| `20-check@28` | 17 test lanes, 5 browser lanes, the quarantine, `runner-host` (bubblewrap build, pinned codex, namespaces, cgroup move, uncached), and the static checks in four groups; a failed test is retried once |
| `50-perf` | alone, it measures time |
| `90-cache` | report and trim the caches |
diff --git a/internal/equipotest/browser_test.go b/internal/equipotest/browser_test.go
index f70879c5..ee06226f 100644
--- a/internal/equipotest/browser_test.go
+++ b/internal/equipotest/browser_test.go
@@ -4,6 +4,7 @@ package equipotest
import (
"amadan.net/oficina/equipo/internal/browsertest"
+ "amadan.net/oficina/equipo/internal/testci"
"context"
"fmt"
"io"
@@ -25,6 +26,7 @@ import (
)
func TestFoundationBrowserWalk(t *testing.T) {
+ testci.Quarantine(t)
mailer := &capturingMailer{}
rig := harness.New(t, func(origin string) http.Handler {
logger := slog.New(slog.NewTextHandler(io.Discard, nil))
diff --git a/internal/equipotest/chat_browser_test.go b/internal/equipotest/chat_browser_test.go
index 30f30f26..e85a4baa 100644
--- a/internal/equipotest/chat_browser_test.go
+++ b/internal/equipotest/chat_browser_test.go
@@ -5,6 +5,7 @@ package equipotest
import (
"amadan.net/oficina/equipo/internal/browsertest"
"amadan.net/oficina/equipo/internal/equipo"
+ "amadan.net/oficina/equipo/internal/testci"
"amadan.net/rastrillo/rastrillo/harness"
"context"
"fmt"
@@ -18,6 +19,7 @@ import (
)
func TestChatBrowser(t *testing.T) {
+ testci.Quarantine(t)
f, _ := questionFixture(t)
task := f.a.TaskID
mustSQL(t, f.d, "UPDATE questions SET raw_request=?", `{"provider":"claude","name":"AskUserQuestion","input":{"questions":[{"question":"Which invoice total should appear?","options":[{"label":"Net"},{"label":"Subtotal"}]}]}}`)
diff --git a/internal/equipotest/optimistic_browser_test.go b/internal/equipotest/optimistic_browser_test.go
index 83038478..67bf1158 100644
--- a/internal/equipotest/optimistic_browser_test.go
+++ b/internal/equipotest/optimistic_browser_test.go
@@ -3,6 +3,7 @@
package equipotest
import (
+ "amadan.net/oficina/equipo/internal/testci"
"net/http"
"testing"
@@ -14,6 +15,7 @@ import (
)
func TestOptimisticChat(t *testing.T) {
+ testci.Quarantine(t)
d, _ := foundationDB(t)
mailer := &capturingMailer{}
var router http.Handler
diff --git a/internal/equipotest/task_browser_test.go b/internal/equipotest/task_browser_test.go
index 1df9319a..8e258ed0 100644
--- a/internal/equipotest/task_browser_test.go
+++ b/internal/equipotest/task_browser_test.go
@@ -4,6 +4,7 @@ package equipotest
import (
"amadan.net/oficina/equipo/internal/browsertest"
+ "amadan.net/oficina/equipo/internal/testci"
"context"
"fmt"
"net/http"
@@ -20,6 +21,7 @@ import (
)
func TestRunnerTaskBrowserWalk(t *testing.T) {
+ testci.Quarantine(t)
f := bugFixture(t)
task := bugTask(t, f)
long := strings.Repeat("Long bug description ", 30)
@@ -58,7 +60,7 @@ func TestRunnerTaskBrowserWalk(t *testing.T) {
rig.Run(chromedp.Navigate(rig.Origin+path), browsertest.Wait(`!document.documentElement.matches(":active-view-transition") && document.getAnimations().every(a=>a.playState!=="running")`))
check(`document.documentElement.scrollWidth<=innerWidth && document.body.scrollWidth<=innerWidth`, fmt.Sprintf("overflow %s at %d", path, width))
if path != "/work" {
- check(`document.querySelectorAll('[aria-current="page"]').length===1`, "one active destination")
+ check(`document.querySelectorAll('[aria-current="page"]').length===1`, fmt.Sprintf("one active destination %s at %d", path, width))
}
rig.Screen("body", fmt.Sprintf("task16 %s %d", path, width))
if path == "/journey" {
diff --git a/internal/headless/browser_review_test.go b/internal/headless/browser_review_test.go
index fd874c57..ab8b7941 100644
--- a/internal/headless/browser_review_test.go
+++ b/internal/headless/browser_review_test.go
@@ -11,8 +11,10 @@ import (
// Paul, staging 71ce51b: the task receipt follows the task live, with no
// reload: In progress, then the pushed branch and its short SHA, In
-// review while checks and review run, then Ready to merge with what they
-// found and the one prominent decision, Open on Amadan to merge.
+// review while checks and review run, then what they found. Since slice
+// 4c Equipo merges a task whose checks passed and whose review approved,
+// so the receipt ends at Done, merged into main, with the link to the
+// repository; there is no merge for the person to make.
func TestBrowserReceiptFollowsReview(t *testing.T) {
_, inst, r := localEnv(t)
r.start(t)
@@ -24,12 +26,13 @@ func TestBrowserReceiptFollowsReview(t *testing.T) {
card := taskCard("Fix the README typo")
stage := card + `?.querySelector('[equipo-stage]')?.textContent`
p.run(browsertest.Wait(stage + `==='In progress'`))
- p.run(browsertest.Wait(`(()=>{const c=` + card + `;return !!c && c.querySelector('[equipo-stage]').textContent==='In review' && /^Pushed equipo\/tk[a-z0-9]+-fix-the-readme-typo at [0-9a-f]{7}$/.test(c.querySelector('[data-pushed] span').textContent)})()`))
- p.run(browsertest.Wait(`(()=>{const c=` + card + `;return c.querySelector('[data-verdict]')?.textContent==='Reviewing…' && c.querySelector('[data-checks]')?.textContent==='Checks passed (make ci)'})()`))
- p.run(browsertest.Wait(`(()=>{const c=` + card + `;const b=c.querySelector('[data-merge]');return c.querySelector('[equipo-stage]').textContent==='Ready to merge' && c.querySelector('[data-verdict]').textContent==='Approved (same family, same account)' && !!b && b.textContent==='Open on Amadan to merge' && b.target==='_blank' && b.href.startsWith('https://amadan.net/oficina/sample?branch=equipo/')})()`))
+ // The step and the review each sleep 2.5 s on purpose: these waits are
+ // on that work, so they get the window the rail drive gives it.
+ p.run(browsertest.WaitWithin(`(()=>{const c=`+card+`;return !!c && c.querySelector('[equipo-stage]').textContent==='In review' && /^Pushed equipo\/tk[a-z0-9]+-fix-the-readme-typo at [0-9a-f]{7}$/.test(c.querySelector('[data-pushed] span').textContent)})()`, 20*time.Second))
+ p.run(browsertest.WaitWithin(`(()=>{const c=`+card+`;return c.querySelector('[data-verdict]')?.textContent==='Reviewing…' && c.querySelector('[data-checks]')?.textContent==='Checks passed (make ci)'})()`, 20*time.Second))
+ p.run(browsertest.WaitWithin(`(()=>{const c=`+card+`;const m=c.querySelector('[data-merged]');const a=m?.querySelector('[data-open-amadan]');return c.querySelector('[equipo-stage]').textContent==='Done' && c.querySelector('[data-verdict]').textContent==='Approved (same family, same account)' && !!m && /^Merged into main at [0-9a-f]{7}$/.test(m.querySelector('span').textContent) && !c.querySelector('[data-pushed]') && !!a && a.textContent==='Open on Amadan' && a.target==='_blank' && a.href.startsWith('https://amadan.net/oficina/sample')})()`, 20*time.Second))
p.check(`performance.getEntriesByType('navigation').length===window.__nav`, "the page reloaded")
- // The decision is the one prominent control: visible and in reach on a phone.
- p.check(`(()=>{const b=`+card+`.querySelector('[data-merge]').getBoundingClientRect();return b.width>0 && b.height>=36})()`, "merge button hidden")
+ p.check(`(()=>{const b=`+card+`.querySelector('[data-merged] [data-open-amadan]').getBoundingClientRect();return b.width>0 && b.height>0})()`, "the link to the merge is hidden")
}
// Paul, staging: the sidebar reads the thin core and follows the stream.
diff --git a/internal/headless/browser_thread_test.go b/internal/headless/browser_thread_test.go
index 99bdef14..b1fd3c7f 100644
--- a/internal/headless/browser_thread_test.go
+++ b/internal/headless/browser_thread_test.go
@@ -70,10 +70,12 @@ func TestBrowserTaskThread(t *testing.T) {
p.check(`(`+effectiveBackground+`)(document.querySelector('#chat-composer'))===(`+effectiveBackground+`)(document.querySelector('[equipo-thread]'))`, "the dock is not the page's colour")
p.check(`getComputedStyle(document.querySelector('#chat-composer')).position==='sticky'`, "the composer is not docked")
// Ask: the question at once, then the answer streams and settles.
+ // The session's own last reply leads it: Engineering's headline,
+ // then its summary (as the API answer in ask_test.go).
p.check(`(()=>{document.querySelector('#chat-body').value='What did you change and why? ask:git';document.querySelector('#composer').requestSubmit();return true})()`, "ask")
p.check(`[...document.querySelectorAll('[equipo-thread] [equipo-message="own"] [equipo-message-body]')].some(e=>e.textContent.startsWith('What did you change'))`, "the question did not show at once")
p.run(browsertest.Wait(`(()=>{const e=document.querySelector('[equipo-thread] [equipo-thinking]');if(!e)return false;e.__live=true;return e.querySelector('[data-who]').textContent==='Engineering'})()`))
- p.run(browsertest.Wait(`(()=>{const a=document.querySelector('[equipo-thread] [equipo-message="incoming"][data-turn-id]');return !!a && a.__live===true && !a.hasAttribute('equipo-thinking') && a.textContent.includes('From my session: Replaced') && a.textContent.includes('The change: +')})()`))
+ p.run(browsertest.Wait(`(()=>{const a=document.querySelector('[equipo-thread] [equipo-message="incoming"][data-turn-id]');return !!a && a.__live===true && !a.hasAttribute('equipo-thinking') && a.textContent.includes('From my session: Headline: Made the change the task asks for.') && a.textContent.includes('Replaced "teh panes" with "the panes" in README.md.') && a.textContent.includes('The change: +')})()`))
p.check(`performance.getEntriesByType('navigation').length===window.__nav`, "the page reloaded")
p.check(`document.querySelector('[data-ask-specialist]').value===''`, "the next question keeps the last choice")
p.stop()
diff --git a/internal/plan3test/conversation_layout_browser_test.go b/internal/plan3test/conversation_layout_browser_test.go
index b99d2600..6671a804 100644
--- a/internal/plan3test/conversation_layout_browser_test.go
+++ b/internal/plan3test/conversation_layout_browser_test.go
@@ -4,6 +4,7 @@ package plan3test
import (
"amadan.net/oficina/equipo/internal/equipo"
+ "amadan.net/oficina/equipo/internal/testci"
"amadan.net/rastrillo/rastrillo/harness"
"context"
"fmt"
@@ -12,6 +13,7 @@ import (
"github.com/chromedp/chromedp"
"github.com/chromedp/chromedp/kb"
"net/http"
+ "os"
"os/exec"
"strings"
"testing"
@@ -19,7 +21,10 @@ import (
)
func TestConversationLayout(t *testing.T) {
- found := false
+ testci.Quarantine(t)
+ // The browser harness.ChromePath finds: RASTRILLO_CHROME (the CI box
+ // sets it to its pinned Chromium), or one on PATH.
+ found := os.Getenv("RASTRILLO_CHROME") != ""
for _, name := range []string{"chromium", "chromium-browser", "google-chrome", "google-chrome-stable"} {
if _, err := exec.LookPath(name); err == nil {
found = true
@@ -27,7 +32,7 @@ func TestConversationLayout(t *testing.T) {
}
}
if !found {
- t.Skip("Chrome/Chromium is unavailable locally; conversation layout requires the existing chromedp browser fixture")
+ testci.Absent(t, "Chrome/Chromium is unavailable locally; conversation layout requires the existing chromedp browser fixture")
}
f := newFixture(t)
p := proposed(t, f)
diff --git a/internal/plan3test/teams_navigation_browser_test.go b/internal/plan3test/teams_navigation_browser_test.go
index fdcf750a..565da55e 100644
--- a/internal/plan3test/teams_navigation_browser_test.go
+++ b/internal/plan3test/teams_navigation_browser_test.go
@@ -3,6 +3,7 @@
package plan3test
import (
+ "amadan.net/oficina/equipo/internal/testci"
"amadan.net/rastrillo/rastrillo/harness"
"context"
"github.com/chromedp/cdproto/cdp"
@@ -10,6 +11,7 @@ import (
"github.com/chromedp/cdproto/network"
"github.com/chromedp/chromedp"
"net/http"
+ "os"
"os/exec"
"strings"
"testing"
@@ -17,7 +19,9 @@ import (
)
func TestTeamsHierarchyBrowser(t *testing.T) {
- found := false
+ // The browser harness.ChromePath finds: RASTRILLO_CHROME (the CI box
+ // sets it to its pinned Chromium), or one on PATH.
+ found := os.Getenv("RASTRILLO_CHROME") != ""
for _, name := range []string{"chromium", "chromium-browser", "google-chrome", "google-chrome-stable"} {
if _, err := exec.LookPath(name); err == nil {
found = true
@@ -25,7 +29,7 @@ func TestTeamsHierarchyBrowser(t *testing.T) {
}
}
if !found {
- t.Skip("Chrome/Chromium binary unavailable; scriptless Teams hierarchy needs the chromedp fixture")
+ testci.Absent(t, "Chrome/Chromium binary unavailable; scriptless Teams hierarchy needs the chromedp fixture")
}
f := newFixture(t)
task := f.createTask(t)
diff --git a/internal/thintest/settings_browser_test.go b/internal/thintest/settings_browser_test.go
index b60b3eff..085d4c2d 100644
--- a/internal/thintest/settings_browser_test.go
+++ b/internal/thintest/settings_browser_test.go
@@ -92,7 +92,7 @@ func (p *innerPage) waitFor(cond func() bool, what string) {
// Settings menu is a second sidebar beside the section, the current one
// marked, the app's rail still there, and a section is a link away; at
// 390 /conversation/settings is the menu as full-row drill-ins with
-// chevrons, and a section is its own page with Settings in its bar and no
+// chevrons (six since Machines moved under Settings), and a section is its own page with Settings in its bar and no
// menu. Light and dark; EQUIPO_BROWSER_ARTIFACTS keeps the shots.
func TestBrowserSettingsMenu(t *testing.T) {
r := newToolRig(t)
@@ -117,7 +117,7 @@ func TestBrowserSettingsMenu(t *testing.T) {
// Phone.
q := openInner(t, r.inst.URL, r.inst.Cookie(), 390, 844, true, scheme, "no-preference")
q.open("/conversation/settings")
- q.check(`(()=>{const ls=[...document.querySelectorAll('[equipo-settings-link]')];const body=document.querySelector('[equipo-settings-body]');return ls.length===5&&ls.every(a=>{const r=a.getBoundingClientRect();return r.height>=44&&r.width>=340&&getComputedStyle(a.querySelector('.icon:last-child')).display!=='none'})&&getComputedStyle(body).display==='none'&&document.documentElement.scrollWidth<=390})()`, scheme+" 390: the menu is not full-row drill-ins")
+ q.check(`(()=>{const ls=[...document.querySelectorAll('[equipo-settings-link]')];const body=document.querySelector('[equipo-settings-body]');return ls.length===6&&ls.every(a=>{const r=a.getBoundingClientRect();return r.height>=44&&r.width>=340&&getComputedStyle(a.querySelector('.icon:last-child')).display!=='none'})&&getComputedStyle(body).display==='none'&&document.documentElement.scrollWidth<=390})()`, scheme+" 390: the menu is not full-row drill-ins")
q.wait(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`, "the slide settled")
q.shot("settings-list-390-" + scheme)
q.click(`[data-settings-link="thinking"]`)
@@ -137,7 +137,8 @@ func TestBrowserSettingsMenu(t *testing.T) {
// TestBrowserSettingsRail: Paul, 2026-11-10: "The settings nav should
// probably replace the main nav on this view, right?" At 1280 Settings
// is two columns: the rail itself turns into the Settings nav ("‹
-// Equipo", the sections, Add a connection under Connections) with a
+// Equipo", the sections, Add a connection under Connections and Add a
+// machine under Machines) with a
// short slide as the person crosses in, and none between sections; "‹
// Equipo" goes back to where they were, the main nav sliding back. The
// rail does not move or resize. Under reduced motion nothing slides. At
@@ -152,7 +153,7 @@ func TestBrowserSettingsRail(t *testing.T) {
p.check(`(()=>{sessionStorage.setItem('rail',JSON.stringify(document.querySelector('[rst-shell-rail]').getBoundingClientRect()));return document.querySelector('#rail').checkVisibility() && !document.querySelector('[equipo-settings-rail]')})()`, "1280: the main nav is not the rail outside Settings")
p.click(`#rail a[href="/conversation/settings"]`)
p.wait(`location.pathname==='/conversation/settings' && `+sliding+`(document.querySelector('[equipo-settings-rail]'))`, "the Settings nav slides in")
- p.check(`(()=>{const was=JSON.parse(sessionStorage.getItem('rail')),now=document.querySelector('[rst-shell-rail]').getBoundingClientRect();const n=document.querySelector('[equipo-settings-rail]');const links=[...n.querySelectorAll('a')].map(a=>a.dataset.railSettings||'leave');return Math.abs(was.left-now.left)<1&&Math.abs(was.width-now.width)<1&&!document.querySelector('#rail').checkVisibility()&&links.join()==='leave,thinking,connections,connections-add,housekeeping,notebook,teams'&&n.querySelector('[data-settings-leave]').textContent.trim()==='Equipo'&&n.querySelector('[data-settings-leave]').getAttribute('href')==='/tasks'})()`, "1280: the rail moved, or is not ‹ Equipo and the sections, or ‹ Equipo does not lead back to Tasks")
+ p.check(`(()=>{const was=JSON.parse(sessionStorage.getItem('rail')),now=document.querySelector('[rst-shell-rail]').getBoundingClientRect();const n=document.querySelector('[equipo-settings-rail]');const links=[...n.querySelectorAll('a')].map(a=>a.dataset.railSettings||'leave');return Math.abs(was.left-now.left)<1&&Math.abs(was.width-now.width)<1&&!document.querySelector('#rail').checkVisibility()&&links.join()==='leave,thinking,connections,connections-add,machines,machines-add,housekeeping,notebook,teams'&&n.querySelector('[data-settings-leave]').textContent.trim()==='Equipo'&&n.querySelector('[data-settings-leave]').getAttribute('href')==='/tasks'})()`, "1280: the rail moved, or is not ‹ Equipo and the sections, or ‹ Equipo does not lead back to Tasks")
p.check(`(()=>{const n=document.querySelector('[equipo-settings-rail]').getBoundingClientRect(),b=document.querySelector('[equipo-settings-body]').getBoundingClientRect();return n.right<=b.left&&b.left-n.right<120&&!document.querySelector('[equipo-settings-nav]').checkVisibility()})()`, "1280: Settings is not two columns")
p.wait(settled, "the slide settled")
p.shot("settings-rail-1280")
diff --git a/scripts/ci-quarantine.txt b/scripts/ci-quarantine.txt
index ca0f37c8..c1ae7a3c 100644
--- a/scripts/ci-quarantine.txt
+++ b/scripts/ci-quarantine.txt
@@ -8,6 +8,11 @@
# on oficina/equipo. A quarantine is a holding pen, not a fix: each line
# says what would let it leave. CI-PROGRESS.md has the history.
#
+# A reason starting "Broken:" is a test that fails every time, not a
+# flake: written for pages a later design replaced. The quarantine shard
+# still runs it and prints QUARANTINE BROKEN, but does not go red for it;
+# when it passes, the shard says to take its line out.
+#
# package test why
./internal/headless TestMixedVersions M8 builds the staging line from git history and runs both version pairs. One cause found and fixed on ci-speed (the task read as merging after ready to merge); leaves after a clean week here.
@@ -22,3 +27,8 @@
./internal/headless TestHeadlessConnections/C5_review_other_family_first As C5_engineering_failover.
./internal/runner/thin TestRunnerCancelAndSupersede The runner closed the stream right after acking the message (twice in CI on a45234a); 800 isolated local runs pass. The link now logs why a stream ends, so the next failure here names it.
./internal/runner/checks TestCheckSandboxDeniedPathsTampering "child survived cancellation" under load; cancelling at 1 to 60 ms after start left no survivor in 50 local runs at load 50 to 78, so the cause is not the start-up window. Leaves when a failing log names it.
+./internal/equipotest TestFoundationBrowserWalk Broken: walks the pre-thin foundation pages and rail (/work paths, specialists), which the thin rail replaced; it times out on /conversation. Leaves when rewritten for the thin pages or deleted with them (slice 7 sweep).
+./internal/equipotest TestChatBrowser Broken: the pre-thin conversation page (coordinator messages, /tasks/ID/thread), which the thin chat replaced. Leaves as TestFoundationBrowserWalk.
+./internal/equipotest TestOptimisticChat Broken: drives #conversation-feed, the pre-thin chat feed; the thin chat has no such element (headless TestBrowserChatSendStaysOnPage drives the thin send). Leaves as TestFoundationBrowserWalk.
+./internal/equipotest TestRunnerTaskBrowserWalk Broken: a pre-thin task page renders with page key journey, which the thin rail no longer lists, so no destination is current. Leaves as TestFoundationBrowserWalk.
+./internal/plan3test TestConversationLayout Broken: sends through the pre-thin conversation store, whose messages the thin /conversation no longer shows. Leaves as TestFoundationBrowserWalk.
diff --git a/scripts/ci-test.py b/scripts/ci-test.py
index a8d73475..63d79f34 100755
--- a/scripts/ci-test.py
+++ b/scripts/ci-test.py
@@ -98,11 +98,10 @@ LANES = [
# The browser tests wait on the page with short deadlines, so none of
# these is LATE.
BROWSER_LANES = [
- ("browser-headless-chat", [HEADLESS], ["TestBrowserChat", "TestBrowserChatSendStaysOnPage", "TestBrowserMoveIn", "TestBrowserComposer", "TestBrowserComposerReconcile", "TestBrowserComposerFocus", "TestBrowserComposerDock", "TestBrowserDraftStreamsFormatted", "TestBrowserDraftIsTheMessage", "TestBrowserThinkingAndCards", "TestBrowserRefreshRace"]),
- ("browser-headless-work", [HEADLESS], ["TestBrowserTaskCard", "TestBrowserReceiptFollowsReview", "TestBrowserRailFollowsWork", "TestBrowserTaskThread", "TestBrowserAskAfterMerge", "TestBrowserReceiptsDesktop", "TestBrowserReceiptsTouch", "TestBrowserNotebook", "TestBrowserEmptyExplore", "TestNotebookScreenshots", "TestBrowserNotebookLook"]),
- ("browser-headless-rest", [HEADLESS], None), # the connections pages and any new one
- ("browser-thintest-settings", ["./internal/thintest"], ["^TestBrowserSettings", "TestBrowserInnerGallery", "TestBrowserInnerScreens", "TestBrowserHousekeeping", "TestBrowserMachines", "TestBrowserTeamPanel"]),
- ("browser-thintest-rest", ["./internal/thintest"], None),
+ ("browser-headless-chat", [HEADLESS], ["TestBrowserChat", "TestBrowserChatSendStaysOnPage", "TestBrowserMoveIn", "TestBrowserComposer", "TestBrowserComposerReconcile", "TestBrowserComposerFocus", "TestBrowserComposerDock", "TestBrowserDraftStreamsFormatted", "TestBrowserDraftIsTheMessage", "TestBrowserRefreshRace"]), # 88
+ ("browser-headless-work", [HEADLESS], ["TestBrowserTaskCard", "TestBrowserReceiptFollowsReview", "TestBrowserRailFollowsWork", "TestBrowserTaskThread", "TestBrowserAskAfterMerge", "TestBrowserReceiptsDesktop", "TestBrowserReceiptsTouch", "TestBrowserNotebook", "TestBrowserEmptyExplore", "TestNotebookScreenshots", "TestBrowserNotebookLook"]), # 75
+ ("browser-headless-rest", [HEADLESS], None), # 74: the connections pages, thinking and cards, any new one
+ ("browser-thintest", ["./internal/thintest"], None), # 80
("browser-rest", None, None), # equipotest, plan3test and any new package
]
@@ -554,8 +553,17 @@ def run_shard():
return status
-def quarantined():
- """(package, test) pairs from the quarantine file."""
+# A quarantine line whose reason starts with this is a test known to fail
+# every time, not a flake: one written for pages a later design replaced,
+# kept on record until it is rewritten or deleted. The quarantine shard
+# still runs it on every run and says so loudly, but its failure does not
+# turn the shard red; when it passes, the shard says to take its line out.
+BROKEN = "Broken:"
+
+
+def quarantined(broken=False):
+ """(package, test) pairs from the quarantine file; with broken, only
+ those whose reason starts with BROKEN."""
entries = []
with open(os.path.join(root(), QUARANTINE)) as f:
for number, line in enumerate(f, 1):
@@ -565,7 +573,8 @@ def quarantined():
fields = line.split(None, 2)
if len(fields) < 3 or not fields[0].startswith("./") or not fields[1].startswith("Test"):
sys.exit(f"{QUARANTINE}:{number}: want: ./package TestName[/Subtest] reason")
- entries.append((fields[0], fields[1]))
+ if not broken or fields[2].startswith(BROKEN):
+ entries.append((fields[0], fields[1]))
return entries
@@ -719,7 +728,7 @@ def run_group(package, tests, env, tags=TAGS):
report.append(tail(retry_out))
for t in sorted(passed - failed):
report.append(f"ok {package} {t}")
- return report, flaky, broken
+ return report, flaky, broken, missing
def run_quarantine():
@@ -739,14 +748,24 @@ def run_quarantine():
with ThreadPoolExecutor(max_workers=max(1, len(groups))) as pool:
futures = [pool.submit(run_group, p, tests, env, tags(p, top)) for (p, top), tests in sorted(groups.items())]
results = [f.result() for f in futures]
- flakes, broken = [], []
- for report, flaky, bad in results:
+ known = set(quarantined(broken=True))
+ flakes, broken, still = [], [], []
+ for ((package, _), tests), (report, flaky, bad, missing) in zip(sorted(groups.items()), results):
print("\n".join(report), flush=True)
flakes += flaky
- broken += bad
- print(f"quarantine: {len(flakes)} flaked (passed on the retry), {len(broken)} failed", flush=True)
+ for t in bad:
+ # Known broken counts only when it ran and failed: one that no
+ # longer runs at all (renamed, skipped) is red like any other.
+ (still if (package, t) in known and t not in missing else broken).append(f"{package} {t}")
+ for t in tests:
+ if (package, t) in known and t not in bad:
+ print(f"QUARANTINE BROKEN TEST PASSES {package} {t}: take its line out of {QUARANTINE}", flush=True)
+ print(f"quarantine: {len(flakes)} flaked (passed on the retry), {len(broken)} failed, "
+ f"{len(still)} known broken failed as recorded", flush=True)
for t in flakes:
print(f"quarantine flake: {t}")
+ for t in still:
+ print(f"QUARANTINE BROKEN {t}: fails, as its line in {QUARANTINE} records; not counted")
return 1 if broken else 0