Skip to content

cvcGL tests: cvcgl_ewave and cvcgl_wake get their own ctest timeout (macOS Debug) - #1267

Merged
transfix merged 2 commits into
masterfrom
fix/cvcgl-ocean-timeout
Nov 16, 2026
Merged

transfix merged 2 commits into
masterfrom
fix/cvcgl-ocean-timeout

Conversation

@transfix

@transfix transfix commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

package-macos / libcvc-debug fails on two GPU ocean tests that run past ctest's 300 s limit. This gives each its own TIMEOUT in src/cvcGL/CMakeLists.txt: 1200 s for cvcgl_ewave and 1800 s for cvcgl_wake. It's what cvcgl_volren_node already has, for the same reason.

Why

macOS CI renders with Apple's software renderer, on the CPU. The two tests step 256² and 512² windows for hundreds of steps of 34–71 passes each. In ci.yml, a Debug or PR ctest gives any test without a TIMEOUT property --timeout 300; Release pushes get 3600.

Release (macOS) Debug (macOS)
cvcgl_ewave 255 s 287–299 s, or a timeout on a busy runner
cvcgl_wake 631 s a timeout on every attempt

Runs:

  • master's own push run 43628764321 at f8863fd, job 132556387836: cvcgl_wake timed out 3 times; cvcgl_ewave passed in 287 s.
  • ci/full/window-chrome-buttons, run 43636956868, job 132575924496: cvcgl_ewave timed out twice before passing in 293 s; cvcgl_wake timed out 3 times.
  • ci/full/ewave-gpu-rates (EWave: the step's numbers worked out on the host in double, no sin, cos, exp, sqrt or tanh on the GPU #1219), run 43638263515: Debug job 132579781040 timed out cvcgl_wake 3 times and passed cvcgl_ewave in 298.5 s. The Release lane, job 132579781022, passed cvcgl_ewave in 255 s and cvcgl_wake in 631 s.

ctest's --timeout only sets the default for tests without a TIMEOUT property, so these values take effect on every lane. They leave room for Debug and a busy runner while still failing a real hang. Both tests already hold the cvcgl_gl_context resource lock, so they never overlap another GL test.

This is the cvcGL counterpart of #1261, which does the same for the CPU ocean_ewave_test cases on Linux Debug.

Checked

…macOS Debug)

On macOS CI the renderer is Apple's software one, on the CPU: cvcgl_ewave
takes 255 s in Release and 287-299 s in Debug, cvcgl_wake 631 s in Release.
A Debug or PR ctest gives a test with no TIMEOUT of its own 300 s, so
package-macos / libcvc-debug timed out cvcgl_wake on every attempt (master's
push run 43628764321, and ci/full runs 43636956868 and 43638263515) and
cvcgl_ewave on a busy runner. TIMEOUT 1200 and 1800, as cvcgl_volren_node has
for the same reason.
transfix added a commit that referenced this pull request Nov 16, 2026
…ings in CI (#1277)

* cvcgl_wake: the rock's run at one substep a step; print timings; TIMEOUT

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.

* cvcgl_wake: TIMEOUT 900 sized from the macOS measurements

* cvcgl_wake: leave the TIMEOUT to #1267, which sets it for cvcgl_ewave too
@transfix
transfix merged commit e8b457e into master Nov 16, 2026
28 of 29 checks passed
@transfix
transfix deleted the fix/cvcgl-ocean-timeout branch November 16, 2026 05:47
transfix added a commit that referenced this pull request Nov 16, 2026
Conflicts (includes in ariadne.h, ariadne.cpp and ariadne_runtime_test.cpp; three hunks of
#1241's menubar tray in ariadne.cpp) keep both sides. #1241's code meets this branch's groups:

- An action's context keeps master's scope (a quit application's actions stop) and is built by
  this branch's finish_context.
- The notify verbs bind by kind with the backend's (install_backend_verbs is now
  install_host_verbs): host_proxied in an `any` group, as cvc::notify mirrors the feed into
  the app's notify.* subtree raw on the caller's thread.
- What they capture (scope, source, a copy of mount_names) is taken on the host thread when a
  context is made (NotifyScope); a spawned child, made on the thread that pumps its group, binds
  from its parent's copy through its spawn context instead of reading mount_names there.
- quit_app kills the application's actions on current_sched() (the document's group), not
  only on group 0 when this Runtime used it.
- drain_begin runs builtin_event before the handler seam, through this branch's `m`.

Tests: AriadneIsolatedDocs.TheNotifyVerbsRunOnTheFramesThread (the feed is written on the
frame's thread while a worker pumps the program; a spawned child posts as its parent's scope)
and AriadneIsolatedDocs.QuitKillsALoadedDocumentsActionsInItsGroup.
STATE_EXEC_THREADED.md: the notify verbs' row, Quit among the kills that go to the group, and
the spawned child's notify scope.
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