fix(adapters): iceoryx2 spin real-time guard + fluvio test marker#402
Open
0-jake-0 wants to merge 1 commit into
Open
fix(adapters): iceoryx2 spin real-time guard + fluvio test marker#4020-jake-0 wants to merge 1 commit into
0-jake-0 wants to merge 1 commit into
Conversation
…ests Two adapter-skill compliance fixes: - iceoryx2: the Spin subscriber called `state.always_callback()` without guarding against historical mode, so a backtest would busy-spin against a live IPC socket instead of erroring. Add the `run_mode() != RealTime` bail guard the spin-loop pattern prescribes, matching the FIX spin source. - fluvio Python tests: replace the `@unittest.skipUnless(FLUVIO_AVAILABLE)` TCP-probe with a `requires_fluvio` pytest marker so the live-cluster tests fail loudly under `-m requires_fluvio` instead of silently skipping (and never falsely green the default run). Register the marker and add it to the default deselect list.
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.
Part 1 of 4 from an adapter compliance review against the
new-adapterskill. These are the two high-severity behavioral findings.1. iceoryx2 spin mode does not reject non-real-time runs
Iceoryx2ReceiverNode::start()calledstate.always_callback()inSpinmode without checking the run mode. AHistoricalFrom(backtest) run would therefore busy-spin against a live IPC socket instead of failing fast. The skill's spin-loop pattern (step 7) requires arun_mode() != RealTimebail guard, which the FIX spin source already has.Added the guard at both
Spinstart()sites iniceoryx2/read.rs(typed + slice subscribers):2. fluvio Python tests silently skip
test_fluvio.pygated its live-cluster suites with@unittest.skipUnless(FLUVIO_AVAILABLE, ...)driven by a TCP probe — the exact "never silently skip" anti-pattern the skill forbids (step 13.f). With norequires_fluviomarker registered, the defaultpytestrun could be falsely green against a down cluster.skipUnlessdecorators with@pytest.mark.requires_fluvio.fluvio_available()TCP probe and the now-unusedsocket/urllibimports.requires_fluviomarker inpyproject.tomland added it to the defaultaddoptsdeselect list, so live tests fail loudly under-m requires_fluvioand are skipped by default.The construction / unreachable unit suites are unchanged — they still run by default with no marker.
Verification
cargo check -p wingfoil --features iceoryx2passes.cargo fmt --allclean.python -m py_compile tests/test_fluvio.pypasses; no stale probe references remain; marker registered in bothmarkersandaddopts.https://claude.ai/code/session_01JLqvwSW8V4xPpvxV1vwXuX
Generated by Claude Code