Reject incomplete vkback live event batches #246
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!246
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-246"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Omar-Alme on GitHub · 2026-12-02 15:59 UTC · original
Omar-Alme:stability/reject-truncated-live-batches→main· +62 −10 · 4 files · 1 commits · merged 2026-12-02 17:36 UTCWhat
Addresses the
docs/TASKS.md“Event stream” work.Decoder::decodeused to silently stop when a final header or payload was incomplete; the fixed-size SLOTS and WRITTEN parsers also ignored partial trailing records. It now rejects incomplete framing. The Unix live list stage logs the malformed batch and uses its existing renderer-stop/drain path, andLive::batchlogs and drops the invalid batch instead of presenting it as valid.Reference
There is no D3D12 counterpart for this recorder-to-renderer wire framing. This hardens vkback's VICREC02 event consumer; it does not claim to implement the broader one-definition/one-decode task.
Evidence
cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkback --lib live::liststage::tests: 4 passed. The new test truncates a valid event batch at every byte boundary and checks incomplete SLOTS/WRITTEN records after a valid event.cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkbackpassed with host display/GPU access; the six vkback policy tests passed.cargo test --manifest-path greenfield/wine/Cargo.toml -j 6 --locked -p vkback-unixpassed;cargo clippywith--all-targets -- -D warningspassed for bothvkbackandvkback-unix.@vktory6 on GitHub · 2026-12-02 17:37 UTC · original
Merged, thanks: a truncated event batch is rejected loudly instead of silently stopping short.