Skip to content

test: the service proxy poller's and the connection dot's tests leave out what is not theirs - #76

Merged
hans-fischer merged 3 commits into
mainfrom
test/alerting-poll-wait
Oct 22, 2026
Merged

hans-fischer merged 3 commits into
mainfrom
test/alerting-poll-wait

Conversation

@hans-fischer

@hans-fischer hans-fischer commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Two flakes from PR #74's race jobs, both test-only:

  • TestPollerThroughTheServiceProxy (alerting): "2 proxy requests for 2 polls in ~300ms at 50ms". The test slept a fixed 260 ms and then required at least three polls, which a loaded runner does not always fit in. It now waits until the fake Alertmanager has three requests (inside the test's 5 s deadline) and then checks, as before, that every poll sent exactly one proxy request.
  • TestDotClickOpensTheConnectionLog (UI 3/8): "the tile's dot dispatched [{cluster.connectLog …} {ui.setNavigatorRow {"row":"pods"} …}]". The navigator reports its row on its own goroutine when it settles; a report landing after the test read its baseline was counted as the click's. The test now leaves ui.setNavigatorRow out of the click's calls.

Locally: both tests -race repeated (8 and 5 runs) pass; go vet of both packages.

@hans-fischer hans-fischer changed the title test(alerting): the service proxy poller's test waits for three polls test: the service proxy poller's and the connection dot's tests leave out what is not theirs Oct 22, 2026
…outlined

The owner's alpha walk of 2026-10-22 on v0.38.0 (G16):

- AW3, AW19: the window's Escape knew the palette, the notifications, a
  settings page and the drawer only, so over a dialog it closed the drawer
  behind it or did nothing. Every overlay now registers what Escape does
  over it as it shows (escape.go: onEscape, onShown); the window's escape
  runs the top one's, an overlay without one takes the key. Every Fyne
  dialog is shown through sh.showDialog (Escape is its Dismiss), a framed
  dialog hides (its SetOnClosed answers no), the pop-ups, the palette, the
  notifications, the MCP details and the top bar's menus close.
- Fyne hands a key to the focused widget only: the fields of Cogpit's
  dialogs are types that pass an Escape on (fieldEntry, fieldSelectEntry,
  fieldCheck, fieldSlider, secretEntry), so Escape cancels a dialog
  whatever field has the keyboard.
- AW4: a list's search is cleared and the table gets the keys; the find bar
  closes from its fields and from the editor (yamlview's OnEscape). D-57's
  "any other search" had been the navigator's only.
- AW2: Escape on an open dropdown's list takes the keyboard off the field,
  and a dropdown with the keyboard passes Escape on.
- AW1: a closed dropdown draws an entry's outline; the field outline token
  is raised to 2:1 on every surface in both themes, the wells' and cards'
  edges keep the old value as colorHairline.

TestEveryDialogTakesEscape reads the sources for a dialog or pop-up shown
past the mechanism. D-116 and D-104 record the lead's decisions; G16,
ui-parity, usage, architecture, conventions and the design language say so.
@hans-fischer
hans-fischer force-pushed the test/alerting-poll-wait branch from 313c07d to 008b159 Compare October 22, 2026 15:58
@hans-fischer
hans-fischer merged commit 5d4b894 into main Oct 22, 2026
4 of 25 checks passed
@hans-fischer
hans-fischer deleted the test/alerting-poll-wait branch October 22, 2026 16:36
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