Skip to content

CI: Optimize devnet setup#599

Merged
temaniarpit27 merged 8 commits into
developfrom
raneet10/pos-534
Nov 30, 2022
Merged

CI: Optimize devnet setup#599
temaniarpit27 merged 8 commits into
developfrom
raneet10/pos-534

Conversation

@Raneet10

Copy link
Copy Markdown
Contributor

Description

Previously in CI, we had hardcoded wait time for bor to become operational before deploying the relevant contracts during devnet launch. This PR introduces constant monitoring of bor's status before contract deployment instead of a fixed wait period.

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)

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

@linear

linear Bot commented Nov 25, 2022

Copy link
Copy Markdown
POS-534 Optimize devnet setup

Currently, we hardcoded some wait time in the CI to wait for bor and heimdall to launch before deploying smart contracts.

Example:

sleep 120 && bash ganache-deployment-bor.sh

A problem with this approach is that the hardcoded time could be too long than it actually requires, or it could be too short if initialization time of bor increases in the future.

A better way to do this is to check the health of bor actively and remove 120 sleep time.

@Raneet10 Raneet10 requested a review from a team November 25, 2022 13:34
@temaniarpit27 temaniarpit27 merged commit ba58225 into develop Nov 30, 2022
@temaniarpit27 temaniarpit27 deleted the raneet10/pos-534 branch November 30, 2022 06:08
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.

3 participants