Repository navigation
macOS CI: contour_tiler's macOS golden, Cmd+Z in the context-menu test, ci/full for new goldens - #1526
Merged
Conversation
… added since 11-20 contour_tiler, skeleton, molecule_skeleton, volume_grid, volume_grid_quad and volume_grid_contours were added between 2026-11-20 and 11-23 with llvmpipe goldens only. Pull requests skip the macOS package lanes, so none of them was compared under the Apple Software Renderer before it merged. Since then all four macOS package lanes have failed cvcgl_ari_golden on master and on the v4.0.3 to v4.0.6 tags: 1,066 to 4,889 px beyond +-40, with the same counts in every run. The macOS frames are the same pictures. Edges of lines, translucent surfaces and nearest-sampled texels land a pixel apart, as on orthoslicer. On volume_grid_quad the Probe tab's Min/Max is also one float32 ulp off on the arm64 runner. The four lanes' frames are byte-identical, so the v4.0.6 tag run's (45246162146) are committed as <name>.macos.png, as docs/ARIADNE.md describes. ARIADNE.md now says to run a new golden through ci/full/** before it merges.
…' after #1452, Cmd+Z in the context-menu test The ci/full run of the first commit (45375289474) passed the six new macOS goldens on all four lanes and left two failures: - cvcgl_ari_golden: volren_views (#1498), 882 px beyond +-40. Its four lanes' frames are byte-identical, the same picture with box edges and the volren's shading a pixel apart. Committed as volren_views.macos.png. - cvcgl_imgui_context_menu (#1476): "ImGui's undo takes the paste back". The test pressed ImGuiMod_Ctrl+Z. With ConfigMacOSXBehaviors (on Apple), io.AddKeyEvent swaps Cmd and Ctrl, so that arrives as Super and InputText doesn't undo. The test now presses ImGuiMod_Super there, the key a Mac's Cmd arrives as, which ImGui turns into its shortcut key. Checked against ImGui 1.92.9 with a standalone InputText: with macOS behaviours Ctrl+Z leaves 'abc' and Super+Z undoes to 'ab', and the reverse without them. Master since then has #1452, which re-captured volume_grid, _quad and _contours for its Segmentation tab and added volume_grid_segment (366 px on macOS). Their .macos.png are the v4.0.8 tag run's (45478904899) frames, byte-identical across the four lanes, and the same pictures as the llvmpipe goldens.
transfix
enabled auto-merge (squash)
November 25, 2026 08:40
transfix
added a commit
that referenced
this pull request
Nov 25, 2026
From ci/full run 45572393826 at 59220fb (package-macos / libcvc-release, vtk 9.5.0+cvc.7; the debug, release-grpc and release-grpc-static lanes' frames are within 1 of it). orthoslicer (a refresh: the view's window shows its border and grip, and the slices' tied texels), view_stacking (new) and volren_views (new: its views are framed on what they draw) change with SH2 itself. skeleton, molecule_skeleton, volume_grid, volume_grid_contours, volume_grid_quad and volume_grid_segment already failed on master's macOS lane; SH2 re-renders them too, so their macOS images are taken at SH2's rendering. #1526's images for these seven are taken at master's and differ from SH2's frames by 2,414 to 16,792 px; its contour_tiler.macos.png is unaffected.
transfix
added a commit
that referenced
this pull request
Nov 25, 2026
…ck over them (#1500) * cvcGL: viewport views drawn into textures, so windows stack over them (shell SH2) An Ariadne `viewport` widget's view used to be drawn into the window's frame under all of the UI, with a hole cut in its window's background, so any window over the view's rect covered it, even one behind the view's window, and the view's first frame was opaque. Each view now draws into a texture of its own (Viewport::setTextureSize, texture()), the widget's size in framebuffer pixels, at the window's own multisampling and resolved as the window's pixels are; the widget draws that texture as an image in its window. The window stacks, clips and scrolls the view like any of its content. The view draws in the window's render after the widget walk placed it, so its first frame shows it: the mirror re-syncs and the throttle (refresh_hz) decides as the render reaches it, and a view made this frame is readied (what it leaves out, its shadows, its framing) by its widget. Picks, pointer probes and the wheel map a point on screen to the view's texture (Viewport::windowToRenderer / rendererToWindow). A scenes: entry's anchor bakes its shadow maps by drawing one pixel into a texture of its own. ImGuiBackend::cut_window_background and its background painting go. Tests: cvcgl_ariadne_view_stacking (a window over a view, a view's window over another window, the first frame, a clipped and a scrolled view against the same picture in full, a pick through the scroll), the view_stacking golden, and the pick and slice-view tests through the new coordinate mapping. cvcgl_ari_frame_bench measures a document's frame cost offscreen. The arigl-web CI job now also runs on changes to how a view draws. * cvcGL: a mirror's re-sync leaves it alone when nothing it draws changed; docs for SH2 syncMirrorProps took every prop out of a mirror and put it back every frame, and the next draw of those props was slower for it. With views now re-synced just before they draw, each view paid that: on viewer_grid.ari a view's draw took 1.6 ms instead of 0.4. The mirror is now left alone when it already holds exactly the props and lights it should draw (same ones, same order), which also takes the cost off the main view where the old order put it. ARIADNE.md 5.18: how a view draws (a texture its window shows), its refresh rate (moving it does not redraw it), a scenes: entry's anchor, what it costs, and the limits (the view under the UI and the opaque first frame are gone). The UI-DSL roadmap's render-to-texture tier notes that rendering a view into a texture is built. * goldens: view_stacking, and orthoslicer / volume_grid / volume_grid_quad with views drawn into textures Written under Mesa 25.3.6 llvmpipe (cvcpkg's Windows build; it matches the grid, menus, scene, widgets and windows goldens to the pixel). view_stacking is new: a window over a view, a view's window over another window, a clipped view. The other three change around their views: the view's window now shows its border, resize grip, scroll bars and tab-bar separator, which the old background painting around the hole covered, and in volume_grid a slice view's caption that runs past its view is covered by the view beside it. Inside the slice views a few nearest-sampled texels at ties land on the other side under llvmpipe, the view being rasterized at its texture's origin rather than at its place in the window (none on an NVIDIA GPU). * cvcgl_ariadne_volume_grid: project world points to the screen through the view's texture A view's renderer draws into its texture now, so its display coordinates are the texture's pixels; the test maps them to the window (rendererToWindow) before it moves the pointer there, as the pick and slice-view tests do. * cvcGL: every viewport sends its own lights, where VTK can (UpdateLightingUniformsEveryRender) The renderers of a window share its shader programs, and VTK 9.5 keeps a program's light uniforms with only the time they were set (vtkOpenGLRenderer::UpdateLightingUniforms), not whose lights they are. A view and the main view draw the same props, so one of them could draw with the other's lights; which one depended on the order of VTK's modified times, and differed between Linux and Windows. cvcpkg's VTK 9.5.0+cvc.7 (cy-pca/cvcpkg#636) adds an opt-in vtkOpenGLRenderer::UpdateLightingUniformsEveryRender. A compile check (CVC_VTK_HAS_LIGHTING_UNIFORMS_EVERY_RENDER, as for FinishEveryRender) finds it, and Viewport turns it on for every renderer it makes: the main view's, the views', mirrors. An older VTK builds and renders as before. cvcgl_ariadne_view_stacking compares the main view with a window's view and without it (a see-through shell around a box the view shows from its own camera): with the property it checks they match; without it, it reports how many pixels differ (11,667 of 434,700 here, NVIDIA). ARIADNE.md 5.18 lists the older-VTK behaviour as a limit. * cvcgl_ariadne_pick: the module view's pointer maps its renderer's point to the window master's module-view checks (#1493) took the view's renderer display point as the window's; the view draws into its texture now, so it goes through rendererToWindow, as the test's other sections do. * cvcGL: a window's renderers send their own lights once it has two; goldens on VTK 9.5.0+cvc.7 UpdateLightingUniformsEveryRender moves from Viewport's constructor to ViewportManager, which turns it on for every renderer of a window once the window has a second one, and leaves it on when a view goes (the view's lights may still be in a program). A window that only ever had one renderer keeps VTK's default: nothing else writes its programs' lights. With the property on, VTK sends a program's lights in the first cell-type block that uses it each render; cvcgl_lowmem_fastdraw derives Fast's trace by deleting empty blocks from the AllCellTypes trace, so it could not see those uploads move to the next block (its uniform-state and pixel checks held). Its single-renderer window is back on VTK's default. cvcgl_ariadne_view_stacking checks the property is on for both renderers with a view, and off for the main view alone. Goldens from CI on vtk 9.5.0+cvc.7 (Linux release and release-grpc, identical to 1 LSB). Against the same commit on cvc.5 (Windows), only renderers that drew with another's lights change: the main view in view_stacking, skeleton and molecule_skeleton, and 23 px of the 3-D view in volume_grid_contours. * SceneViews: a view is framed on what it draws, a volren by its volumes' box A view without show: was framed on whatever its renderer held: the props ViewportManager primed it with before SceneViews set the view's filter, until the render re-synced it. With a volren that is the main view's picture quad, which spans the main camera's frustum (+-145 in volren_views), so the views framed far out; SH4's golden encodes that, and its zoom: 1.7 was set against it. The view's own picture of a volren (VolRenViewActor, bounded by the volumes' box) joins the renderer only once its first raycast lands, after framing. - ViewportManager::syncMirror(name): a live mirror's re-sync through its filter, now. SceneViews::prepare runs it before framing, so the renderer holds what the view will draw (also what it leaves out: chrome, tags). - The bounds of a view without show: take in each volren node it draws by its volumes' box, known from the first frame. - volren_views.ari drops zoom: 1.7: framed on the rods and the volume's box, its views look as the golden composed them. The golden itself is retaken from CI on vtk 9.5.0+cvc.7 (its rods draw with each view's own lights). - cvcgl_ariadne_node_pick (#1491) maps the view's points through rendererToWindow, as the other pick tests do. Under llvmpipe every other golden's frame is pixel-identical before and after. * golden: volren_views on SH2 (views framed on what they draw; vtk 9.5.0+cvc.7) Its views are framed on the rods and the volume's box (42eed3b), with zoom: 1.7 dropped from the document, so they keep SH4's composition; the windows show their border and grip over their views; the main view's rods draw with the main view's own lights. From CI run 45326238844 (Linux libcvc-release); Windows's frame is within 3 of it. * ari test: FramesAndTimeout's stuck document gets 4 s, not 1 The timeout counts from before the document loads, and its message names the test only once the test has started. On a slow runner a Debug build spent the whole second loading, so the message had no test in it: the debug lane failed this test on master (f32ae43) and on several branches, while it passed in about 3 s on others. * tests: PL-5's pumps are 20 ms, far past a slow step #1524's package-linux / libcvc-debug failed ExecPool.PL05_ALightGroupIsNotStarved three times: a message's latency was 2 heavy pumps (1 or 2 of 100), against at most the one in progress. The pool's virtual time is pump time, and at the default 2 ms budget a step slowed past it (steps of 2-3 ms were logged in both groups on that runner) ends a light pump before its program takes the message, which then waits out a heavy pump more. A probe with a 20 us budget shows the same latencies here. The case now pumps 20 ms with unbounded steps, so every build's heavy pump takes the whole budget and a light pump outlasts a slow step: 40 of 40 as 4 copies sharing 2 cores, 10 of 10 alone. A steps-only budget was tried and dropped: a light pump could then run long, and a descheduled one put the light group tens of heavy pumps behind (latencies of 12 to 107 under the 2-core squeeze). (cherry picked from commit 67fda68, #1524: the same flake failed #1500's recipe / ubuntu-22.04 / Debug three times at a651d0c) * goldens: volume_grid's four on SH2 after #1452 (views in textures) volume_grid, volume_grid_contours, volume_grid_quad and #1452's volume_grid_segment, from CI run 45482759652 (Linux libcvc-release, vtk 9.5.0+cvc.7). Against SH2's previous images only #1452's panel differs (the Segmentation tab, names and hex colours); against master's, SH2's changes: a view's overlay text stops at its view, a view drawn in its window's order covers the tab bar's rule, and the windows show their border and grip. volume_grid_segment's Bones view is unchanged (within 1). * goldens: macOS images for the documents SH2 re-renders From ci/full run 45572393826 at 59220fb (package-macos / libcvc-release, vtk 9.5.0+cvc.7; the debug, release-grpc and release-grpc-static lanes' frames are within 1 of it). orthoslicer (a refresh: the view's window shows its border and grip, and the slices' tied texels), view_stacking (new) and volren_views (new: its views are framed on what they draw) change with SH2 itself. skeleton, molecule_skeleton, volume_grid, volume_grid_contours, volume_grid_quad and volume_grid_segment already failed on master's macOS lane; SH2 re-renders them too, so their macOS images are taken at SH2's rendering. #1526's images for these seven are taken at master's and differ from SH2's frames by 2,414 to 16,792 px; its contour_tiler.macos.png is unaffected.
#1500 (7480610) re-rendered skeleton, molecule_skeleton, volren_views and the four volume grids for its viewport textures, Linux and macOS goldens both. Those seven .macos.png conflicts take master's side; contour_tiler's stays from this branch. ARIADNE.md and the test's comment name view_stacking's macOS golden too.
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.
The four macOS package lanes have failed on master and on every tag from v4.0.3 to v4.0.9. #1477, #1471 and #1479 didn't cause it. There are two causes:
contour_tiler.macos.png. Ariadne shell SH2: viewport views drawn into textures, so windows stack over them #1500 didn't touch that document.cvcgl_imgui_context_menupresses Ctrl+Z to undo. On macOS ImGui swaps Cmd and Ctrl, so that key never undoes there. The test now presses the key a Mac's Cmd arrives as. This failure is on master and on v4.0.8 and later.Why it isn't #1477, #1471 or #1479
Every macOS package run since 11-20 failed these documents with the same pixel counts, starting before those three PRs:
contour_tiler on macOS
contour_tiler.macos.pngis the v4.0.6 tag run'scontour_tiler.actual.png(45246162146). The four lanes' frames are byte-identical, and so is v4.0.8's frame.contour_tiler.pngalone.Left: the llvmpipe golden macOS was compared against (before). Middle: the macOS frame, now
contour_tiler.macos.png(after). Right: the test's diff (red = beyond ±40).The seven documents now covered by #1500: the
pr-assets/ari-golden-macosbranch also has this branch's before-and-after images for them, from the pre-#1500 renderer. Examples: skeleton, volume_grid_quad.-26.27533721923828/66.49713134765625against llvmpipe's-26.275339126586914/66.49713897705078(zoom).The context-menu test on macOS
cvcgl_imgui_context_menu(ariadne: a context menu on text in every backend: Cut, Copy, Paste, Select all (§5.28) #1476) failed one step on all four macOS lanes, "and ImGui's undo takes the paste back".io.AddKeyEvent(ImGuiMod_Ctrl)+ Z. On Apple ImGui setsConfigMacOSXBehaviors, andAddKeyEventthen swaps Cmd and Ctrl. The test's Ctrl arrives as Super, so InputText never sees its undo shortcut.ImGuiMod_SuperunderConfigMacOSXBehaviors. That's what a Mac's Cmd arrives as, and ImGui turns it into the shortcut key. Elsewhere it still pressesImGuiMod_Ctrl.ImGuiMod_Ctrl+ZImGuiMod_Super+Zab)abc)abc)ab)The product-side fix for real input is in #1536: ImGuiOverlay passes VTK's control flag as
ImGuiMod_Ctrl, so Cmd shortcuts are lost in a VTK-window host on a Mac.Also
docs/ARIADNE.md: records these measurements, and adds a step 5 to "Adding a test": push a new document's branch toci/full/**and commit any<name>.macos.pngits macOS jobs upload.Verification
cvcgl_ari_goldenandcvcgl_imgui_context_menu. The PR's own run on 9bf079d (45573662881) passed every job.ariglx-web shell + Python (wasm, headless Chrome), on one page test: "a python: block that raises fails the load with its traceback" timed out without the page reporting its state. That's a flake, unrelated to this PR, which touches no web or Python code. The job passed on every other recent run, including this commit's own PR run.ci/full/ari-golden-macos, for its macOS lanes.AriTest.FramesAndTimeout(package-linux debug);ExecPool.PL05(fixed on master by state_exec: threaded execution's S2b, the router and process control across groups #1524).