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

Add sepolia option to L2 GH action scripts #1529

Merged
merged 6 commits into from
Sep 26, 2023
Merged

Conversation

BedrockSquirrel
Copy link
Collaborator

@BedrockSquirrel BedrockSquirrel commented Sep 17, 2023

Why this change is needed

Add sepolia-testnet as a third option in deploy and upgrade deployment scripts.

This will require updating of github secrets to provide infura API keys and to replace PKs with more securely guarded ones.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@BedrockSquirrel BedrockSquirrel changed the title dd sepolia option to L2 GH action scripts Add sepolia option to L2 GH action scripts Sep 17, 2023
Copy link
Collaborator

@tudor-malene tudor-malene left a comment

Choose a reason for hiding this comment

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

lgtm (but don't know much about this)

Copy link
Contributor

@otherview otherview left a comment

Choose a reason for hiding this comment

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

lgtm, would add a comment explaining the need of the duplicate l1ws

Comment on lines 42 to 43
L1_WS_URL_0: ${{ steps.outputVars.outputs.L1_WS_URL_0 }}
L1_WS_URL_1: ${{ steps.outputVars.outputs.L1_WS_URL_1 }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth adding a comment explaining the 2 WS

Copy link
Contributor

@otherview otherview left a comment

Choose a reason for hiding this comment

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

looks good 👍

@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 19, 2023 22:33 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 21, 2023 10:36 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 21, 2023 10:48 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 21, 2023 10:48 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 11:09 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 11:23 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 11:23 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 11:29 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 12:48 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 13:00 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 13:00 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 13:06 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 13:06 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 14:00 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 14:13 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 14:13 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 14:19 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 22, 2023 14:19 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 25, 2023 10:45 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 25, 2023 10:52 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 25, 2023 10:52 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to sepolia-testnet September 25, 2023 10:57 — with GitHub Actions Inactive
@@ -90,7 +90,7 @@ func (n *ContractDeployer) WaitForFinish() error {
defer cli.Close()

// make sure the container has finished execution
err = docker.WaitForContainerToFinish(n.containerID, 3*time.Minute)
err = docker.WaitForContainerToFinish(n.containerID, 10*time.Minute)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

3mins was sometimes too quick for sepolia, this script does quite a lot now with a few waits - don't think there's a need to rush it.

@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:33 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:47 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:47 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:53 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:54 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:54 — with GitHub Actions Inactive
@BedrockSquirrel BedrockSquirrel temporarily deployed to dev-testnet September 26, 2023 10:59 — with GitHub Actions Inactive
@@ -10,15 +10,15 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^2.0.0",
"@nomicfoundation/hardhat-toolbox": "~2.0.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixing these versions solved the docker image compile problem on main.

@BedrockSquirrel BedrockSquirrel merged commit 235d0a9 into main Sep 26, 2023
11 checks passed
@BedrockSquirrel BedrockSquirrel deleted the matt/sepolia-testnet branch September 26, 2023 12:46
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