The socket tests in tests/it/control.rs bounded each read and each
channel wait at 5 seconds (10 seconds for the capture client's
requests). The server sends every reply, close and request there
without waiting on a timer, so these bounds only guard against a hang,
but a slow run could reach them: under heavy load
an_oversized_reply_keeps_its_framing_and_id_and_the_connection_serves_on
failed at its 5-second read timeout and passed when run again.
- control.rs waits with one HANG constant of 60 seconds, the bound the
agents tests already use as a hang guard (tests/it/agents.rs:53).
- The client test that peeks for the server's refusal line waits up to
60 seconds too.
The assertions do not change.
The test compared only the first cell with the Zoom footer, so a grid that ran over the footer in a lower row still passed. It now also checks that the bottom of the glyph grid is at or above the footer's top.
The tear-off bar took its height from the menu rows' rect. In the popup's
measuring run the rows have no rect yet, so the bar measured zero tall and
its width was left out of the flyout's size. The flyout came out one bar
narrower than its content, and its edge clipped the bar and the three grip
lines.
The bar now measures at least as tall as its grip, so the measuring run
counts its width. The new test opens a flyout with the tear-off bar and
checks that the grip lines paint whole inside a clip as wide as the bar.
PathRow showed its FillWidth text field in a content-sized Row, where a
filling leaf keeps its measured width. The field stayed at its full field
length and the row narrowed the Browse button instead, so in a column
narrower than about 280 pt the label was cut to "Brows...". The row now
fills its width: the field takes the room the button leaves.
The lock file's length repeats every 64 holds, so a waiter that missed a whole cycle between two polls saw the same mark and could time out behind holds that each lasted far less than the timeout. The mark now also carries the lock file's modification time, which each hold moves when it sets the new length.
Under GroupHeads::Rule a divider between groups was drawn on the top
edge of its row, so it sat one gap under the tiles above it and a full
row height over the tiles below it. The divider is now drawn through
the middle of its row, as a list's rule head draws it, and the row has
the gap below it as well as above it.
A menu opened in a bottom slot stayed above every bottom slot, so a
status bar menu opened about 24 pt above its control when a help bar
sat between the status bar and the canvas. Popups opened in a bottom
slot now stay above only the bottom slots outside it; popups the body
opens still end above every bottom slot.
The glyph grid took all the height left in the panel body and the footer row (the count, the zoom slider and the note shown when no text is being edited) was laid out after it, below the panel's bottom edge, which also cut off the grid's last row. The footer now goes in the stack's footer region, which keeps its room under the grid, and writes the panel settings once after the zoom slider runs.
A wrapping SpaceBetween row spread its children over its room whenever they
fit one line, even when that line also held a direct egui allocation. The
spread started at the row's start edge, so a child covered the allocation.
The row now spreads only when its content is no wider than its children with
the gap between them; otherwise it keeps the wrapping placement.
* sensing: an owner's parts read their press without a search of its last-pass parts for each one
part_press_in searched the owner's parts of the last pass for every part it
read, so an owner with n parts did n searches of n entries in each pass. It
now searches only for a part that a hit of the pass names: the press target,
a hovered shape or the aside press.
The new trial counts the searches over 3 idle frames of a 400-part root: 1200
before, at most 9 after, and the hovered part still reads hover.
* sensing: count part lookups per viewport instead of in a thread_local
The lookup counter for the many-parts test now lives in the viewport's
arenas behind the testing feature, and known_part_lookups takes the
context, so contract/no-global-state has no thread_local in sensing.rs.
`with_lock` gave up after waiting 5 s in total, however many times the
lock changed hands meanwhile. A process signing in many accounts takes
the lock in a quick run of short holds, and a waiter polling every
20 ms can miss every gap. Under load,
`concurrent_sign_ins_from_two_processes_lose_no_rows` failed with
"timed out waiting for the accounts lock".
Each hold now sets the lock file's length to the next value in 1 to
64. A waiter that sees the length change starts its 5 s over, so it
still gives up on one hold that lasts past 5 s. Unit tests drive the
wait with their own times instead of sleeping.
`zeroed` and `refill_zeroed` filled each image buffer with
`par_extend(repeat_n(0u8, len))`, which has no minimum piece length.
When workers stole from each other, rayon kept splitting the buffer,
and on a pool with 128 or more workers the nested splits overflowed a
worker's 2 MiB stack. The fax page test
`a_blank_fax_page_wider_than_4096_px_passes_the_bomb_guard` aborted
this way on a 192-core host.
Both functions now call `extend_zeros`, which sets `with_min_len` to
1 MiB. A unit test zeroes 64 MiB on a pool of 256 workers with 256 KiB
stacks; without the change it aborts with a stack overflow.
Lands #3916 onto main after #3909 and #3914. The only change from the
approved head is the merge resolution in tests/it/find_dialog.rs: all
three PRs appended a test at the end of the file, and all are kept.
Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resting veil of a CardText::PageTile card fades the scrim by
Opacity::TINT (0.18) instead of a local 0.2, so it follows the theme's
opacity scale like the other tints. The test checks the veil's alpha
against Opacity::TINT.
Lands #3914 onto main after #3909. The only change from the approved
head is the merge resolution in tests/it/find_dialog.rs: both PRs
appended a test at the end of the file, and both tests are kept.
Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>