Deterministic Excel generation#982
Conversation
Generated Excel files are now always consistent when the data source is the same, save for the metadata of the zip entries.
There was a problem hiding this comment.
Code Review
This pull request updates the Zomp.SyncMethodGenerator package and refactors the OpenXml writer to support deterministic file generation by replacing random GUIDs with index-based IDs and minifying XML dynamically. The review feedback highlights a critical bug in GenerateWorkbookItems where a StringBuilder is declared outside a loop, causing drawing relationships to accumulate across sheets. Additionally, it is recommended to sort the content types dictionary by key to guarantee determinism.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
8af9562 to
0231b09
Compare
This PR addresses the niche problem of deterministic file generation, previously undermined by the assignment of random
Guidsto the ids of worksheets and drawings in their respective .rels files. The change implemented makes them sequential thus solving the issue.
Resolves #980