Repository navigation
feat: v2.12.0 — Test & Simulation Harness Rebuild (§Phase 14 milestone 56) - #51
Merged
Merged
Conversation
…e 56) Rebuilds rcp/mock.hpp and rcp/sim.hpp against the new TC18 stream/endpoint/register-map model, per the Satellite Package Disposition table's entries for these two files and ROADMAP.md milestone 56. mock::Server is an in-process RC Server simulator holding a real lifecycle::ServerLifecycle (v2.1.0), a real regmap::RegisterMap plus regmap::Ep0 (including EP0's whole-map read and root-client-gated whole-map write), and one instance each of gpio::GpioEndpoint and spi::SpiEndpoint (v2.3.0) as its representative endpoint set — GPIO and SPI were sequenced first in Phase 13 specifically for having the simplest fully-built request/response shapes. Server::dispatch is the single request/response entry point, decoding the standard request kind's evt[2:0]/op fields and gating GPIO/SPI operational traffic on the lifecycle being RCP_CONFIGURED. The old in-process Controller/Registry pair (Zone/Command-shaped) is preserved unchanged under rcp/legacy_mock.hpp, purely so the still-untouched old-model dependents that build against it keep working until each is rebound at its own later milestone: rcp/capi_impl.hpp, rcp/cli.hpp, and rcp/config.hpp (all v2.16.0 per the disposition table), plus every test file using it as a generic in-process test double for its own not-yet-rebuilt package. This is the same file-split precedent rcp/wire.hpp's rcp/legacy_wire.hpp established at v2.0.0 — REQ-CTRL-*/REQ-REG-*/REQ-RESP-*/REQ-STAT-*/ REQ-ERR-011 and their tests/test_mock.cpp coverage move to tests/test_legacy_mock.cpp unchanged. sim::Simulator wraps mock::Server with the latency/jitter modeling concept and Fault/Recover scenario controls carried forward from the discarded sim::Controller, re-targeted at the new request/response shapes, and wires watchdog-miss detection through rcp::watchdog::StreamWatchdog/Manager (v2.10.0) instead of the retired client-driven CommandType::Watchdog kick model. Nothing else depended on the old sim::Controller API, so no legacy shim was needed for sim.hpp. Neither new type spawns a background thread of its own, matching the "primitives, not a scheduler" convention every Phase 14 header has followed since v2.9.0/v2.10.0. New/rewritten coverage lives in tests/test_mock.cpp (REQ-MOCK-001..010, new) and tests/test_sim.cpp (REQ-SIM-001..007, entirely rewritten), traced in .fusa-reqs.json; the pre-replacement mock coverage lives on unchanged as tests/test_legacy_mock.cpp. Bumps kVersion/project version to 2.12.0. Updates ROADMAP.md with a Done (v2.12.0) summary for milestone 56. Signed-off-by: Matt <47545907+SoundMatt@users.noreply.github.com>
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.
Summary
Implements ROADMAP.md milestone 56, "Test & Simulation Harness Rebuild (v2.12.0)" — the last milestone of Phase 14 — per the Satellite Package Disposition table's entries for
mock.hppandsim.hpp.rcp/mock.hppis replaced in full withmock::Server: an in-process RC Server simulator holding a reallifecycle::ServerLifecycle(v2.1.0), a realregmap::RegisterMap+regmap::Ep0(whole-map read, root-client-gated whole-map write), and one instance each ofgpio::GpioEndpoint/spi::SpiEndpoint(v2.3.0) as its representative endpoint set.Server::dispatchis the single request/response entry point.rcp/sim.hppis replaced in full withsim::Simulator: wrapsmock::Serverwith the pre-replacement latency/jitter modeling concept and Fault/Recover controls, now wired torcp::watchdog::StreamWatchdog/Manager(v2.10.0) instead of the retired client-drivenCommandType::Watchdogkick. No background threads, matching every Phase 14 header's "primitives, not a scheduler" convention since v2.9.0/v2.10.0.Controller/Registrypair is preserved unchanged under newrcp/legacy_mock.hpp, the same split precedentrcp/wire.hpp→rcp/legacy_wire.hppestablished at v2.0.0 — purely so the still-untouched old-model dependents (rcp/capi_impl.hpp,rcp/cli.hpp,rcp/config.hpp, all v2.16.0 per the disposition table, plus ~16 test files using it as a generic test double for their own not-yet-rebuilt packages) keep building until each is rebound at its own later milestone.tests/test_mock.cpp(REQ-MOCK-001..010, new),tests/test_sim.cpp(REQ-SIM-001..007, entirely rewritten),tests/test_legacy_mock.cpp(pre-replacementREQ-CTRL-*/REQ-REG-*/REQ-RESP-*/REQ-STAT-*/REQ-ERR-011coverage moved unchanged), all traced in.fusa-reqs.json.kVersion/project version to 2.12.0; adds ROADMAP.md milestone 56's "Done (v2.12.0)" narrative.Test plan
cmake --build build --parallel(Debug, Clang and GCC) — clean, no new warnings beyond pre-existing ones carried into the unchanged, movedtest_legacy_mock.cppctest --test-dir build --output-on-failure— 60/60 tests pass (Debug + Release, two compilers)RELAY_BUILD_CLI=ONbuild —cpp-rcpbinary builds and runs (version/capabilities)rcp/legacy_mock.hppfusa:req/fusa:testtag in source against.fusa-reqs.json— fully consistent both directionscpfusabinary this sandbox doesn't have