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 runtime shaving #526

Merged
merged 33 commits into from
May 6, 2022
Merged

Test runtime shaving #526

merged 33 commits into from
May 6, 2022

Conversation

zivkovicmilos
Copy link
Contributor

Description

This PR cuts down on the test runtime significantly.

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)

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

Additional comments

Fixes EDGE-383

* Optimize TestBroadcast

* Add AtomicErrors in e2e framework

* Fix lint error

* Change sync.Mutex to RWMutex in AtomicErrors
@zivkovicmilos zivkovicmilos marked this pull request as ready for review April 28, 2022 13:45
* Remove recursive submodule fetch from lint action

* Swap out the checkout version to v3

* Upgrade go setup action

* Remove useless go race build

* Add OS matrix strategy

* Remove matrix execution, as it offers little value for now

* Remove the verbose flag

* Bring back race builds
archive/backup_test.go Show resolved Hide resolved
jsonrpc/eth_state_test.go Show resolved Hide resolved
@0xAleksaOpacic
Copy link
Contributor

Can we remove this test and if needed add linear card for it

func TestDemote(t *testing.T) {

@0xAleksaOpacic
Copy link
Contributor

0xAleksaOpacic commented May 6, 2022

When i have started tests locally i am getting the error. Tried it 2 times, can you please check this
--- FAIL: TestState (0.00s)
state_test.go:122: open tests/GeneralStateTests: no such file or directory
--- FAIL: TestEVM (0.00s)
evm_test.go:146: open tests/VMTests: no such file or directory
FAIL

@zivkovicmilos
Copy link
Contributor Author

When i have started tests locally i am getting the error. Tried it 2 times, can you please check this --- FAIL: TestState (0.00s) state_test.go:122: open tests/GeneralStateTests: no such file or directory --- FAIL: TestEVM (0.00s) evm_test.go:146: open tests/VMTests: no such file or directory FAIL

@Aleksao998

Did you pull in the submodules?
git submodule update --init --recursive from the base of the repo

@zivkovicmilos
Copy link
Contributor Author

@Aleksao998

Removed the unused TestDemote:

3cd2919

cc @dbrajovic

Copy link
Contributor

@ZeljkoBenovic ZeljkoBenovic left a comment

Choose a reason for hiding this comment

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

Great job guys 🏅

I'm slapping this Approve so hard...

@zivkovicmilos zivkovicmilos merged commit 61e5829 into develop May 6, 2022
@zivkovicmilos zivkovicmilos deleted the feature/test-shaving branch May 6, 2022 13:05
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New update to Polygon Edge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants