Event format is defined twice (vicrec and victory-gpu record.rs) #240
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#240
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@TheRifai on GitHub · 2026-12-02 15:23 UTC · original
Finding (TASKS "Event stream", line 952)
Seen on: main
963df8e(code read). The format is defined twice:greenfield/vicrec/src/event.rs(kinds,MAGIC,Entryviaentries!) andcrates/victory-gpu/src/record.rs(the sameCALL..SAME,SLOTS,MAGIC, and a separateEntryenum).vicrec/src/event.rseven says "Copied fromrecord.rs(kinds,Entry,each_event)". A new event kind has to be added in both places, and the twoEntryenums can drift (vicrec hasBarrierGroups = 47etc., record.rs has its own list).I did not merge them:
victory-gpuis a Windows crate in the root workspace and has no dependency on the greenfieldvicreccrate, so the fix is a cross-workspace dependency move, not a local edit. It needs a decision about which side owns the format before any code change (docs/AGENTS.md rule on coupling). No code change from me.Next
Decide the owner (vicrec in greenfield, or a small shared crate in crates/), then re-export one definition and delete the duplicate, with a policy test that both sides agree on the numbers.
@vktory6 on GitHub · 2026-12-02 16:13 UTC · original
Thanks. It's in the TASKS item "Event stream" (
github.com/vktory6/VKtory@7c1ba48), and #235 is the PR that shares the kinds and entry numbers. Closing here; #235 is reviewed separately.