Skip to content

Conversation

@Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Jun 13, 2024

No description provided.

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu changed the title Feed F3 from EC chain and boostrap Feed F3 from EC chain and bootstrap Jun 13, 2024
@codecov
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.89%. Comparing base (fa9cc6d) to head (1a50e3e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #341      +/-   ##
==========================================
- Coverage   82.92%   82.89%   -0.04%     
==========================================
  Files          15       15              
  Lines        1687     1695       +8     
==========================================
+ Hits         1399     1405       +6     
- Misses        168      169       +1     
- Partials      120      121       +1     
Files Coverage Δ
gpbft/powertable.go 86.66% <ø> (ø)
gpbft/chain.go 90.41% <84.61%> (-0.90%) ⬇️

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu requested a review from Stebalien June 13, 2024 20:59
@github-actions
Copy link

Fuzz test failed on commit ee91787. To troubleshoot locally, download the seed corpus using GitHub CLI by running:

gh run download 9506669726 -n testdata

Aleternatively, download directly from here.

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu marked this pull request as ready for review June 14, 2024 16:12
@Kubuxu Kubuxu requested a review from Stebalien June 14, 2024 16:12
@github-actions
Copy link

Fuzz test failed on commit cd30c14. To troubleshoot locally, download the seed corpus using GitHub CLI by running:

gh run download 9519124339 -n testdata

Aleternatively, download directly from here.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Code LGTM except that one thing about the certificate store.

powerEntries, err = h.client.certstore.GetPowerTable(h.runningCtx, instance)
if err != nil {
// this fires every round, is this correct?
h.log.Infof("failed getting power table from certstore: %v, falling back to EC", err)
Copy link
Member

Choose a reason for hiding this comment

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

We should never see an error here as long as we've already inserted the certificate for the previous instance. I wonder if we have an off-by-one somewhere? Or are we not inserting the cert?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is always off by one in the error message

Copy link
Member

Choose a reason for hiding this comment

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

What's the specific message and/or can I reproduce it somehow?

Copy link
Member

Choose a reason for hiding this comment

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

OH! It's from here:

go-f3/host.go

Lines 314 to 317 in cd30c14

next, _, err := h.GetCommitteeForInstance(instance + 1)
if err != nil {
return xerrors.Errorf("getting commitee for next instance %d: %w", instance+1, err)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one: https://github.com/filecoin-project/go-f3/blob/main/certstore/certstore.go#L282

You can reproduce by running:
./f3 manifest gen and then ./f3 run --id=0 and ./f3 run --id=1 in two different terminals.

Co-authored-by: Steven Allen <steven@stebalien.com>
@Kubuxu Kubuxu added this pull request to the merge queue Jun 17, 2024
Merged via the queue into main with commit 650861a Jun 17, 2024
@Kubuxu Kubuxu deleted the feat/boostrap branch June 17, 2024 13:05
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.

3 participants