xihaian251 commented on PR #997:
URL: https://github.com/apache/burr/pull/997#issuecomment-6542168426

   I hit the same rollback failure while testing this branch, and reproduced it 
end to end. On 0.43.0 and on `main`, state written here that contains a tuple, 
set or frozenset fails at `SQLitePersister.load`, at 
`LocalTrackingClient.load`, and at `ApplicationBuilder.initialize_from` — `No 
deserializer registered for key: 'builtins.tuple'`. `burr.dict` from #934 has 
the same problem against 0.43.0, so a rollback can fail for either reason.
   
   Two details that might be worth adding next to the release note:
   
   - the failure is one-directional: state written by 0.43.0 still loads here, 
with tuples and sets as strings;
   - a dictionary written before #934 whose `__burr_serde__` value collides 
with one of the new keys is reinterpreted rather than rejected — that is the 
one upgrade-time case that fails silently.
   
   I put together a follow-up on top of `df118653`: nine regression tests and 
two documentation sections, no production changes. Three of the tests pin the 
envelope keys, because the round-trip tests would not notice a rename (renaming 
`builtins.tuple` in a scratch tree gives 1 failed / 13 passed — only the pin 
notices). The docs cover both envelope families, the legacy marker-dict case, 
and a read-only shim that lets an older process read newer state; it must not 
save afterwards, because it rewrites containers back to `str`.
   
   Patch, single commit, applies cleanly: 
https://gist.github.com/xihaian251/d8fe05f66bfd984dcb8584027dcd2e86
   
   @RishavTiwari25 feel free to take it or ignore it.
   
   One process note: `Build Burr` and `Release Validation` are still 
`action_required` on this PR, so nothing has run in CI. Approving them would 
cover `pre-commit --all-files` and the 3.9–3.12 matrix.
   
   *(The patch was prepared with AI assistance and verified locally — the 
numbers above come from running it, not from recall.)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to