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

Revive race detection flag and race conditions fixes in the test execution #1963

Merged

Conversation

Stefan-Ethernal
Copy link
Contributor

Description

This PR revives #1925, but removes race detector flag when building a binary.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

Manual tests

Please complete this section if you ran manual tests for this functionality, otherwise delete it

Documentation update

Please link the documentation update PR in this section if it's present, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it

@Stefan-Ethernal Stefan-Ethernal marked this pull request as ready for review October 6, 2023 07:56
@Stefan-Ethernal Stefan-Ethernal requested a review from a team October 6, 2023 07:56
@Stefan-Ethernal Stefan-Ethernal self-assigned this Oct 6, 2023
@Stefan-Ethernal Stefan-Ethernal requested a review from a team October 6, 2023 11:38
Stefan-Ethernal and others added 8 commits October 6, 2023 13:59
* Provide race and shuffle flags

* Fix race condition in TestBlockchain_VerifyBlockParent test

* Fix race conditions in Test_TxPool_validateTx

* Capture loop variable

* Fix TestAddTxsInOrder

* Linter fixes

* Fix TestBlockchain_VerifyBlockBody race conditions

* Fix Test_VerifySignature_NegativeCases

* Fix TestDropKnownGossipTx

* Retrieve tx hash in a thread safe manner

* Fix TestStatusPubSub race condition

* Fix peers_test

* Fix Test_newTracer

* Provide race flag when building binary and running fuzz tests

* Fix data races in fund and deposit_erc20 commands

* Fix TestEventSubscription_ProcessedEvents

* Fix TestSimpleGossip (hopefully)

* Fix data race in e2e tests (txRelayer.SendTransactionLocal)

* Avoid race conditions in ibft/signer package

* Increase timeout in TestEventSubscription_ProcessedEvents

* Fix TestResetAccounts_Enqueued flakiness

* Remove race flags from e2e and property tests

* Update command/bridge/deposit/erc20/deposit_erc20.go

Co-authored-by: Victor Castell <victor@polygon.technology>

* Fix transaction.Copy function

---------

Co-authored-by: Victor Castell <victor@polygon.technology>
@Stefan-Ethernal Stefan-Ethernal temporarily deployed to devnet October 6, 2023 14:16 — with GitHub Actions Inactive
@Stefan-Ethernal Stefan-Ethernal temporarily deployed to devnet October 6, 2023 14:33 — with GitHub Actions Inactive
@Stefan-Ethernal Stefan-Ethernal temporarily deployed to devnet October 6, 2023 14:46 — with GitHub Actions Inactive
@Stefan-Ethernal Stefan-Ethernal temporarily deployed to devnet October 6, 2023 14:59 — with GitHub Actions Inactive
@Stefan-Ethernal Stefan-Ethernal merged commit 6f263f8 into develop Oct 6, 2023
18 checks passed
@Stefan-Ethernal Stefan-Ethernal deleted the EVM-854-revive-race-detection-during-testing branch October 6, 2023 15:14
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants