Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Aug 18, 2025

Related: #1417
Related: #573 (proper fix)

TODO

@patrick-ogrady patrick-ogrady marked this pull request as ready for review August 18, 2025 20:40
if tip_index >= target_index {
// Verify that validator has signed messages at all indices
for check_index in 0..=tip_index {
for check_index in 0..=target_index {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We just care about reaching tip_index...when restarts are fast enough, we only have everything signed up to tip_index by chance.

Copy link
Contributor Author

@patrick-ogrady patrick-ogrady Aug 18, 2025

Choose a reason for hiding this comment

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

TBH, I'm not sure how this test ever worked before because we destroy the reporter on each restart?

Copy link
Contributor Author

@patrick-ogrady patrick-ogrady Aug 18, 2025

Choose a reason for hiding this comment

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

Well, it didn't work because we just skipped missing signed messages 🙃 : #1425

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 more or less became a test of "can we iterate through tip_index values before timeout"

@patrick-ogrady patrick-ogrady marked this pull request as draft August 18, 2025 23:15
BrendanChou
BrendanChou previously approved these changes Aug 18, 2025
== self.crypto.public_key();
self.handle_finalize(finalize).await;
self.handle_finalize(finalize.clone()).await;
self.reporter.report(Activity::Finalize(finalize)).await;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possibly better to just put report inside of the handle_X functions?

Copy link
Contributor Author

@patrick-ogrady patrick-ogrady Aug 19, 2025

Choose a reason for hiding this comment

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

I decoupled the two because the batch verifier sends the report operation during "steady state" ASAP (we only issue reports from the voter for recovered broadcast).

Admittedly this is all a bit confusing (and am not in love with any of this reporting architecture atm).

@patrick-ogrady patrick-ogrady marked this pull request as ready for review August 19, 2025 18:24
@patrick-ogrady patrick-ogrady merged commit 0caf6ae into main Aug 19, 2025
36 checks passed
@patrick-ogrady patrick-ogrady deleted the replay-threshold-simplex branch August 19, 2025 19:09
@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 92.73743% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.72%. Comparing base (52c04a9) to head (80d4fbe).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
consensus/src/aggregation/engine.rs 85.71% 11 Missing ⚠️
consensus/src/aggregation/mocks/application.rs 87.50% 1 Missing ⚠️
consensus/src/aggregation/mod.rs 98.68% 1 Missing ⚠️
@@            Coverage Diff             @@
##             main    #1424      +/-   ##
==========================================
- Coverage   91.72%   91.72%   -0.01%     
==========================================
  Files         275      275              
  Lines       69392    69204     -188     
==========================================
- Hits        63651    63477     -174     
+ Misses       5741     5727      -14     
Files with missing lines Coverage Δ
consensus/src/aggregation/mocks/reporter.rs 90.56% <ø> (+5.24%) ⬆️
consensus/src/aggregation/types.rs 99.41% <ø> (ø)
...sensus/src/threshold_simplex/actors/voter/actor.rs 93.11% <100.00%> (+0.06%) ⬆️
consensus/src/aggregation/mocks/application.rs 40.62% <87.50%> (+8.95%) ⬆️
consensus/src/aggregation/mod.rs 97.91% <98.68%> (+1.10%) ⬆️
consensus/src/aggregation/engine.rs 83.07% <85.71%> (-1.21%) ⬇️

... and 9 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52c04a9...80d4fbe. Read the comment docs.

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

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