hub: the Docker set's first-seen is stamped on the evaluate tick, not only by a page view (fixed without a row; flaky page test on a fixed clock)
gates / gates (push) Successful in 2m12s
gates / gates (push) Successful in 2m12s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -76,6 +76,10 @@ func TestSystemPage_DockerButtonOnlyWhenReady(t *testing.T) {
|
||||
t.Fatal("button shown with no Docker candidate")
|
||||
}
|
||||
_ = st.SetOSRing("full-1", 0)
|
||||
// A fixed clock: on the real one the page's first-seen stamp could fall one second after the first night's report
|
||||
// and drop it (the flake seen 2026-10-05 under full-suite load).
|
||||
clock := time.Date(2026, 10, 5, 3, 0, 0, 0, time.UTC)
|
||||
svc.Now = func() time.Time { return clock }
|
||||
night := func() {
|
||||
if err := svc.Ingest("full-1", osupdates.Report{RunID: time.Now().String(), Layer: "docker", Trigger: "night", Mode: "apply",
|
||||
Outcome: "nothing", Healthy: true, Installed: []osupdates.Package{{Name: "docker-ce", Version: "5:29.8.2-1", Origin: "Docker"}}}); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user