Skip to content

Refactor bundle state handling and add padded tuple index test - #443

Open
hermabr wants to merge 1 commit into
mainfrom
bundle-state-refactor
Open

Refactor bundle state handling and add padded tuple index test#443
hermabr wants to merge 1 commit into
mainfrom
bundle-state-refactor

Conversation

@hermabr

@hermabr hermabr commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Refactors result bundle save/load flow to use dedicated dump/load state objects.
  • Consolidates wrapper encoding/decoding helpers and reduces repeated traversal logic for lists, tuples, sets, and objects.
  • Improves error path reporting for tuple loading with zero-padded indexes.
  • Adds regression coverage for constructor errors inside tuples.

Testing

  • Added test_tuple_load_reports_constructor_error_with_padded_index.
  • Verified manifest mutation still triggers a ValueError during load_result_bundle.
  • Verified the error message includes the padded path segment (03) and the underlying constructor validation message.
  • Not run: full test suite.

- Split dump and load state into dedicated helpers
- Factor out shared item, field, and wrapper encoding logic
- Preserve padded tuple index errors during load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant