Repository navigation
Ariadne terminal backends on macOS and Windows; tvision in the published libcvc - #720
Merged
Merged
Conversation
…vision on WIN32 The libcvc recipe scoped ftxui (and the .ari Layer-2 schema deps) to linux, so every macOS and Windows libcvc, and the macOS / Windows CI lanes, built the stub terminal backend; the AriadneFtxui tests reported Skipped there. ftxui, nlohmann-json and json-schema-validator are published for linux, macOS (arm64, x86_64) and windows, so declare them there. tvision was in no published libcvc. Add it as a build dep (a static archive, linked PRIVATE and BUILD_INTERFACE-only) on linux, macos and windows, and ncurses as a runtime dep on linux and macos (libncursesw + the terminfo database). The Windows tvision (cy-pca/cvcpkg#414, tvision cvc.3) draws through the Win32 console, so src/cvc/CMakeLists.txt skips the ncursesw lookup on WIN32. Under MSVC tvision_backend.cpp gets the flags tvision's config makes PUBLIC: without /Zc:__cplusplus, tvision/ttypes.h #defines constexpr, noexcept and thread_local away. Also drops the stale #111 notes in ci.yml and the tvision test.
ari pointed ncurses at <prefix>/share/terminfo from its own executable path, and only on Linux. Other hosts (arigl, cvcGL's ariadne_terminal) did not, and the cvcpkg ncurses bundle's compiled-in search path names the builder's /tmp prefix. TvisionBackend::run now does it before tvision starts ncurses: dladdr locates libcvc's own library, and TERMINFO_DIRS becomes <libdir>/../share/terminfo: when it is unset and that directory exists. Every host gets it, on Linux, macOS and the BSDs. ari's behaviour is unchanged (same rule, same prefix in a cvcpkg install); its copy is removed.
publish-cvcpkg.yml tees each libcvc configure and fails the job when it lacks 'Ariadne: .ari YAML loader ENABLED', 'Ariadne: FTXUI terminal backend ENABLED' or 'Ariadne: tvision terminal backend ENABLED', so a stub can no longer ship silently (like ci.yml's ari-wasm guard). ari: macos and windows matrix entries, files bin/ari*, and build.ps1 (cvc-cli's pattern, pointed at src/ari). The workflow gains macOS (bash) and Windows (pwsh) twins of the Linux ari step, taking cmake and ninja from cvcpkg. Each ari step, Linux included, now renders the terminal tour with the binary it is about to pack before packing it.
Without ftxui or tvision the Ariadne terminal backends compile to stubs and the AriadneFtxui / AriadneTvision tests skip rather than fail, which is how the macOS and Windows lanes ran them until now. Tee each package-* configure and fail when it lacks 'Ariadne: FTXUI terminal backend ENABLED' or 'Ariadne: tvision terminal backend ENABLED'.
Leaves the __linux__ includes and the call site's surroundings as they were, so this merges cleanly with the arigl branch's rewrite of ari's argument parsing. Whichever lands second drops the now-unused includes.
The Windows ftxui export puts /utf-8 in the INTERFACE_COMPILE_OPTIONS of ftxui::screen, ::dom and ::component. Linked into cvc, it reached the CUDA sources too, and nvcc took the bare /utf-8 for a second input file: "nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified" (package-windows / libcvc-release-grpc-static). Wrap each of FTXUI's options in $<$<COMPILE_LANGUAGE:CXX>:...>, as cvc already does for -openmp:llvm.
…os-windows # Conflicts: # src/ari/main.cpp
transfix
added a commit
that referenced
this pull request
Oct 20, 2026
#732) StateTransportIpcTest.ThreeEndpointFanOut failed on CI (#720, recipe / ubuntu-latest / Debug): after wait_for_received(1) returned, node B's "fan" was still "". The IPC reader bumped _recv_mutations before dispatch_inbound() applied the mutation to the shards, so wait_for_received() could return while the value was still in flight. OOB messages had the same order. state_transport_grpc already counts after dispatching. Count after dispatch, so wait_for_received*() returning means the receiving shards have applied what it counted. The counters are diagnostics; nothing but the waits reads them. Reproduced on master: 16 concurrent copies x 300 repeats of the test failed 5 of 4800 times, every time with "". With the fix: 16 x 1000 passed 16000 of 16000, and the whole StateTransportIpcTest suite, 32 copies x 200 repeats, passed 115200 of 115200. The other suites that use the IPC transport pass.
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.
Builds, tests and ships the Ariadne terminal backends on macOS and Windows, and puts tvision into the published libcvc.
Before this, the libcvc recipe scoped
ftxuito linux (the stale "#111 linux only" note). So the published macOS and Windows libcvc, and the macOS/Windows CI lanes, built the stub backend, and the 42 AriadneFtxui tests reported Skipped there. tvision was in no published libcvc.Recipe (
cvcpkg/recipes/libcvc)ftxui→[linux, macos, windows, wasm-mt];nlohmann-jsonandjson-schema-validator→[linux, macos, windows].tvision: a build dep on[linux, macos, windows]. It is a static archive linked PRIVATE and BUILD_INTERFACE-only, so nothing of it reaches the exports.ncurses: a runtime dep on[linux, macos](libncursesw plus the terminfo database).CMake (
src/cvc/CMakeLists.txt)ariadne/tvision_backend.cppgets the flags tvision's own config makes PUBLIC:/permissive- /Zc:__cplusplus /Zc:externConstexpr /Zc:inline. Without/Zc:__cplusplus,tvision/ttypes.h#definesconstexpr,noexceptandthread_localaway.Terminfo (
TvisionBackend::run)use_bundled_terminfo()moves out ofsrc/ari/main.cppintoTvisionBackend::run, before tvision starts ncurses.dladdrlocates libcvc's own library. WhenTERMINFO_DIRSis unset and<libdir>/../share/terminfoexists, it becomesTERMINFO_DIRS(with a trailing:).Publish (
.github/workflows/publish-cvcpkg.yml)Ariadne: .ari YAML loader ENABLED,Ariadne: FTXUI terminal backend ENABLEDorAriadne: tvision terminal backend ENABLED. It runs before the long build, as ci.yml's ari-wasm guard does.macosandwindowsentries,files: [bin/ari*], and a newbuild.ps1(cvc-cli's pattern, pointed atsrc/ari);cvcpkg-build-tools), which prepends PATH;terminal_tour.ariwith the binary it is about to pack.bin/cvc.dllbeside its dependency DLLs (checked by installing it), sobin/ari.exeresolves in a flat prefix.CI (
.github/workflows/ci.yml)Ariadne: FTXUI terminal backend ENABLEDorAriadne: tvision terminal backend ENABLED. A stub backend otherwise turns the AriadneFtxui/AriadneTvision tests into skips, which is how macOS and Windows ran them until now.Not touched
src/cvc/ariadne/ftxui_backend.cppis not changed. (Another branch is editing it.)Verified locally (Linux, Ninja, Release, shared)
ariadne_ftxui_test: 42/42, includingAriadneTvision.IsTheHostedFtxuiBackend.cmake --install, the resolved deps copied in, ncurses'share/terminfo, thenmvto a new path), with an extra terminfo entryari-reloccompiled only into that prefix's database. In tmux withTERMINFO_DIRSunset,TERM=ari-reloc ari run --backend tvision terminal_tour.aridrew the tvision desktop. strace shows ncurses openingreloc2/bin/../lib/../share/terminfo/a/ari-reloc, and two Ctrl-Cs exited 0. With a user-setTERMINFO_DIRS=/nonexistentit is left alone: ncurses fails onari-reloc(exit 1).CI to watch
macOS and Windows
package-*lanes should now printAriadne: FTXUI terminal backend ENABLED, and run the AriadneFtxui/AriadneTvision tests instead of skipping them. master's known macOS failureDynBike.KinematicLimitFollowsBikeStepis fixed by #717, not here.cvcpkg install arion macOS and Windows needs a publish-cvcpkg dispatch after merge.