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

POS-2399: ganache bug workaround to reduce smoke_test time in CI #1141

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

marcello33
Copy link
Contributor

@marcello33 marcello33 commented Mar 5, 2024

Description

Often, the checkpoints submission during the e2e tests in the CI takes a very long time (35+ mins) due to lack of funds in ganache accounts (with index > 0), which ends up in checkpoints submission failure, and subsequent rotation until it's accounts[0] turn.
This PR introduces a new script to fund the ganache accounts right before the e2e tests, to reduce the checkpoint submission time from 35+ mins to around 2 mins.

Changes

  • 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)
  • Changes only for a subset of nodes

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply

Testing

  • I have added unit tests
  • I have added tests to CI
  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on mumbai
  • I have created new e2e tests into express-cli

@marcello33 marcello33 changed the base branch from master to develop March 5, 2024 09:53
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.59%. Comparing base (0c70e02) to head (35eec66).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1141   +/-   ##
========================================
  Coverage    76.59%   76.59%           
========================================
  Files           53       53           
  Lines         5922     5922           
========================================
  Hits          4536     4536           
  Misses        1128     1128           
  Partials       258      258           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcello33 marcello33 requested a review from a team March 5, 2024 14:12
@marcello33 marcello33 merged commit 864a5ae into develop Mar 5, 2024
12 checks passed
marcello33 added a commit that referenced this pull request May 23, 2024
…1141)

* chg: POS-2399: ganache bug workaround to reduce smoke_test time

* chg: POS-2399: add echo log

* chg: POS-2399: fix signer dump path

* chg: POS-2399: log info

* chg: POS-2399: fix script with proper signersDump length

* chg: POS-2399: better comment
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.

None yet

3 participants