Skip to content

Conversation

bobcallaway
Copy link
Member

if log index is 0 (or there are no hashes in an inclusion proof - which is possible only for the first entry in a log), we're not marshalling values to disk. The default values are implicit but I think being explicit here is better than omitting the value completely

Signed-off-by: Bob Callaway <bcallaway@google.com>
@bobcallaway bobcallaway requested a review from a team as a code owner April 11, 2025 13:17
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.25%. Comparing base (488eb97) to head (8529817).
Report is 367 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2438       +/-   ##
===========================================
- Coverage   66.46%   25.25%   -41.21%     
===========================================
  Files          92      192      +100     
  Lines        9258    24874    +15616     
===========================================
+ Hits         6153     6283      +130     
- Misses       2359    17815    +15456     
- Partials      746      776       +30     
Flag Coverage Δ
e2etests 46.62% <0.00%> (-0.94%) ⬇️
unittests 16.49% <100.00%> (-31.20%) ⬇️

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.

Checkpoint: swag.String("checkpoint"),
Hashes: []string{},
LogIndex: swag.Int64(0),
RootHash: swag.String("abcdefaa"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to find the commit now, but are we handling an empty log root hash by providing the default sha256([]byte{})?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah we return #1311, that's fine

@haydentherapper haydentherapper merged commit 4118a64 into sigstore:main Apr 11, 2025
16 checks passed
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.

2 participants