Skip to content
PalletLab
Testing and CI/CD

Testing and CI/CD

Robot software fails in expensive ways, so this project tests at every layer.

The test pyramid

LayerToolExamples
UnitGoogleTestinterval overlap, AABB intersection, support polygon, Eigen pose chaining
PropertyGoogleTest TEST_P300 random box sets: no overlaps, every box exactly once, every step passes every rule
SanitizersASan + UBSanthe full suite with memory and undefined-behaviour checks
BenchmarkGoogle Benchmark, benchtimings and greedy-vs-EP comparisons over fixed seeds
IntegrationROS 2 launch_testingstart the node, call /plan_pallet, check 38 of 40 cartons placed
Web unitVitestBM25 retrieval, AI failover, translation completeness
End-to-endPlaywrightEnglish and Japanese browsers, desktop and phone, simulator, docs, assistant

Property tests and oracles

Instead of checking one known answer, a property test asserts something that must hold for every input. The checks use an independent oracle, a brute-force O(n²) overlap scan that shares no logic with the packer, so a packer bug cannot hide behind itself.

TEST_P(ExtremePointSeeds, PlanIsValid) {
    const auto boxes = generateBoxes(50, GetParam());
    expectValidPlan(packExtremePoints(boxes), boxes);
}
INSTANTIATE_TEST_SUITE_P(Property, ExtremePointSeeds, ::testing::Range(1u, 101u));

Determinism as a feature

The same seed always produces the same plan, on macOS and Linux, natively and in WebAssembly. CI runs on both operating systems to prove it.

The pipeline

core (Linux + macOS) ─┐
sanitizers (ASan)  ───┼─▶ web (engine → WASM → build → Vitest → Playwright) ─▶ deploy
ros2 (Docker)      ───┘

Every push and pull request runs the whole pipeline; a red check blocks the merge, and deployment happens only when everything is green.