Skip to content

pycvc async test: a hold that runs short asks the next for more - #1019

Merged
transfix merged 5 commits into
masterfrom
fix/gcc15-algorithm-includes
Nov 4, 2026
Merged

transfix merged 5 commits into
masterfrom
fix/gcc15-algorithm-includes

Conversation

@transfix

@transfix transfix commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Now just the pycvc async test fix. The rest of this PR reached master through #1021 (c3e902b), which merged this branch at 3ab5cd2:

Master was merged in as 8b662d1, resolving the test file to 7f588a2's version. The remaining diff against master is 7f588a2 alone (the patch-id matches).

The fix (7f588a2): test_a_python_kernels_wait_for_the_gil_isnt_charged failed pycvc-linux / cp312 on its precondition, ran_at - window["from"] >= 0.2.

  • The kernel did wait the hold out, but the hold ran short of its 0.3 s. _PER_ITEM is the best of five calibration runs at import, and when every run is slow (a busy runner, a frequency step), each sum(range(n)) finishes early.
  • A try whose hold is under 0.25 s now asks the next hold for more: 0.3 / held, at most 3 s.
  • A GIL handover before the hold's C call, and an over-long hold, count as stalls.

Checked against a Windows pycvc build:

  • with _PER_ITEM made 2x and 4x pessimistic, the old test fails 2 and 3 runs out of 3, and the new one passes every run, never skipping;
  • the whole file passes 3 of 3.

Still open, a follow-up: 8 bit-exact numeric tests differ under GCC 15 / glibc 2.42 on ubuntu-26.04. The 22.04 pin keeps CI off that toolchain.

ubuntu-latest now runs ubuntu-26.04 with GCC 15.2, whose libstdc++ no
longer brings <algorithm> in through <random>, <thread> and the rest.
state_compression_registry_test stopped compiling on every Linux job
("'sort' is not a member of 'std'"). state_brick_frustum_test's
std::find leaned on the same transitive include. A scan of src, inc,
examples and bindings found no other file calling an <algorithm> or
<numeric> function without reaching the header itself.

(cherry picked from commit e8ec8e7)
ubuntu-latest became the 26.04 image (gcc 15.2), and the jobs that used it broke on a std::sort
without <algorithm>: a toolchain no published bundle is built with. publish-cvcpkg.yml already
pins its linux targets to ubuntu-22.04 (glibc 2.35, gcc 11.4), because an artifact built on a
newer image carries GLIBC_2.x versions an older system can't load.

Pinned to ubuntu-22.04: ci.yml's package-linux and pycvc-linux, ci-recipe.yml's two linux lanes,
and release.yml's linux job (the SDK archives) and its linux sdk-smoke lanes.

(cherry picked from commit e59cbf2)
@transfix transfix changed the title tests: include <algorithm> for GCC 15 (ubuntu-latest is now 26.04) CI on the glibc floor (ubuntu-22.04), and <algorithm> includes for GCC 15 Nov 4, 2026
test_a_python_kernels_wait_for_the_gil_isnt_charged stamps window["from"]
in Python and then makes the C call that holds the GIL. Between the two the
interpreter can hand the GIL to the waiting kernel thread, at an
eval-breaker check, when `hold` is preempted on a busy machine. The kernel
then runs just after the stamp, with no wait, and the precondition assert
(ran_at - from >= 0.2) failed on pycvc-linux / cp312. Such a try is now
retried like the other no-wait cases: a kernel that waited ran after the C
call, at about window["to"].
transfix added a commit that referenced this pull request Nov 4, 2026
transfix added a commit that referenced this pull request Nov 4, 2026
The first fix did not hold: pycvc-linux / cp312 failed the same
precondition at 3ab5cd2, with the kernel past the hold's end. The hold
itself ran short of its 0.3 s. _PER_ITEM is the best of five runs at
import, and when every run is slow (a busy runner, a frequency step) each
sum(range(n)) finishes early, so ran_at - window["from"] < 0.2 even
though the kernel waited the hold out.

A try whose hold is under 0.25 s now raises what the next hold asks for
by 0.3 / held (at most 3 s) and tries again. A handover before the C call
and an over-long hold count as stalls, as before. Checked against the
build-ariglx pycvc on Windows: with _PER_ITEM made 2x and 4x pessimistic
the old test fails 2 and 3 runs of 3 and this one passes all of them, with
no skips, and the whole file passes 3 of 3.
@transfix
transfix enabled auto-merge (squash) November 4, 2026 07:32
transfix added a commit that referenced this pull request Nov 4, 2026
…c:// hostnames on Windows (#1021)

Two bugs kept the native packages from running a conference document that the browser page runs.

The component library: src/cvc installs share/libcvc/ariadne/components on every platform, and
cvc:// looks for it beside the installed library, but the libcvc and libcvc-cuda recipes'
package.files never listed it. No native bundle carried it, so a document importing
cvc://components/room_users.ari or chat.ari loaded without those windows. The install rule also
named no component, so the release tarballs (cpack's libcvc component) left it out too. Both
recipes now list share/libcvc/ariadne/, the rule is COMPONENT libcvc, package-linux fails if its
tarball has no components, and docs/ARIADNE.md notes the CVC_ARIADNE_PATH workaround for older
bundles.

gRPC DNS on Windows: gRPC 1.68.2's c-ares resolver, with c-ares 1.34.8, aborts the process on its
first lookup of a hostname (grpc_polled_fd_windows.cc: "Check failed: *from_len <=
recv_from_source_addr_len_"), so arigl with CVC_ARIADNE_RELAY=grpc://<host>:7700 died at connect
while grpc://<an IP> worked. The gRPC state and stream transports now set GRPC_DNS_RESOLVER=native
on Windows before the process makes its first gRPC object, unless it is already set. New test:
StateTransportGrpcTest.ConnectsToAPeerNamedByHost.

Also carries #1019's branch at 3ab5cd2 so CI could run after ubuntu-latest became 26.04 (GCC 15):
the <algorithm> includes in the tests, Linux CI on ubuntu-22.04 (the same pin #1016 brought to
master), and a pycvc async test fix.
…-includes

# Conflicts:
#	bindings/pycvc/test_pycvc_state_exec_async.py
@transfix
transfix disabled auto-merge November 4, 2026 07:44
@transfix
transfix enabled auto-merge (squash) November 4, 2026 07:44
@transfix transfix changed the title CI on the glibc floor (ubuntu-22.04), and <algorithm> includes for GCC 15 pycvc async test: a hold that runs short asks the next for more Nov 4, 2026
transfix added a commit that referenced this pull request Nov 4, 2026
transfix added a commit that referenced this pull request Nov 4, 2026
… desktop audio) (#1018)

A plan, docs only: docs/roadmap/CONFERENCE_SHARING.md, with a 5l pointer and a row in section 12 of ARIADNE_CONFERENCE_ROADMAP.md.

It covers sending more than one camera and mic, sharing the Ariadne GL frame (the whole window or chosen windows), sharing the desktop or other applications' windows, and the desktop's stereo audio in sync with it:
- named streams and a capability record per client;
- an inter-frame share codec, H.264 first with VP9 as the fallback;
- a robust WebSocket path and a WebRTC media leg, chosen per stream;
- capture on each platform, built for the browser and natively in parallel;
- sync groups, the UI, phases SH0-SH6, and the owner's decisions D1-D7.

Also carries the two <algorithm> includes that GCC 15 needs, which are identical to those in #1019.
@transfix
transfix merged commit f140d3d into master Nov 4, 2026
13 of 28 checks passed
@transfix
transfix deleted the fix/gcc15-algorithm-includes branch November 4, 2026 08:34
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