Skip to content

Conversation

@Kubuxu
Copy link
Contributor

@Kubuxu Kubuxu commented Jun 19, 2024

Also fix a off-by-one in GetTipsetByEpoch

@Kubuxu Kubuxu requested review from Stebalien and masih June 19, 2024 13:30
@Kubuxu Kubuxu force-pushed the feat/wait-for-boostrap branch from 8dec701 to c898ac3 Compare June 19, 2024 13:31
@codecov
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.10%. Comparing base (ff4e7ed) to head (b7e417e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #354      +/-   ##
==========================================
- Coverage   83.20%   83.10%   -0.10%     
==========================================
  Files          15       15              
  Lines        1780     1782       +2     
==========================================
  Hits         1481     1481              
- Misses        174      175       +1     
- Partials      125      126       +1     
Files Coverage Δ
certstore/certstore.go 64.70% <100.00%> (-0.65%) ⬇️

@Kubuxu Kubuxu force-pushed the feat/wait-for-boostrap branch from c898ac3 to ac80fcc Compare June 19, 2024 13:34
@github-actions
Copy link

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

gh run download 9582906729 -n testdata

Aleternatively, download directly from here.

@github-actions
Copy link

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

gh run download 9582990060 -n testdata

Aleternatively, download directly from here.

@Kubuxu Kubuxu force-pushed the feat/wait-for-boostrap branch 2 times, most recently from e0e8ab7 to e8bef1b Compare June 19, 2024 15:01
@Kubuxu Kubuxu changed the title Wait for boostrap epoch Wait for boostrap epoch and boostrap CertStore power table from it Jun 19, 2024
@Kubuxu
Copy link
Contributor Author

Kubuxu commented Jun 19, 2024

@Stebalien this is a bit nasty, I need it to unblock me on lotus

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.

This will probably be fine given that nothing really happens outside of Run (assuming that's the case?). I don't like, but it'll probably be fine.

f3.go Outdated
select {
case <-time.After(aim):
case <-ctx.Done():
return nil
Copy link
Member

Choose a reason for hiding this comment

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

This should be an error.

}

// Run start the module. It will exit when context is cancelled.
func (m *F3) Run(initialInstance uint64, ctx context.Context) error {
Copy link
Member

Choose a reason for hiding this comment

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

unrelated, we should get the initial instance from the certificate store.

f3.go Outdated
ctx, cancel := context.WithCancel(ctx)
defer cancel()

if m.CertStore == nil {
Copy link
Member

Choose a reason for hiding this comment

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

Make the certstore private or someone will trip over it.

Kubuxu added 4 commits June 21, 2024 16:41
Also fix a off-by-one in GetTipsetByEpoch

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
@Kubuxu Kubuxu force-pushed the feat/wait-for-boostrap branch from ab1c684 to b7e417e Compare June 21, 2024 14:41
@Kubuxu Kubuxu enabled auto-merge June 21, 2024 14:57
@Kubuxu
Copy link
Contributor Author

Kubuxu commented Jun 21, 2024

Merging to unblock further work

@Kubuxu Kubuxu added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit 05664fd Jun 21, 2024
@Kubuxu Kubuxu deleted the feat/wait-for-boostrap branch June 21, 2024 15:14
@Kubuxu Kubuxu linked an issue Jun 22, 2024 that may be closed by this pull request
@Kubuxu Kubuxu mentioned this pull request Jun 22, 2024
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.

Bootstrap mechanism

3 participants