Skip to content

fix(starfish): Fix tests test_restart_authority_committee #7957

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

Conversation

polinikita
Copy link
Member

@polinikita polinikita commented Jul 23, 2025

Description of change

We adapted the tests to the Starfish logic and significantly enhanced the tested scenario. Specifically, in the test test_restart_authority_committee() 4 validators start for some time and sequence some transactions. Then one validator restarts, while others advance the DAG and sequence new transactions. The restarted node should catch up, by making use of commit syncer and transaction syncer.

Links to any relevant issues

Fixes #7956

How the change has been tested

  • Basic tests (linting, compilation, formatting, unit/integration tests)
  • Patch-specific tests (correctness, functionality coverage)
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

Release Notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

@polinikita polinikita self-assigned this Jul 23, 2025
@polinikita polinikita added the consensus Issues related to the Core Consensus team label Jul 23, 2025
Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am
iota-evm-bridge ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am
iota-multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2025 11:29am

@polinikita polinikita marked this pull request as ready for review July 24, 2025 10:27
@polinikita polinikita requested a review from a team as a code owner July 24, 2025 10:27
@polinikita polinikita force-pushed the feat/starfish/fix_transaction_flow branch from d01ea2b to 4e90783 Compare July 24, 2025 10:38
@polinikita polinikita changed the title fix(starfish): Fix tests test_restart_authority_committee and subscriber_retries fix(starfish): Fix tests test_restart_authority_committee Jul 24, 2025
update test

add assert

fix subscriber test

update comments

enhance test
@polinikita polinikita force-pushed the feat/starfish/fix_transaction_flow branch from 4e90783 to 244fe01 Compare July 24, 2025 11:27
@polinikita polinikita merged commit 10b1aeb into consensus/feat/starfish-consensus Jul 24, 2025
35 of 37 checks passed
@polinikita polinikita deleted the feat/starfish/fix_transaction_flow branch July 24, 2025 16:50
NaitsabesMue pushed a commit that referenced this pull request Jul 28, 2025
# Description of change

We adapted the tests to the Starfish logic and significantly enhanced
the tested scenario. Specifically, in the test
`test_restart_authority_committee()` 4 validators start for some time
and sequence some transactions. Then one validator restarts, while
others advance the DAG and sequence new transactions. The restarted node
should catch up, by making use of commit syncer and transaction syncer.

## Links to any relevant issues

Fixes #7956

## How the change has been tested

- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have checked that new and existing unit tests pass locally with
my changes

### Release Notes

- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] Indexer:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
- [ ] REST API:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus Issues related to the Core Consensus team core-protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants