Skip to content

Add tooling to verify that pipeline caching works as intended - #310

Merged
HansKristian-Work merged 17 commits into
masterfrom
roundtrip-checker
Aug 5, 2026
Merged

Add tooling to verify that pipeline caching works as intended#310
HansKristian-Work merged 17 commits into
masterfrom
roundtrip-checker

Conversation

@HansKristian-Work

Copy link
Copy Markdown
Collaborator

When drivers hash unrelated PDF2s, stuff just breaks in the wild. Make tooling that could be run in a CI environment to catch such driver issues.

HansKristian-Work pushed a commit that referenced this pull request Aug 5, 2026
PR #308 (bucket-json-system, merged via 0ae323c) added
RESOURCE_BUCKET_INFO = 10 to the ResourceTag enum but did not
extend cli/fossilize_list.cpp's tag_names[] array. As a result:

  - fossilize-list --help listed 0..9 only, hiding tag 10.
  - fossilize-list --tag 10 (RESOURCE_COUNT=11, so the guard
    tag_uint >= RESOURCE_COUNT accepts it) failed with a generic
    'Failed to get hashes' log instead of listing tag 10.
  - fossilize-list --connectivity on a .foz containing
    RESOURCE_BUCKET_INFO entries hit an out-of-bounds read at
    tag_names[par.first] when par.first == 10.

Fix by appending 'bucketInfo' to tag_names[] and adding a
static_assert that sizeof(tag_names)/sizeof(tag_names[0]) ==
RESOURCE_COUNT. The static_assert catches the same class of
drift that e4ec0c1 (2025-11-10) fixed for computePipeline, so
this regression cannot recur silently.

This complements PR #308 without touching database storage,
the replayer, or PR #310 (roundtrip-checker, still Draft).

Refs: #308
@HansKristian-Work
HansKristian-Work marked this pull request as ready for review August 5, 2026 13:32
@HansKristian-Work
HansKristian-Work merged commit c774839 into master Aug 5, 2026
@HansKristian-Work
HansKristian-Work deleted the roundtrip-checker branch August 5, 2026 13:36
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