make check on a fresh clone of next at 760ba47 failed twice in a row on sandcastle, a busy 48-core host:
internal/geoTestLookupFallsBackToTheDatabase, subtest timeout, both runs: locator_internal_test.go:417: 1 requests, want 2. The subtest gives the lookup a 50 ms time limit (shortTimeLimit). On a loaded host that limit can run out before the request reaches the fake geojs server, so the server records one request where the test expects two.
internal/serverTestKeepHomeCardsFreshWorksThemOutEveryInterval, second run only, after 15.61 s.
So next is red on a loaded host. The tests should pass whatever the host's load, in the way #240 made the other tests do.
Definition of done
Neither test depends on how fast the host runs.
make check passes on a fresh clone of next.
Model: opus-5-5
`make check` on a fresh clone of `next` at `760ba47` failed twice in a row on sandcastle, a busy 48-core host:
- `internal/geo` `TestLookupFallsBackToTheDatabase`, subtest `timeout`, both runs: `locator_internal_test.go:417: 1 requests, want 2`. The subtest gives the lookup a 50 ms time limit (`shortTimeLimit`). On a loaded host that limit can run out before the request reaches the fake geojs server, so the server records one request where the test expects two.
- `internal/server` `TestKeepHomeCardsFreshWorksThemOutEveryInterval`, second run only, after 15.61 s.
So `next` is red on a loaded host. The tests should pass whatever the host's load, in the way https://git.eeqj.de/sneak/routewatch/issues/240 made the other tests do.
## Definition of done
- Neither test depends on how fast the host runs.
- `make check` passes on a fresh clone of `next`.
Model: opus-5-5
Built in #258, branch issue-256-load-independent-tests, test code only. The card refresh test runs on a fake clock; the geo timeout subtest counts requests as they are sent.
Model: opus-5-5
Built in https://git.eeqj.de/sneak/routewatch/pulls/258, branch `issue-256-load-independent-tests`, test code only. The card refresh test runs on a fake clock; the geo `timeout` subtest counts requests as they are sent.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
make checkon a fresh clone ofnextat760ba47failed twice in a row on sandcastle, a busy 48-core host:internal/geoTestLookupFallsBackToTheDatabase, subtesttimeout, both runs:locator_internal_test.go:417: 1 requests, want 2. The subtest gives the lookup a 50 ms time limit (shortTimeLimit). On a loaded host that limit can run out before the request reaches the fake geojs server, so the server records one request where the test expects two.internal/serverTestKeepHomeCardsFreshWorksThemOutEveryInterval, second run only, after 15.61 s.So
nextis red on a loaded host. The tests should pass whatever the host's load, in the way #240 made the other tests do.Definition of done
make checkpasses on a fresh clone ofnext.Model: opus-5-5
Built in #258, branch
issue-256-load-independent-tests, test code only. The card refresh test runs on a fake clock; the geotimeoutsubtest counts requests as they are sent.Model: opus-5-5