Skip to content

feat: add checkpointing into the backfill so we can resume from the l…#2762

Open
knrc wants to merge 1 commit intosigstore:mainfrom
knrc:sigstore_checkpointing
Open

feat: add checkpointing into the backfill so we can resume from the l…#2762
knrc wants to merge 1 commit intosigstore:mainfrom
knrc:sigstore_checkpointing

Conversation

@knrc
Copy link

@knrc knrc commented Feb 23, 2026

…ast completed, contiguous index

Closes #2279

Summary

This pull request adds support for checkpointing the progress of the backfill process, allowing the process to resume from the last known, contiguous index. This addresses the issue of the backfill reprocessing information from the beginning each time it runs.

Release Note

Added support for checkpointing progress during the backfill operation, rerunning the backfill will resume from the last known, contiguous index instead of starting at the beginning.

Documentation

…ast completed, contiguous index

Signed-off-by: Kevin Conner <kev.conner@gmail.com>
@knrc knrc requested a review from a team as a code owner February 23, 2026 20:58
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 0% with 158 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.03%. Comparing base (488eb97) to head (63b3c04).
⚠️ Report is 650 commits behind head on main.

Files with missing lines Patch % Lines
cmd/backfill-index/main.go 0.00% 158 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2762       +/-   ##
===========================================
- Coverage   66.46%   26.03%   -40.43%     
===========================================
  Files          92      191       +99     
  Lines        9258    20236    +10978     
===========================================
- Hits         6153     5269      -884     
- Misses       2359    14138    +11779     
- Partials      746      829       +83     
Flag Coverage Δ
e2etests 49.49% <ø> (+1.93%) ⬆️
unittests 16.63% <0.00%> (-31.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hayden-IO
Copy link
Contributor

@knrc Could we simply write a log index periodically to disk to simplify this? Backfilling is idempotent, so we don't need to be overly precise with the latest index.

@knrc
Copy link
Author

knrc commented Mar 7, 2026

@knrc Could we simply write a log index periodically to disk to simplify this? Backfilling is idempotent, so we don't need to be overly precise with the latest index.

Yes, that's possible but I felt it would be better to keep the checkpoint within the same storage so they are managed together. The code is already taking advantage of the idempotency when tracking/updating the checkpoint, and does expect to replay on out of sequence updates or errors.

@Hayden-IO
Copy link
Contributor

Given the amount of code needed for this, I'd strongly prefer a much simpler solution, especially given the shift to Rekor v2.

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.

Avoid reprocessing data in backfill-index.

2 participants