Skip to content

fix(consensus): TestReactorValidatorSetChanges#468

Merged
shotonoff merged 55 commits intov0.10-devfrom
fix-flaky-validator-test-golubev
Oct 4, 2022
Merged

fix(consensus): TestReactorValidatorSetChanges#468
shotonoff merged 55 commits intov0.10-devfrom
fix-flaky-validator-test-golubev

Conversation

@shotonoff
Copy link
Collaborator

@shotonoff shotonoff commented Sep 28, 2022

Issue being fixed or feature implemented

After implementation same-block execution the test TestReactorValidatorSetChanges became a flaky, we have to eliminate this behaviour to ensure that the code base is stable

What was done?

The main goal of this PR is to fix flaky behaviour of TestReactorValidatorSetChanges unit test,
along with this was added a few minor changes which should simplify the code base

How Has This Been Tested?

Unit test

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

lklimek and others added 30 commits September 9, 2022 16:59
As we add a tx to each block as part of vote extension logic,
we break other tests.
* refactor: remove commit ABCI call
@shotonoff shotonoff changed the title refactor: simplify VoteSet.GetByIndex method0 refactor(VoteSet): simplify VoteSet.GetByIndex method Sep 28, 2022
@shotonoff shotonoff changed the base branch from fix-flaky-validator-test to v0.10-dev October 4, 2022 08:30
@shotonoff shotonoff changed the base branch from v0.10-dev to fix-flaky-validator-test October 4, 2022 08:31
@shotonoff shotonoff changed the base branch from fix-flaky-validator-test to v0.10-dev October 4, 2022 09:27
@shotonoff shotonoff changed the base branch from v0.10-dev to sbe-e2e-fixes October 4, 2022 09:28
@shotonoff shotonoff changed the base branch from sbe-e2e-fixes to v0.10-dev October 4, 2022 09:29
@shotonoff shotonoff changed the title refactor(VoteSet): simplify VoteSet.GetByIndex method fix(consensus): TestReactorValidatorSetChanges Oct 4, 2022
}

func (app *Application) ProcessProposal(_ context.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) {
app.mu.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because of merge, by chance


// CheckTX implements ABCI
func (app *Application) CheckTx(_ context.Context, req *abci.RequestCheckTx) (*abci.ResponseCheckTx, error) {
app.mu.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because of merge, by chance

Copy link
Collaborator Author

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

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

revert mutex usage to ProcessProposal, CheckTx

@shotonoff shotonoff merged commit c35465e into v0.10-dev Oct 4, 2022
@shotonoff shotonoff deleted the fix-flaky-validator-test-golubev branch October 4, 2022 11:20
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