Repository navigation
test(ui): stop two UI tests from failing under load - #27
Merged
Merged
Conversation
clickZone read the zone right after View(), but bubblezone records zones
on its own goroutine after Scan(), so on a busy machine the sidebar zone
was sometimes not there yet ("no sidebar zone for pods"). It now waits
for the zone to show up, up to two seconds.
TestKeypressLatency checks a wall-clock bound that a busy runner can
miss. It is skipped under -short, and the test and release workflows run
go test -short. `just test-perf` still runs it.
Fixes p10node#24
Signed-off-by: Ehab Kahwati <[email protected]>
clamshell2000
self-requested a review
November 4, 2026 11:45
junior
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #24.
clickZoneread the zone right afterView(), but bubblezone records zones on its own goroutine afterScan()(its docs say an immediateGetmay not see them yet). So under load the sidebar zone sometimes wasn't there andTestClickingCurrentKindLeavesDescribefailed with "no sidebar zone for pods".clickZonenow waits up to two seconds for the zone to show up, which covers the other click tests too.For
TestKeypressLatencyI went with the-shortoption from the issue: it's skipped under-short, and the test and release workflows now rungo test -short ./....just testandjust test-perfstill run it.To check it I ran the click tests on one CPU (
go test -count=30 -cpu 1 -run TestClicking -v ./internal/ui/): main failed 4 of 120 runs with "no sidebar zone for pods", and this branch failed 0 of 120.go vet ./...,go test ./...,go test -short ./...andgo test -race ./internal/ui/all pass.