Skip to content

cvcgl_wake: the rock's run at one substep a step, and per-section timings in CI - #1277

Merged
transfix merged 3 commits into
masterfrom
fix/cvcgl-wake-macos-time
Nov 16, 2026
Merged

transfix merged 3 commits into
masterfrom
fix/cvcgl-wake-macos-time

Conversation

@transfix

@transfix transfix commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

cvcgl_wake hit ctest's 300 s timeout on all three tries in package-macos / libcvc-debug (ci/full run 43636956868). The build type is not the cause. Apple's Software Renderer is: the macOS release lanes already took 656 s and 723 s, and pass only because a release push gets --timeout 3600.

Where the time goes

Measured on Windows, Mesa llvmpipe (LLVM 20.1.8, 256-bit), Release build, per section:

part passes before after
1, 2 (sources, shift) small 0.9 s 0.8 s
3, Kelvin wake (512^2, 280 + 233 steps) 20007 14.3 s 13.4 s
4, rock, open sea (exact step) 24500 8.4 s
4, rock, masked (symmetric step) 148400 → ~26000 55.1 s
4 in all 64.4 s 18.4 s
total 82.3 s 34.0 s

Readbacks (400 in section 4) and the CPU source work take under 1 s in total. A /Od build of the test and its ocean sources adds about 1 s, so the time is the renderer's.

The masked rock run takes the symmetric step at the default substep of 1/60 s: each 0.1 s step is six Störmer–Verlet substeps of 35 passes.

Change

  • The rock's run at substep = dt = 0.1 s: one substep per step. That is inside the limit (ewave_max_phase / omega_max = 0.19 s at 0.5 m cells), and kappa~ keeps open-water dispersion exact at any substep (inc/cvc/ocean/ewave.h). For these 4 m waves (omega dt_s = 0.39), phi stays within 2 % of the exact value. The checks and their thresholds are unchanged, and the numbers barely move: RMS behind the rock 0.0119 → 0.0120 m, shadow 23 % → 23 %, side 100 % → 100 %. The Kelvin angles are identical.
  • Timings: the test prints the GL renderer and each section's wall time. A new macOS CI step, cvcgl_wake timings, prints them from LastTest.log; --output-on-failure hides a passing test's output.
  • No TIMEOUT here. cvcGL tests: cvcgl_ewave and cvcgl_wake get their own ctest timeout (macOS Debug) #1267 (open, squash auto-merge on) gives cvcgl_wake and cvcgl_ewave TIMEOUTs of their own (1800 s and 1200 s) on the same CMake lines. This PR first carried TIMEOUT 900; that was dropped to avoid two owners and a conflict. With this PR, macOS debug still needs more than 300 s: Apple's renderer is slowest on the Kelvin section's 512^2 window, which alone takes 195–248 s there. Fitting that under 300 s would mean dropping a speed or shrinking the window, which would weaken the Phase C exit check. This PR alone does not make package-macos / libcvc-debug green; cvcGL tests: cvcgl_ewave and cvcgl_wake get their own ctest timeout (macOS Debug) #1267 does. This PR halves the time the test spends there, and in every other lane.

Measured in CI

ci/full run 43673733499 on this branch (f71cfc3, which still had TIMEOUT 900; the later commits only touch CMake: they first rewrote that comment, then removed it), against ci/full run 43636956868 before:

lane renderer before after
package-macos / libcvc-debug Apple Software Renderer 3 × Timeout 300 s 391.3 s (Kelvin 248.3 s, rock 136.3 s)
package-macos / libcvc-release-grpc Apple Software Renderer 656.4 s 317.2 s (Kelvin 194.8 s, rock 116.9 s)
package-linux / libcvc-debug llvmpipe 128.9 s 70.5 s
package-linux / libcvc-debug-grpc llvmpipe 130.2 s 70.8 s
package-linux / libcvc-release llvmpipe 56.3 s 29.3 s
package-windows / libcvc-release llvmpipe 132.0 s 50.2 s

Both macOS jobs in that run were still red, but not from cvcgl_wake. cvcgl_ariadne_labels failed 3 of 37 checks there (focus/follow label scale), and this branch does not touch it. The macOS release and release-grpc-static lanes had not finished when this PR was opened.

cvcgl_ewave is at the same edge on macOS debug (Timeout, then Passed 285 s in this run; Timeout, Timeout, Passed 292.65 s before); #1267's 1200 s covers it.

On macOS CI (Apple Software Renderer) cvcgl_wake took 656-723 s in the
release lanes and hit the 300 s debug timeout three times. The rock-shadow
run takes the symmetric step at the default 1/60 s substep: six substeps of
35 passes per 0.1 s step, 148400 passes, two thirds of the program's time
on Mesa llvmpipe. Run it at substep = dt = 0.1 s (inside the 0.19 s limit
at 0.5 m cells; kappa~ keeps open-water dispersion exact at any substep).

The test now prints the GL renderer and each section's wall time, and a
macOS CI step prints them from LastTest.log. TIMEOUT 900 is provisional
until measured on macOS.
@transfix transfix changed the title cvcgl_wake: the rock's run at one substep a step, timings, a TIMEOUT for Apple's software renderer cvcgl_wake: the rock's run at one substep a step, and per-section timings in CI Nov 15, 2026
@transfix
transfix merged commit a83ac57 into master Nov 16, 2026
28 of 29 checks passed
@transfix
transfix deleted the fix/cvcgl-wake-macos-time branch November 16, 2026 00:23
transfix added a commit that referenced this pull request Nov 16, 2026
…#1253, #1255, #1256, #1264, #1268, #1271, #1273, #1277)

- ci.yml: the sanitizer list keeps this branch's tests (stream_test, net_ws_client_test,
  ariadne_host_test) and master's segmentation_intrinsics_test.
- STATE_EXEC_THREADED.md: the room-call verbs (room-run is #1273's) and #1252's segment.seeded
  provider in the provider table, both registered without a kind. room-call's async functions
  stay on the app's host: a reply settles on the relay client's reader thread through
  host.finish, so moving them to *ictx.host needs a finisher first.
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