CLI: keep prebuild key reports in record order #3692

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3692 into main
andrewpozdnakov7-jpg commented 2026-11-28 07:51:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:51:57Z.


VICTORY_PREBUILD_KEYS appends each row when a worker finishes. This means two reports for the same shader pack can differ even when every key and description matches.

Keep the record index with each diagnostic row and sort at write time. Compute records appear first, followed by graphics records, with numeric indices within each group. Skipped rows stay in their record positions.

On Windows, I ran the exact CLI with 2,048 generated records, comprising 1,928 keys and 120 skipped rows. Main produced five different byte sequences in five runs with eight workers. The patched report was byte-identical in all ten runs across one and eight workers. Sorting the original and patched files yielded the same complete rows. The unit test covers mixed compute and graphics entries with skipped records. All 19 CLI tests, strict app Clippy and the asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5538063285 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3692). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T07:51:57Z. --- `VICTORY_PREBUILD_KEYS` appends each row when a worker finishes. This means two reports for the same shader pack can differ even when every key and description matches. Keep the record index with each diagnostic row and sort at write time. Compute records appear first, followed by graphics records, with numeric indices within each group. Skipped rows stay in their record positions. On Windows, I ran the exact CLI with 2,048 generated records, comprising 1,928 keys and 120 skipped rows. Main produced five different byte sequences in five runs with eight workers. The patched report was byte-identical in all ten runs across one and eight workers. Sorting the original and patched files yielded the same complete rows. The unit test covers mixed compute and graphics entries with skipped records. All 19 CLI tests, strict app Clippy and the asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 07:54:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:54:50Z.


Windows CI passed at adb4822, including both Clippy configurations and the workspace tests. On this head, the 2,048-row generated report was byte-identical across ten runs with one and eight workers. Its keys, descriptions and reasons for skipped records matched main after sorting.

The next step is maintainer review.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236241551 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3692#issuecomment-7236241551). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T07:54:50Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46123149298/job/140911804908) passed at `adb4822`, including both Clippy configurations and the workspace tests. On this head, the 2,048-row generated report was byte-identical across ten runs with one and eight workers. Its keys, descriptions and reasons for skipped records matched main after sorting. The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3692:upstream-pr/3692'
git switch 'upstream-pr/3692'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3692'
git switch 'upstream-pr/3692'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3692'
git switch 'upstream-pr/3692'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3692'
git switch 'main'
git merge --squash 'upstream-pr/3692'
git switch 'main'
git merge --ff-only 'upstream-pr/3692'
git switch 'main'
git merge 'upstream-pr/3692'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!3692
No description provided.