Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test sway at commit and converge for unseen candidates #617

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

masih
Copy link
Member

@masih masih commented Sep 2, 2024

Test that a participant sways for unseen candidates at COMMIT and CONVERGE.

Part of #237

@masih masih requested review from Stebalien and Kubuxu September 2, 2024 16:05
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

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

Project coverage is 79.50%. Comparing base (a4deda5) to head (cb6794a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
emulator/host.go 71.42% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #617      +/-   ##
==========================================
- Coverage   79.76%   79.50%   -0.27%     
==========================================
  Files          52       52              
  Lines        4676     4689      +13     
==========================================
- Hits         3730     3728       -2     
- Misses        593      604      +11     
- Partials      353      357       +4     
Files with missing lines Coverage Δ
emulator/driver.go 88.37% <100.00%> (+0.56%) ⬆️
emulator/driver_assertions.go 100.00% <100.00%> (ø)
gpbft/ticket_rank.go 84.61% <ø> (ø)
emulator/host.go 77.77% <71.42%> (-1.17%) ⬇️

... and 6 files with indirect coverage changes

@Kubuxu
Copy link
Contributor

Kubuxu commented Sep 3, 2024

The codecov claims that CONVERGE sway is not hit.

@masih masih marked this pull request as draft September 3, 2024 15:32
@masih masih removed request for Stebalien and Kubuxu September 3, 2024 15:33
@masih masih force-pushed the masih/test-sway-commit-converge branch from c60226a to 0c1cc1e Compare September 3, 2024 20:11
@masih masih marked this pull request as ready for review September 3, 2024 20:26
@masih masih requested review from Stebalien and Kubuxu September 3, 2024 20:26
@masih masih force-pushed the masih/test-sway-commit-converge branch from 0c1cc1e to d3ba304 Compare September 3, 2024 20:33
@masih
Copy link
Member Author

masih commented Sep 3, 2024

OK this is ready for another look; please let me know if you can think of a simpler way to test sway at CONVERGE. thanks

@Kubuxu
Copy link
Contributor

Kubuxu commented Sep 3, 2024

What is the source of non-determinism? I think it should be only the chain seed, which leads to beacons.

@masih
Copy link
Member Author

masih commented Sep 3, 2024

What is the source of non-determinism?

Order of chainsupport map for committed state, and consequently candidate inclusion in tryConverge which determines whether we sway at CONVERGE or not.

@Kubuxu
Copy link
Contributor

Kubuxu commented Sep 4, 2024

Order of chainsupport map for committed state

That seems counter to the comment there, as the comment states that there should be only one.

@masih
Copy link
Member Author

masih commented Sep 4, 2024

That seems counter to the comment there, as the comment states that there should be only one.

Right. If i have not missed anything I think that would only hold if this is fixed.

@masih masih force-pushed the masih/test-sway-commit-converge branch from d3ba304 to f185974 Compare September 4, 2024 17:25
@Stebalien Stebalien enabled auto-merge September 5, 2024 18:09
@Stebalien Stebalien added this pull request to the merge queue Sep 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 5, 2024
@Stebalien Stebalien enabled auto-merge September 5, 2024 20:26
@masih masih force-pushed the masih/test-sway-commit-converge branch 2 times, most recently from d84abb1 to e727697 Compare September 6, 2024 08:35
Test that a participant sways for unseen candidates at `COMMIT` and
`CONVERGE`.

Part of #237
@masih masih force-pushed the masih/test-sway-commit-converge branch from e727697 to cb6794a Compare September 6, 2024 08:35
@Stebalien Stebalien added this pull request to the merge queue Sep 6, 2024
Merged via the queue into main with commit ca3d33a Sep 6, 2024
13 checks passed
@Stebalien Stebalien deleted the masih/test-sway-commit-converge branch September 6, 2024 09:04
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