Repository navigation
test: validate five-language truck interoperability (A5) - #127
Merged
Merged
Conversation
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.
Closes #103
Adds a reproducible black-box matrix in which C99, C++ owning, C++/C storage, Python and Go each produce actual BRF files, and every consumer checks every populated/default field and re-encodes those files byte for byte. All truck bindings come from the unchanged authoritative
examples/truck/schemas/configuration.brdroot. Expected IDs and values are explicit public-contract fixtures; no compiler layout or identity implementation is an oracle.Coverage and controls
9200ca494f010801b830d0857cf66ddeagrees across all five generated bindings,--print-schema-id,--describe, and both QBS images. It remains separate from native per-namespace gid.0x00010000is introduced.public_examples_testfor the A4.5 A/B application in all five variants: each revision decodes its own bytes, EngineStatus retains0x00050001, and revision B's MirrorFold has0x00030002.Mutation evidence
Negative controls require their expected normal error exits; signals and runtime-fault diagnostics cannot count as rejection. Mutation results and consumer diagnostics are retained in
report.json; these do not rely on unrelated compilation errors. The configuration-import and gid compilation failures above are additional independent controls.Validation
Final head:
875c277a8a2489be0089bc201a072296c7943410.scripts/quarry-validate validate HEAD: 72/72 CTest entries passed; 526.1 seconds including configure/build/CTest (CTest: 519.63 seconds), with two build/test slots and GOMAXPROCS=2.-Wall -Wextra -Wpedantic -Wshadow -Werror.scripts/quarry-validate push.The final-head CI artifact contains reports, command logs and exchanged BRF streams. The matrix prints the readable grid and writes fixture-level expected/observed IDs, byte/decode outcomes, toolchain/runtime availability, skip reasons, mutations and wall time to
build/*/interop-matrix/report.json(or the explicit work directory). CI requires all five variants, gives the host runner ownership of Docker-created evidence before upload, uploads reports/command logs/BRF streams, and executes a separate Clang 18 matrix. Added native matrix time: 34.77 seconds in the final two-slot native suite. Linux GCC adds 16.62 seconds for the matrix; Clang 18 adds 17.322 seconds for the matrix and about 42 seconds for its complete configure/build/matrix step. Coverage passed 67/67 entries in 193.14 seconds. Final-head Cortex-M, artifact upload, GCC LTO and clang-tidy all passed. The new C++ probe has zero clang-tidy diagnostics; optional views are unwrapped through an explicit shared presence guard. A previous local run timed out across a confirmed 25-minute macOS thermal-emergency sleep; the unchanged suite passed after reducing CPU concurrency.Boundaries and remaining limitations
Nine files change: matrix driver/adapters/model/configuration checks, the C++ generic probe, matrix README, enum fixture, CTest registration and CI wiring. Compiler backends, runtime sources/APIs/epochs, formats, IR, record allocation and both identity encodings are unchanged. The experimental FQN-hash branch is preserved.
Python/Go have configuration guards but no native per-namespace gid API; that capability is reported N/A, not invented or counted as a passing gid test. Missing Go yields explicit SKIP cells locally; CI's require-all mode makes it fatal. No matrix rows are skipped in the reported five-toolchain runs. The C++ QBS probe uses the existing source-tree tooling API, not a new installed runtime surface. Source-file equality after reordered imports is intentionally not required (#90). This targeted Clang 18 run does not claim to resolve the unrelated full-suite issue #85. General C renaming #119, A6 and release publication remain out of scope.