Skip to content

fix(deps): pin rune to d5c7a5ad, the effect warm for backdrop blur only (214 commits, rune#1962-#2246) - #1192

Merged
Hona merged 3 commits into
devfrom
rune-pin/d5c7a5ad
Nov 25, 2026
Merged

Hona merged 3 commits into
devfrom
rune-pin/d5c7a5ad

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The Rune pin moves from 4d8df909 to d5c7a5ad2: 214 Rune commits (rune#1962 to rune#2246). Every check this PR set for itself is in; what was not run is listed under "Not in". It compiles on macOS, Windows x64 and arm64, and Linux x64 (a PR build skips Linux arm64; a dispatched build covered it, see the end). The step #1076 failed on was measured three ways, and its gate missed one of three conditions by one launch: see "The Jump-to-latest button's first frame".

It replaces #1076 (the pin at ffea1a6ea), which did not ship: see "Why not #1076" below.

What changes in the app

Three files:

  • Cargo.toml: the pinned commit.
  • Cargo.lock: the pinned commit, and the six dependency edges Rune's own lock gained between the two commits (rune gains windows-registry; rune-image gains moxcms; rune-notify gains async-channel, async-io, futures-lite and zbus). No package is added, removed or moved.
  • apps/desktop/src/lib.rs: the app opts in to warming the backdrop blur, its one effect (.prewarm_effects(rune::PrewarmEffects::BACKDROP_BLUR)). Since rune#2006 the warm is opt-in, so without this line nothing is compiled ahead.

No other app code changes: the app compiles against this range as it is (a compile probe on a Rune commit 14 commits earlier, #1179, built on macOS, Windows x64 and arm64, and Linux x64; a PR build skips Linux arm64).

What a person can see change

What should not be visible, and is why the pin is wanted

Why not #1076

#1076 pinned ffea1a6ea, where the warm worker waited up to 5 s for a window that never rests. With a reply streaming, a wheel 4 s after the GPU takes the window over in a cold-shader-cache launch (about 5.2 s after the process starts, when the start is on time) showed the Jump-to-latest button's first frame at 87 to 102 ms (18 to 21 ms on the pin dev has), four runs of four: the blur compiled on the frame's own thread. rune#2177 cuts the wait to 1 s; on a build that differs from #1076's in that one commit the same frame read 26 to 36 ms in four of four.

Profiles

A pin move renames every Rune symbol, so on this PR's first commit (60eda7d403) the committed profiles were dead for Rune's code. The second commit (9bc491fdcd) re-keys both onto this tree's names, read from the instrumented build #1193. Only builds of 9bc491fdcd or later are measured.

  • Windows x64: the counts trained on 25 Nov (launch weight 1, the profile dev has): 17,961 of 18,439 functions keep their counts; 337 are dropped because their code changed since the training tree (Rune ffea1a6ea); 141 no longer exist.
  • Apple silicon: the committed profile, not trained anew: 15,030 of 15,445 kept; 285 dropped; 130 gone.
  • Not measured: what share of the counts the dropped functions held.
  • The start-up link order list (macOS and Linux) names functions without crate hashes, so the pin move does not kill it: on Linux x64 the linker finds 8,918 of its 11,765 listed functions in this PR's build, and 8,973 in dev's at the base (chore(perf): dev a2f2d9e55d built as it is, the before side of the Rune d5c7a5ad pin's pairs (NEVER MERGE) #1194).

Checks

All on Windows x64, on this PR's build of 9bc491fdcd against dev's build at the same base (#1194), unless a line says otherwise. Every launch runs in a scratch profile on a hidden desktop. The branch has since taken dev in by a merge (head cc991c6505: 22 commits of dev, none of which touches a manifest, the lock file, the toolchain or a profile); the checks below were not run again on that head. Its PR build is green: guardrails, macOS, Windows x64 and arm64, Linux x64 (Linux arm64 skipped).

Not in

  • The frame rows of the launch bench (cold frames, a streaming turn, the rested guard) on this pin.

Starts

  • Starts-only, 6 of 6: first frame, the 17 built-in plugins, the launcher's four entries, a session's timeline, a prompt accepted, three quits with exit 0, no crash dump.

A close by the close button, then a restart

  • On this PR's build: two tabs (a draft and a session) and the same selected tab come back after the window is closed by its close button and the app is started again on the same profile. One window before and after. The app ended by itself 581 ms and 92 ms after the close message in its two closes.

  • The window's icon is there at 128 and at 32 pixels.

  • Run after the merge, on dev's build of the same base and on this PR's build, three runs each in alternating order, two closes a run: the same two tabs, the same selected tab and one window come back in all six runs, and the icon is there in each.

    Close dev at the base This PR
    First of a run 85, 84, 83 ms 100, 97, 84 ms
    Second of a run 72, 96, 78 ms 88, 167, 87 ms
  • In all twelve closes the app's own mark puts the tabs' write 0 or 1 ms after the close began, and the profile's database files were last written before the process was gone.

  • The 581 ms above did not come again in those runs. A first close of about half a second was seen once more on this pin (766 ms, in the full smoke on this PR's own CI build) and twice on a published build from before this pin (535 and 640 ms). What makes a first close that long was not found; by these runs it is not this pin.

The pointer at 101 stops: no change

  • The cursor Windows shows, read from a real window's own thread at 101 stops on both builds: 0 of 101 differ. Both builds show 79 arrow, 14 I-beam, 4 column-resize, 2 hand and 2 not-allowed.
  • Six nothing-lost checks pass on both builds: four edge drags, a tab drag, and typing in the prompt.
  • The three stops pictured above are not among the 101; they were read apart.
  • Every headless launch in the four runs exited 0. The window launches are ended by the runner after their last mark, so they have no exit code of their own.
  • Against the official app, on this PR without fix(cursor): the five cursors that waited for Rune, as official has them #1187 (and so on dev too): 1 of the 100 settled stops differs. The browser's address field shows the arrow where the official app shows the I-beam; fix(cursor): the five cursors that waited for Rune, as official has them #1187 sets that right.
  • Not covered: macOS and Linux cursors, and any stop the pass does not have.

The walk: every difference named

Fourteen batches of scripted passes, 171 passes on each build, one picture a pass, compared pixel by pixel (a step of 1 in a channel is allowed). Counted by the comparing tool and the logs:

  • 145 pictures are identical. 13 more are the same but for text that changes from run to run, which the tool masks and names: the scratch folder's name, the build's version string, the server's port.
  • 10 differ, and each is named:
    • 2, rune#2198: the provider connect dialog's choice step, with and without a pick. Only the two radio controls differ (388 and 222 pixels in a column 16 wide).
    • 1, rune#2183: the Home page. The gear of its Settings row is taller: 64 pixels in a box 12 by 16. No other pass draws that icon; the sidebar's Settings row and the narrow tab bar's button are in no batch.
    • 1, rune#1991: a dropped PNG tagged Display P3. Its thumbnail in the composer has dull bars on dev and full ones on this PR: 4,036 pixels in a box 78 by 52.
    • 3, rune#2059: the timeline scrolled by a wheel and by a swipe, and Settings scrolled by a wheel. These passes aim a scripted event at an element by its key. On dev's pin that event did nothing; on this pin it lands. So they compare a scrolled picture with one that is not: the test tooling's change, not the app's.
    • 3, the moment of the picture, not the pin. The Review launcher's count ("4 files changed") had arrived on dev's first drag picture and not yet on this PR's (559 pixels); the repeat of the same pass is identical on both builds. A "New tab" label is brighter in one file-tree picture: on dev's in one batch and on this PR's in another, 297 pixels each time, and dev's own two repeats differ by the same 297. What sets that label's brightness was not found.
  • 3 passes have no picture on this PR, as their batch intends. That batch keeps old passes as they were first written: a secondary click, a double click and a drag aimed at a message that is scrolled out of view. This pin's script refuses that and says so ("the element ... is not shown ... scroll it into view first", exit 2); dev's pin swallowed the event (exit 0, the picture equal to the rest picture). The same three events aimed at a message that is in view are in another batch, identical on both builds; on this PR they show the message's menu open (Copy message, Fork from here, Undo), the word under the double click selected, and the dragged span selected.
  • Exit codes: 342 passes on the two builds: 339 exit 0, and the 3 above exit 2. No crash dump.
  • From the eighth of the twelve runs on, each run's log of the programs the app starts by name was kept: no call of opencode, ssh or wsl in any of them.
  • Not covered: macOS and Linux; the sidebar's Settings row; whatever no pass opens.

Launch time: no change

Files in memory, 52 alternating pairs, the app's own clock, both builds started many times before:

Mark dev at the base This PR Paired difference This PR later in
First frame 33.6 ms 32.9 ms -0.4 ms 22 of 52
Content live 48.1 ms 47.3 ms -0.2 ms 26 of 52
main entered 12.1 ms 12.0 ms -0.1 ms 24 of 52

Files not in memory, 20 alternating pairs of the 24 planned (the series was paused for another round and read after the merge), the app's own clock, free memory high enough in both runs:

Mark dev at the base This PR Paired difference This PR later in
First frame 76.4 ms 67.3 ms -5.7 ms 6 of 20
main to first frame 44.9 ms 36.8 ms -5.6 ms 6 of 20

Content live reads -8.7 ms (later in 7 of 20) and main entered -1.3 ms (8 of 20). One series; the sign test does not carry it (p 0.115). So this PR is not shown slower with the files not in memory, and it leans faster.

Early quit: no difference, no slow end

The app's own Quit, sides in turn, each launch in a fresh profile:

  • 1.9 to 2.4 s after the process's creation, 20 a side: 40 of 40 exit 0. From the quit's start to the process handle signalled, medians per delay: dev 126, 111, 112, 196, 120 ms; this PR 105, 119, 104, 150, 137 ms.
  • 2.6 to 3.5 s after creation, 15 a side: this PR 15 of 15 exit 0, ended 74 to 208 ms after the quit began.
  • Seven of this PR's 35 quits fell 0.8 to 1.5 s after the GPU took the window over, where the warm worker compiles at its 1 s limit: all exit 0. After the app's last mark the handle is signalled within 37 to 61 ms on this PR and 33 to 88 ms on dev.

The Jump-to-latest button's first frame (a wheel 4 s after the GPU takes the window over, cold shader cache, while a reply streams)

This is the frame #1076 failed on. It was measured three ways. The first two are traced runs: the app writes a frame trace while it runs.

1. Both builds a few launches old, then three minutes later (four a side each time), ms:

When dev at the base This PR
The builds' 2nd to 7th start 31.2, 29.5, 28.2, 32.4 42.3, 25.4, 41.6, 20.0
Three minutes later 16.5, 20.4, 13.7, 19.2 15.8, 15.1, 14.2, 14.3

Both builds read 10 to 25 ms dearer in their first launches. A copy of dev's build in a new folder shows the same with the same bytes: 24.0 and 69.0 ms in its first two launches, then 13.5 and 13.9, while the original stays at 16 to 20. So the cost follows a folder's first launches on the test machine, not the pin; what causes it is not known.

2. The gate, fixed before it ran: first launches only. Fresh copies of both builds, two launches each, in turn, eight a side. The frame in ms, with the machine's load outside the app:

Copy, launch dev at the base This PR Difference
1, 1st 30.4 (22.9 %) 29.2 (27.5 %) -1.2
1, 2nd 16.3 (23.9 %) 23.8 (28.3 %) +7.5
2, 1st 31.3 (29.8 %) 15.4 (22.2 %) -15.9
2, 2nd 27.2 (27.0 %) 15.5 (24.8 %) -11.7
3, 1st 17.9 (30.9 %) 30.6 (30.6 %) +12.7
3, 2nd 25.1 (32.3 %) 18.5 (28.4 %) -6.6
4, 1st 26.8 (28.9 %) 21.5 (22.3 %) -5.3
4, 2nd 14.7 (23.6 %) 16.0 (25.0 %) +1.3
  • Over dev by more than 5 ms in at most 3 of 8: met (2 of 8).
  • Worst frame not more than 10 ms over dev's worst: met (30.6 against 31.3 ms).
  • Launches with a gap over 50 ms between the first frame on the GPU (where the frame trace begins) and 2 s after the button's frame, at most dev's count plus one: MISSED by one launch. This PR 3 of 8 (92.0, 50.6 and 155.4 ms); dev 1 of 8 (311.5 ms). The gap that tips the count is 50.6 ms. The longest gap is dev's.

3. Because the gate missed: ten first launches recorded on symbols builds of both sides (#1207, #1208). Each gap over 50 ms was lined up with what the UI thread was doing:

  • This PR, 5 launches, 8 gaps. 5 gaps in 4 launches were lined up: 4 are the UI thread waiting in a file write of the measuring harness (165.2 and 60.3 ms in the frame trace's own write; 103.0 and 47.7 ms in another of its file writes); 1 is a wait on a page fault inside the recorder's stack walk (100.1 ms). The 3 gaps of the fifth launch (102.6, 87.0 and 72.5 ms) were not read. In that launch the GPU took the window over 15.96 s after the process started; the frame trace begins at the first frame on the GPU, and the recording had ended at about 12.5 s, so none of its gaps lies inside the recording. An earlier version of this section assigned those three gaps (a file write and two frames on the CPU path): that was a false match and is withdrawn.
  • dev, 4 launches counted, 4 gaps: 1 in the frame trace's write (222.4 ms), 1 in the recorder's stack walk (378.7 ms), 2 running frames of which 16 to 20 ms each is the recorder; one launch has no gap.
  • So both kinds of wait are on both sides, and none of the 5 gaps on this PR's side that were lined up is in the renderer or in code this pin brings. The two places that write are the same lines of Rune on both pins, and the trace's line is no longer on this pin (5,088 against 5,211 bytes a line over the gate's sixteen traces).
  • The button's frame in the recorded launches (the recorder running): this PR 121.8 (of it 100.1 ms the recorder's page fault), 28.2, 24.3, 37.3 ms; dev 61.1, 28.7, 24.0 ms. No effect pipeline is compiled in any of them, and the app starts no process during the step. This PR's fifth launch has no button frame: the window was not on the GPU within the test script's 10 s limit, so the script did not start and sent no wheel.
  • One recorded launch of dev is left out: files were deleted on the same disk just before it.
  • Not proved: that the gaps of the gate itself (way 2, no recorder) were trace writes. They have the same shape, a cheap frame straight after the gap. Also not proved: what the three gaps of this PR's fifth recorded launch were; they were never lined up.

A change to Rune that takes the frame trace's file write off the UI thread follows on its own; it changes the measuring, not what ships.

Seen on dev's build, not on this PR's

One launch of dev's build at the base ended with an access violation about 0.5 to 0.85 s after its creation, during the second early-quit block, before any quit was sent. Nothing of it was kept. A look for it, three builds in turn with every launch in a fresh profile and an early quit: dev's build once in 123 launches; this PR's build none in 123; the published build before it none in 89. Cause not known.

Not covered

  • Linux arm64. A PR run does not build it (that job is skipped). The pin's range is proved for Linux arm64 on this branch's first commit 60eda7d403: a dispatched Linux build (run 45593739005) compiled, linked and packaged the app for arm64 and x64, and the commits since change only profile files and take dev in. The merged tree itself is first built for arm64 by the release run. Nothing was run on arm64.
  • macOS and Linux as runs (CI builds macOS and Linux x64).
  • The Apple silicon profile: re-keyed, not trained.

A pin move renames every Rune symbol, so the committed profiles were dead for Rune's code on this branch's first commit. Both are re-keyed onto this tree's names, read from the instrumented build of #1193 (scripts/pgo-rekey.mjs).

Windows x64: the counts trained on 25 Nov (launch weight 1): 17,961 of 18,439 functions keep their counts, 337 are dropped because their code changed, 141 no longer exist.
Apple silicon: the committed profile, not trained anew: 15,030 of 15,445 kept, 285 dropped, 130 gone.
@Hona
Hona marked this pull request as ready for review November 25, 2026 15:24
@Hona
Hona merged commit 866dd4e into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the rune-pin/d5c7a5ad branch November 25, 2026 15:24
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
…hem (#1187)

The last five places where the pointer's cursor differed from the official app, on the Rune pin of #1192: a URL in a tool's text keeps the arrow (packages/ui/src/styles/base.css:84); a zoomed image in the viewer keeps the arrow while it pans (image-preview.css:134,139, reset by packages/desktop/src/renderer/styles.css:7-8); a retry's message line shows help and the whole message in a tooltip (session-retry.tsx:68-78); a queued message shows progress while it is sent (queue-panel.tsx:228); the browser's address field shows the I-beam, its site button and zoom badge the arrow (bar.css:22, :137). Plugin contract 1.10: every ui node takes an optional cursor. The scenes queue-sending, retry and tools-shell-link, and the story Composer/Queue row sending, are where three of them can be looked at.
Hona added a commit that referenced this pull request Nov 25, 2026
…of --server is not one (#1195)

* fix(deps): pin rune to d5c7a5ad (214 commits), the effect warm for backdrop blur only

* fix(launch): only links on the app's own scheme are links; the value of --server is not one

Rune took every scheme:// launch argument for a link. Started as 'app --server http://127.0.0.1:4096', the app got the server's URL in its link handler ('ignored a link it doesn't open'), and a second launch with that flag was handed over as a link, not as a launch that reopens the app. The app now names its scheme (rune::url_schemes, anomalyco/rune#2182, in the pin of #1192).

* chore(pgo): the profiles re-keyed to Rune d5c7a5ad's symbol names

A pin move renames every Rune symbol, so the committed profiles were dead for Rune's code on this branch's first commit. Both are re-keyed onto this tree's names, read from the instrumented build of #1193 (scripts/pgo-rekey.mjs).

Windows x64: the counts trained on 25 Nov (launch weight 1): 17,961 of 18,439 functions keep their counts, 337 are dropped because their code changed, 141 no longer exist.
Apple silicon: the committed profile, not trained anew: 15,030 of 15,445 kept, 285 dropped, 130 gone.
Hona added a commit that referenced this pull request Nov 25, 2026
… in), Rune pin at dc5a0f5fc (Rune dev 0d2cad27f + the Linux own frame): the commit queued to merge
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