4.1 Building and testing
Record the tested commit, toolchains, and loaded artifacts with each result. Robot acceptance and release approval remain separate from these build gates.
Prerequisites
- Rust 1.97.1 via rustup. The workspace declares MSRV 1.75, but the tested toolchain is 1.97.1.
- JDK 17 for WPILib 2026 and JDK 25 for WPILib 2027, built from the same source tree
- Gradle wrapper at
java/gradlew(in the repo, no install) - Python 3.10+ (only for the Python wrapper)
- CMake >= 3.21 + a C++23 compiler (only for the C++ wrapper)
- Cross toolchains only for robot natives and the full vendordep (see Toolchains)
Per-language suites
Each parenthesized command starts at the repository root:
(cd rust && cargo test -p tempo-core)
(cd java && sh gradlew build)
(cd python && sh run-suites.sh)
ctest --test-dir cpp/build --output-on-failureUseful variants are cargo test -p tempo-core <name> -- --nocapture for one test with
output, ./gradlew test --tests "com.tempo.ComposerTest" for one class, and
./gradlew test --rerun-tasks to rerun cached tests.
Before the C++ gate, build the release Rust library, configure CMake and build
the tests. CMake discovers the native file at configure time and copies it next
to tempo_tests in a post-build step. A Rust-only rebuild may leave the C++
test target up to date, so refresh the copied library explicitly before CTest.
On Linux:
cargo build --manifest-path rust/Cargo.toml --release -p tempo-core
cmake -S cpp -B cpp/build -DCMAKE_BUILD_TYPE=Release
cmake --build cpp/build
cmake -E copy_if_different rust/target/release/libtempo_core.so cpp/build/libtempo_core.so
ctest --test-dir cpp/build --output-on-failuremacOS uses libtempo_core.dylib, and MSVC places the executable and DLL under the
selected configuration directory and requires ctest -C Release (see
windows.md). CMake fetches nlohmann/json and GoogleTest. The
optional WPILib adapter needs the selected season’s headers and libraries, and
the default CMake suite covers the WPILib-free core. The static_asserts in
cpp/include/tempo/detail/Native.h pin the C struct layouts, so if the Rust #[repr(C)]
types change, the C++ build fails until Native.h matches.
The core suite reads WPILib-shaped stand-ins (cpp/tests/geometry.h) in place
of WPILib geometry. WpilibGeometryProbe.<year> compiles
cpp/tests/wpilib_geometry_probe.cpp against the real headers. The concepts
accept that season’s Pose2d, Translation2d and Rotation2d and refuse
Transform2d and the 3D types, and the authoring calls and the
tempo/wpi/Geometry.h accessors instantiate and answer the season’s types.
WpiSetlistHeaderTakesWpilib.<year> compiles
cpp/tests/wpilib_setlist_include_probe.cpp the same way, and with only
tempo/wpi/Setlist.h included, a WPILib command is a Setlist step and a units
time is a wait. WpiConfigureOverloads.<year> compiles
cpp/tests/wpilib_configure_probe.cpp the same way, with every form of
tempo::wpi::configure. CMake adds a season’s tests when TEMPO_WPILIB_HEADERS_<year>
(a CMake variable or an environment variable at configure time) names that
season’s unpacked WPILib C++ headers.
sh gradlew stageWpilibCppHeaders -PwpilibYear=<year> in java/ writes them
to java/build/cpp-dist/wpilib-headers, so copy each season out before staging
the other.
Release-mode compilation is also a gate, so cargo test --release -p tempo-core must
build. Debug-only test hooks are #[cfg(debug_assertions)] and every call site must carry
the same guard for release builds to compile.
Rust tests come in two kinds, inline #[cfg(test)] unit tests per module and the
integration suites under rust/core/tests/. rebuilt_pack.rs runs the real pack
through the whole pipeline and the *_conformance.rs suites pin cross-binding and
control-stack behavior. Some are sha pins and not behavior tests (see
pins-and-surfaces.md).
Java tests run with -Djna.library.path=build/native/<jnaPrefix> set by the
Gradle test task (add it manually in an IDE). Static state is cleared per test with
Tempo.resetForTesting() in @BeforeEach because tests sharing a JVM interfere
through the global config and pack handles otherwise.
Java selects 2027 when Gradle runs on JDK 25 or newer, otherwise 2026, and
-PwpilibYear=2026|2027 makes the choice explicit. A 2027 build requires JDK 25.
build includes the C++ header-closure and WPILib adapter compile checks in
addition to Java tests. The default 2027 bundle is alpha8 (see
wpilib-years.md before changing the bundle).
For Python, build the release native first, install the test extra
(pip install -e ./python[test], which names pytest and
robotpy-commands-v2) in a compatible interpreter, then run sh run-suites.sh
from python/. The script runs the default interpreter, then a RobotPy-capable
one selected from TEMPO_WPI_PYTHON, python/.venv-wpi/bin/python, or the
default interpreter, in that order. A selected interpreter that cannot import
commands2 is rejected, and no RobotPy interpreter at all fails the gate. When
the two interpreters report the same sys.prefix they collect the same tests,
so the second run is skipped as already gated. Arguments such as -q or a test
filename pass to both runs. Bare pytest is useful for a focused reproduction but
is not the Python gate because it can skip the WPILib adapter silently.
The script’s third stage is python/robot_sim/, run on the RobotPy interpreter.
It runs whole robot programs (TimedRobot and command-based) under RobotPy’s HAL
simulation, each test in a fresh interpreter, one 20 ms loop per
wpilib.simulation.stepTiming. It reads the alliance from DriverStationSim,
picks autos on the published chooser, presses controller buttons, and runs every
Python block of the docs site in a robot. Routes plan in replay mode
(TEMPO_PLANNING_MODE=replay), so results do not depend on how fast the planning
workers run, but tests marked background_planning plan on the workers as a robot
does. A run given a test path or another bare argument leaves the stage out.
TEMPO_SIM_JOBS caps the interpreters running at once (default half the CPUs,
at most 4). The stage tests this checkout’s python/tempo. To test an installed
wheel instead, install it with RobotPy in a virtual environment and run from
outside python/:
TEMPO_SIM_TEMPO=installed python -I -m pytest <checkout>/python/robot_simThe session fails if tempo then resolves inside the checkout. Blocks of the docs
that cannot run are listed in test_docs_snippets.py by page and a line of the
block, with the reason, and a broken one is a strict xfail, so it fails once it runs.
The stage runs on RobotPy 2026 and on the 2027 pre-releases from one source tree,
reaching RobotPy through robot_sim/robots/_year.py, and on 2027 it skips the docs
blocks, which are RobotPy 2026 code.
The same suite gates RobotPy 2027. Point TEMPO_WPI_PYTHON at an interpreter
with one of the 2027 pre-releases in CHECKED_2027
(python/tempo/_wpilib_version.py) installed, such as one made with
pip install --pre "robotpy[commands2]==2027.0.0a7" pytest, and run
sh run-suites.sh again. The tests reach RobotPy through
python/tests/_robotpy.py, which resolves each name for the installed year
without Tempo’s own resolution in tempo/_wpi_compat.py. A command or subsystem
a test writes keeps each override under the one spelling the installed
commands2 calls, as robot code for that year does, so Tempo reading a command
under the wrong year’s spelling fails a test. Write new tests against
_robotpy, never against one year’s spelling.
wasm is a separate workspace and is not covered by the core command:
cargo test --manifest-path rust/wasm/Cargo.toml
cargo test --manifest-path rust/wasm/Cargo.toml --features conformancepreview_drag.rs compares cached and uncached previews bit for bit on random
edit sequences, including plans interrupted between worker steps.
TEMPO_DRAG_EDITS and TEMPO_DRAG_SEEDS extend the run. Use release mode for
thousands of edits.
Preview or wasm-boundary changes also need release web/Node packages and the
actual Node export contracts, including the native preview dump, because native
Rust tests alone do not execute wasm32 exports. With wasm-pack and Node 22 or
newer installed, from the repository root:
wasm-pack build rust/wasm --target web --out-dir pkg --release
wasm-pack build rust/wasm --target nodejs --out-dir <scratch>/wasm-node --release
TEMPO_PREVIEW_DUMP=<scratch>/preview-native.json \
cargo test --manifest-path rust/wasm/Cargo.toml --test preview_parity
TEMPO_WASM_PKG=<scratch>/wasm-node TEMPO_PREVIEW_DUMP=<scratch>/preview-native.json \
node --test rust/wasm/tests/wasmPreviewParity.mjsNative loading in source checkouts
Build the desktop core from the repository root:
cargo build --release --locked -p tempo-core --manifest-path rust/Cargo.tomlFor a JVM outside the repository’s Gradle test tasks, set
-Djna.library.path=rust/target/release when starting from the repository root,
or use an absolute directory. This override precedes packaged natives, and
Gradle’s test tasks configure their own native search path.
For Python development, install into the intended interpreter:
python -m pip install -e ./python robotpy-commands-v2The editable wrapper can load the sibling Rust release output but it does not
package a robot native, so deployments need the target’s native beside
tempo/_native.py. For C++, refresh the copy beside the test executable using
the per-language commands, including after Rust-only changes.
Building the vendordep and robot natives
The vendordep
cd java
sh gradlew vendordep -PwpilibYear=2026Output goes to java/dist/vendordep/ and contains Tempo.json, README.md
and maven/. The Maven tree carries the Java JAR, C++ wrapper archives/headers
and shared Rust core artifacts. The generated README describes copying the
descriptor into a robot project’s vendordeps/ and the repository to
tempo-maven/, and those are consumer destinations, not extra bundle roots.
vendordep synchronizes this output directory. Build each season in turn and
retain only the required release artifacts before the next build replaces it, and
do not copy whole build/cache trees. -PpublicRelease writes the public
host into the descriptor (mavenUrls https://maven.tempofrc.com, jsonUrl
https://maven.tempofrc.com/<descriptor>), and without it both are empty.
-PvendordepMavenUrl= and -PvendordepJsonUrl= override either value.
The C++ bundle uses TEMPO_WPILIB_IN_CORE=ON to combine the WPILib adapter and
wrapper in one archive, avoiding native-utils archive-order dependencies.
The shared Rust core remains a separate runtime dependency. nlohmann/json is
needed to compile the wrapper, but public headers do not expose it.
Toolchains
The build can package host, roboRIO, SystemCore and Windows natives. The required robot native follows the selected WPILib year, and release assembly also requires Windows simulation support and the C++ platform matrix (packaging gates).
| Native | Toolchain | How the build finds it |
|---|---|---|
| host platform | host Rust | nothing to configure; the JNA prefix follows the host OS/architecture |
| linux-armel (roboRIO) | FRC toolchain (arm-frc*-linux-gnueabi-gcc) | default path ~/wpilib/<year>/roborio/bin, or FRC_GCC_PATH / -PfrcGccPath |
| linux-aarch64 (SystemCore) | compatible AArch64 Linux GCC | SYSTEMCORE_GCC_PATH / -PsystemcoreGccPath, the selected WPILib bundle’s SystemCore toolchain, another installed bundle, or aarch64-linux-gnu-gcc on PATH |
| win32-x86-64 | MinGW-w64 (x86_64-w64-mingw32-gcc) | on PATH (Arch: pacman -S mingw-w64-gcc) |
Rust targets must be installed once per machine:
rustup target add arm-unknown-linux-gnueabi aarch64-unknown-linux-gnu x86_64-pc-windows-gnu
for the Linux-hosted cross-builds above. Windows uses its native MSVC toolchain
for the C++ archive, and MinGW’s C-ABI Rust DLL does not replace that archive.
The roboRIO compiler resolves in order:
FRC_GCC_PATH env, frcGccPath Gradle property, then the WPILib default install path
per OS. Gradle passes the result to cargo as
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABI_LINKER, which outranks the Windows path pinned
in rust/.cargo/config.toml (a direct cargo invocation off Windows needs that variable
set by hand). Absent toolchains make the cross tasks (buildRustRoboRio,
buildRustSystemcore) log a warning and skip, and the verify gates turn a skip into a
failure at packaging time.
To build a native separately before a local consumer publication, run the matching sequence from the repository root. Use JDK 17 for 2026:
cd java
sh gradlew -PwpilibYear=2026 buildRustRoboRio copyNativeRoboRio
sh gradlew -PwpilibYear=2026 publishMavenPublicationToTempoVendordepRepositoryUse JDK 25 and an explicit bundle for 2027:
cd java
sh gradlew -PwpilibYear=2027 -Pwpilib2027Bundle=alpha6 buildRustSystemcore copyNativeSystemcore
sh gradlew -PwpilibYear=2027 -Pwpilib2027Bundle=alpha6 publishMavenPublicationToTempoVendordepRepositoryBoth sequences reuse the normal build directory.
Packaging gates
verifyNativePackagingrequireslinux-armelfor a 2026 JAR orlinux-aarch64for a 2027 JAR. The other season’s native is advisory. It also rejects stale cross-build artifacts when their toolchain was absent.verifyWindowsNativerequires the Windows DLL during vendordep assembly.verifyMacNativerequires the macOS universal dylib with its arm64 and x86-64 slices during vendordep assembly (-PallowMissingMacNativefor a desk build).verifyCppHeaderschecks the public include closure, andcheckWpiAdaptercompiles the adapter against real WPILib headers as part of Java’s checks.verifyCppPackagingrequires C++ and Rust artifacts for the selected robot platform, Linux x64, Windows x64 and macOS universal, and checks the C++ release/debug pairs and archive contents. Its localnmcheck rejects strongfrc::definitions when that tool is available, but it is not a complete symbol audit of every incoming archive or the 2027 namespaces.
A full C++ release uses artifacts from compatible desktop toolchains. Put the
other machines’ Maven-named artifacts in cpp/dist-inbox/ (or use
-PcppArtifactInbox=), then assemble. A Linux build needs Windows C++ release
and debug archives from MSVC, and macOS artifacts from Apple clang. Follow the
packaged C++ consumer gate
to test the assembled packages in a consumer,
in addition to the core CMake suite.
Desktop-only build flags (-PallowMissingRoboRioNative, -PallowMissingSystemcoreNative,
-PallowMissingWindowsNative), -PallowStaleNatives, and per-platform
-PallowMissingCpp... flags exist for development machines. A bypassed build
must not be released or deployed. A 2026 build without a SystemCore
toolchain needs no bypass and still requires roboRIO, and a 2027 build without the
roboRIO toolchain needs no bypass and still requires SystemCore. Never bypass
the native needed by the robot being deployed.
The 2026 Java sim gate
(cd java && sh gradlew publishMavenPublicationToTempoVendordepRepository -PwpilibYear=2026)
cd tests/robot/java_sim
./gradlew test --no-daemonThe tests/robot/java_sim/ project resolves com.tempo only
from this checkout’s java/build/vendordep-stage/maven/, so Maven local cannot
substitute another checkout’s JAR. Stage the intended artifact before testing.
Use JDK 17 and require zero failures, with only the explicitly
environment-gated benchmark skips. This runs routines against WPILib simulation,
including scheduler and HAL integration. Spotless runs as part of the build,
and its pinned formatters support JDK 17 through 25. The full-stack sweep (FullStackSweepTest) is an
on-demand tuning tool, tagged out of a plain run: ./gradlew test -Psweep --tests frc.robot.sim.FullStackSweepTest. The follower benchmark is another: ./gradlew test -Pfollowerbench --tests 'frc.robot.sim.FollowerBench*' records each benchmark route’s Tempo reference once, then
drives that one recording through Tempo’s TrajectoryFollower, PathPlannerLib’s
PPHolonomicDriveController and ChoreoLib’s documented swerve controller on the same maple-sim
drivetrain and the same clock, plus a row for the full Tempo route command. It runs one JVM per
condition (nominal, 60 and 100 ms of command delay, pose noise, a push, a 9 V bus) and writes
per-route CSV and per-condition summaries to build/follower-bench/. FOLLOWERBENCH_ROUTES
picks routes, FOLLOWERBENCH_GAINS and FOLLOWERBENCH_LATENCY_MS override Tempo’s gains and
latency, and FOLLOWERBENCH_TRACE writes each run’s ticks. maple-sim is not
bit-repeatable, so compare means over several runs.
The packaged C++ consumer gate
tests/robot/cpp_docs is a WPILib 2026 GradleRIO robot that links Tempo the way
a team’s robot does, from a generated vendordeps/Tempo.json. Its tests cover
the WPILib adapter and run whole robot programs in simulation, which the core
CMake suite doesn’t, so run it after binding or packaging changes. It needs
Gradle 8.10 on PATH (the project has no wrapper), JDK 17 selected by
JAVA_HOME, Rust and CMake. From the repository root, for Linux desktop:
cargo build --manifest-path rust/Cargo.toml --release -p tempo-core &&
(cd java && sh gradlew -PwpilibYear=2026 \
publishCppPublicationToTempoVendordepRepository \
publishCorePublicationToTempoVendordepRepository generateVendordepJson) &&
mkdir -p tests/robot/cpp_docs/vendordeps &&
cp java/build/vendordep-stage/Tempo.json tests/robot/cpp_docs/vendordeps/Tempo.json &&
(cd tests/robot/cpp_docs && gradle --no-daemon -Ptoolchain-optional-roboRio \
frcUserProgramLinuxx86-64DebugExecutable \
frcUserProgramTestLinuxx86-64DebugGoogleTestExe \
runFrcUserProgramTestLinuxx86-64DebugGoogleTestExe)The robot resolves com.tempo only from java/build/vendordep-stage/maven/.
Tempo.json is generated because its platform list depends on which artifacts
were built, and it’s ignored by git. Add -PtempoAdapterSanitize to the last
gradle command to build with AddressSanitizer and UndefinedBehaviorSanitizer.
The tests also compile and run the C++ snippets on the docs site (see below).
ProcessExitTest.cpp runs the test binary again with --tempo-exit-probe.
The probe binds a drivetrain, schedules a named Setlist, and returns from
main with nothing reset, and the test fails unless it exits within 30 s. A
WPILib command removes itself from wpi::SendableRegistry as it is destroyed,
so a namespace-scope container of commands, built before that registry and so
destroyed after it, hangs the process at exit.
The C++ robot simulation
The example’s GoogleTest binary also runs whole robot programs, linked against
the staged vendordep the way a team’s robot links it, under the WPILib HAL
simulation. src/test/cpp/sim/RobotSim.h runs a TimedRobot’s own
StartCompetition loop on a thread with the robot clock paused and stepped one
20 ms loop at a time, and drives the mode, alliance station, match time and
joysticks through DriverStationSim. Tests observe what a dashboard or the
robot’s own code could: the drivetrain’s pose, the Auto chooser over
NetworkTables, and Tempo’s logging consumers.
ExampleRobotSimTest.cppruns the example robot unchanged: the Hub Rush on all six stations and with no alliance, an alliance change while disabled, teleop taking over, a disable mid-auto with two reruns, and thread counts across robot lifetimes.FeatureSimTest.cppruns a robot wired as the docs teach, with Tempo’s default Driver Station alliance: dashboard picks on both alliances, hooks and conditions, connecting drives, rotation and aim targets, bias, point-to-point, a disable during a hook, disabled warm-up, background planning, a differential drivetrain, and game pack selection from code,deploy/tempo/and the bundled default.DocsSnippetsTest.cpppastes every C++ snippet on the docs site betweendocs-snippet:markers into a robot that supplies the names the page assumes, compiles it, and runs its auto.DocsSnippetsCurrent.EverySnippetIsCurrentfails when a marked snippet is no longer on its page or a page has a C++ snippet with no test and no reason inkExcused. The website’scheck-cpp-snippetsmakes the same comparison innpm run check, so a page edit fails the website gate before the robot simulation runs. A snippet that cannot run as written keeps aDISABLED_test stating what it hits.WpilibVersionGuardTest.cppchecks the archive’s WPILib version check against a mismatched version and against the WPILib the program links.
The robot tests read the REEFSCAPE 2025 pack and the docs pages from the
checkout, located from the test sources’ path. The whole binary takes about a
minute. Teams build this project on Windows and macOS as well, so the tests
stay portable: console capture uses a pipe on each platform, the thread-count
check reads /proc and skips elsewhere, and the WPILib mismatch test, which
swaps the version function with GNU ld’s --wrap, skips off Linux.
Fixtures and when to regenerate them
- Every suite that ticks routes runs them in the core’s replay planning mode, in
which each plan arrives on the tick that asks for it, so a run repeats tick for tick.
The Java Gradle test tasks,
python/tests/conftest.py, the C++ CTest registration (the AddressSanitizer binary’s included),tests/robot/java_simandtests/robot/cpp_docs’s adapter tests setTEMPO_PLANNING_MODE=replay, and the Rust tests setAutoRuntimeConfig::planning_modeorconfig.planningMode. Each binding’sSimRunbuilds a replay runtime itself. A robot runs the robot mode, where a leg holds for a plan made off its loop.robot_mode_testsinrust/core/src/auto_runtime.rsandworker_pool.rs’s tests cover it, and one test per binding drives it through the route command with no wait on a worker (TempoCommandRobotPlanningTest,test_robot_planning.py,test_robot_planning.cpp), each asking for the robot mode itself. The planning-settings tests (PlanningSettingsTest,test_planning_settings.py,test_planning_settings.cpp) statePlanningConfigs.inBackgroundto show a stated value wins over the variable. - Trace fixtures (
tests/fixtures/sequencing/) are the sequencing contract. Twenty routes replay (theROUTESlist inrust/core/tests/sequencing_traces.rs), andgeometricandpathTightare checked to be rejected. Three independent replays reproduce them at the 1e-9 comparison: the Rust replay throughAutoRuntime, the same routes driven through thetempo_auto_*C ABI, and the Java wrapper oracle through JNA. There is no regeneration recorder, andTEMPO_REGEN_TRACESfails the oracle instead of refreshing expected output from the core under test. Moving a recording is a hand edit, in a commit that names the behavior that moved, reviewed as code.rust/core/tests/sequencing_traces.rsreports every diverging route with its first differing field, so one run shows the whole extent of a change. - Planner conformance fixtures are separate behavior expectations.
TEMPO_REGEN_FIXTURES=1 cargo test -p tempo-core --test conformancerewrites the core-derived ones. Commit the diff only for an approved behavior change. Never setTEMPO_REGEN_TRACES. Source pins have a different procedure in pins-and-surfaces.md. - The docs site gate (
npm run checkinwebsite/) checks recognized fenced method and import/include names against the binding sources here, alongside the other checks listed under frontend checks. Verify complete examples separately, because a name check does not prove argument order, types, or runtime semantics, and it does not compile the examples.
Review and regression evidence
Separate confirmed reproductions from traced possibilities, rank severity, and state the concrete trigger and effect. Preserve the failing baseline and add the smallest regression that distinguishes the corrected behavior. Validate callers as well as the immediate layer, especially native failure handling, event ordering, cancellation, warmup, and output-buffer ownership.
Closed audits retain their original findings, counts and hashes. Check current source and regression coverage before treating an old finding as open. For performance work, compare realistic complete calls and deterministic output oracles, and keep timing observations out of pass/fail thresholds.
Dependencies
Rust deps go in rust/Cargo.toml under [workspace.dependencies] and are referenced
with { workspace = true }. Read pins-and-surfaces.md first,
because rust/Cargo.toml is a wasm-pin fingerprint input. Java deps go in
java/build.gradle, and WPILib deps must be compileOnly so they never end up in the
output JAR (robot projects supply WPILib at deploy time and implementation pollutes
their classpath).
Commit conventions
<type>(<scope>): <description>
# Types: feat, fix, refactor, test, docs, build, chore
# Scope: rust/ffi, java/composer, java/wpi, game-pack, docs, buildSource-tree checks
Review the intended Git index, including relative documentation links, without depending on ignored local files. A clean checkout must build and pass the gates.
Frontend checks
The editor and the docs site have their own gates in the same checkout:
- The editor builds fresh production wasm with
wasm-packand runs TypeScript, Vitest and the no-skip parity guard. The productiongui/wasm/web/package feeds the browser and desktop bundles. The commands are in its README. - The docs site uses Node 24. In
website/, install withSHARP_IGNORE_GLOBAL_LIBVIPS=1 npm ci, runnpm run checkagainst the root binding sources, then install Chromium and runnpm run test:uiagainst the static site. The browser gate covers navigation, production search, language tabs and copying, local fonts, and phone/desktop layout. It serves the existingwebsite/dist/without creating another build directory.
Editor parity tests read the binding sources from the monorepo, and TEMPO_CORE
selects another checkout. Missing inputs can skip tests, so check that the
required parity suites ran.
src/code/wpilibCppHeaders.test.ts compiles generated C++ (a biased auto in
both angle units, and the poses file) against each season’s real WPILib
headers. It runs a season only when TEMPO_WPILIB_CPP_HEADERS_2026 or
TEMPO_WPILIB_CPP_HEADERS_2027 names that season’s unpacked headers.
sh gradlew stageWpilibCppHeaders -PwpilibYear=<year> in java/ writes them
to java/build/cpp-dist/wpilib-headers, so copy each season out before staging
the other.
Website npm run check builds the site, checks routes and fragments, checks
API names in code fences, checks that every C++ fence is a snippet
tests/robot/cpp_docs compiles and runs (check:cpp-snippets), rejects
typographic punctuation in page prose
(check:glyphs), runs navigation and teaching-content contracts, and applies
the post-build budgets in scripts/budget.test.mjs (test:budget): linked
stylesheet, module script and HTML bytes per page, no inlined module script,
no web font, no search code or index before the palette opens, and sized WebP
candidates for every screenshot (docs site). Review
argument types, overloads, and runtime behavior against the binding source,
because the API checker only resolves names. Browser tests serve the existing
website/dist/ on a temporary port. TEMPO_DOCS_CHROMIUM_PATH selects an
installed Chromium executable. The docs style guide
lists prose and source-comment checks.
Robot example validation
The simulation protocol records the Java swerve scenario baselines, host-timing limits, and planner/collider differences. Keep each result with its tested commit, robot configuration, and environment.
Commands v2 and v3 isolation
Alpha-7 build includes commandsV2Test and commandsV3Test, and each task
removes the other framework JAR from its runtime classpath. V3 tests run the
actual alpha-7 scheduler headlessly, inject the robot clock and enabled mode,
and exercise routes, handoff, groups, hooks, recovery, cancellation and
chooser selection. The scheduler requires the JDK coroutine access flags
configured on those test tasks.
The 2026 and alpha-6 suites compile canonical tests against real Commands v2 without command-type rewriting. Test helpers convert commands only where private probes cross the neutral runtime and scheduler-port boundary. Alpha-7 translates the shared-runtime probes to neutral leaves, and its commandsV2Test and commandsV3Test tasks exercise the actual framework adapters. V2SourceCompatibilityTest compiles overloaded factory references, checks the bundle’s return types, and verifies that canonical v2 lifecycle probes extend WPILib Command. The unchanged swerve robot sources and TempoV2CompositionTest exercise the real v2 scheduler and HAL simulation.
V3 tests cover Tempo.coroutine in mixed groups, awaiting and forking Tempo commands, races, recovery across routes, scheduler-free updates, and cancellation during a nested coroutine. Error completion must not invoke onCancel, but Tempo cleanup still runs once. Inline bodies remain unexecuted until their step or hook starts, and v2 rejects them at freeze.
CommandFrameworkIsolationTest loads the built JAR with an isolated platform
classloader, probes either adapter and the no-framework case, resolves public
class signatures, and reproduces the robot-package scan performed by
OpModeRobot. Compile probes exercise both command APIs with the other JAR
removed, including lambda and method-reference overload selection. The POM
and generated vendordep must contain neither framework dependency and the
vendordep must not declare a framework conflict. This isolation coverage
follows the checks in
BLine-Lib v2027.0.0-beta.3.