Repository navigation
cvcGL: link every wasm executable with -sFETCH - #1435
Merged
Merged
Conversation
A scene's vehicles load a fleet's weights through DataStore, which can fetch over cvc::net, so cvcGL's tests that realize a scene link the Emscripten-fetch backend. Without -sFETCH=1 its emscripten_fetch* symbols are undefined: 38 cvcgl_* links failed in v4.0.3's pycvc-gl wasm build (tolerated there, since the tests are not shipped). libcvc leaves the fetch flags to the executable, so src/cvcGL sets it on every executable it defines.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…clock-rate JX2 deleted .github/scripts/pin-wasm-pre-jx1.sh, so this branch's numpy pin goes with it.
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.
In v4.0.3's pycvc-gl wasm build (publish-pycvc-gl-wasm run 44925109906), 38 cvcGL test executables failed to link:
They linked in v4.0.2's run. The recipe builds with
-k 0 || truebecause these tests aren't part of the package, so the job didn't fail on them. That run did fail later, on a cvcpkg.org upload timeout, which is unrelated.Why. Since the fleet PRs (#1384, #1403),
world_vehicles.cpploads a fleet's trained weights throughDataStore::load(ariadne/data.cpp), which can fetch overcvc::net. So any executable that realizes a scene now pullsdata.cpp.o, thennet/http_client.cpp.o, then the Emscripten fetch backend. libcvc deliberately leaves-sFETCHto the executable (src/cvc/CMakeLists.txt: the static archive does not propagate it), and cvcGL's test executables never set it.The fix.
src/cvcGL/CMakeLists.txtgives every executable it defines-sFETCH=1under Emscripten, in one loop over the directory's targets, so a new test can't miss it. These tests never fetch, so-sFETCHalone is enough; a blocking send would also need-sASYNCIFYor-pthread, as before. Native builds are untouched.Verified.
cvcgl_*executables, each missing onlyemscripten_fetch*.dry_run(build and verify, no publish). Run 44944190377 (on 997017f) succeeded. All 112cvcgl_*executables link: 0FAILED:and 0 undefinedemscripten_fetch*, where v4.0.3's run had 38 failures out of the same 112. The package build and the host link are unchanged ("pycvc_host.wasm linked", "build complete").No CI job links cvcGL's tests for wasm: the ci.yml wasm jobs build with
CVC_BUILD_CVCGL=OFForCVC_BUILD_TESTS=OFF. That's why this went unnoticed.