-
Notifications
You must be signed in to change notification settings - Fork 475
Geth migrations, rebased #11593
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
base: release/core-contracts/17
Are you sure you want to change the base?
Geth migrations, rebased #11593
Changes from all commits
2751b9d
9f0b773
3aba928
b8ba230
3a9f12a
aed6f6e
c2f2dcd
257ab0a
9f7e5ce
bf5eb60
a67b701
69002a3
dc439bb
f14527e
8359a52
534731b
60d047b
623c56a
a719701
fd374e6
c4b7d39
880a001
e399ab5
6337b3c
251d622
553b14d
4ad9001
2b02011
e9005b0
42b28ca
6d0d2e1
4ae4b76
54a71ef
87ca89c
19c2af6
351d0dd
2c5b2c9
d393c5a
fbe88d2
082c159
f2baef8
06c8866
6ea49d0
0a5c8c5
38c63c3
e7ab870
2553a3d
8ba6470
107de12
d6cc7b7
511adcf
3b9ad7d
2963ee8
a286c43
41b1e08
9a4612e
39d2c56
811366e
bd4be1e
1bbed8c
2635163
c14376f
f0b09b7
3461f59
4490f7b
7383f0a
75b2160
06fb208
607a2a4
580ae33
199646c
063dd7b
36a2120
bb77e23
50bf1f0
54ebada
0fc17a5
c2012f3
0b7c250
a98e1d5
a1a3ad6
f9a28b2
a94db19
4986589
656d425
8c47f9e
1605bef
ee244f9
e13e441
37f7627
b3431a1
cb3196a
bde840f
f9230b0
67cc404
f283373
89aaeef
814bde0
75e6397
29a28b1
51e37d1
398ad1b
d8ec2f8
27745fa
01186a0
2ee0aa1
e7ec468
7ee8409
3d11c56
8c94793
5a5919e
9f4950d
806cece
8c7d2eb
c8745ca
43f6c09
0eee43a
b946a5a
683a1dd
c47a739
01df42e
67cbf10
4456f4a
a6a3584
397eda6
1d18cde
d189fc6
62283fe
5e3fb0f
78f9695
ea7b5db
ce3f0e2
0221619
ae6c263
e030bb5
9875630
84121d2
036ef0f
cf0f41d
dcbe303
9d9284b
110b60d
57fe2cf
7d741aa
6e8f8bf
a644fb7
a57cda7
d6073b6
4a4323f
b973a62
c0dcab4
7698c39
2a29e53
30dcdb8
2f21269
a46299c
fc5060e
69b8775
c45dcad
2fbac60
2284222
1741051
dd272bf
bfa6bb2
f0848ff
55924b0
9e00e81
f621567
0cf35ed
559a34e
d1b6213
407e459
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,8 @@ jobs: | |
| defaults: | ||
| run: | ||
| working-directory: packages/protocol | ||
| name: Lint checks | ||
| runs-on: ubuntu-latest | ||
| name: Run tests | ||
| runs-on: ['self-hosted', 'org', 'ubuntu22-node18'] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
|
|
@@ -55,7 +55,6 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Fail if there are test with wrong extension | ||
| if: success() || failure() | ||
| run: | | ||
|
|
@@ -77,9 +76,12 @@ jobs: | |
| path: packages/protocol/out | ||
| key: ${{ runner.os }}-foundry-out-${{ env.FOUNDRY_CACHE_KEY }} | ||
| - name: Install Foundry | ||
| uses: foundry-rs/foundry-toolchain@v1 | ||
| # foundry-toolchain v1.7.0 https://github.com/foundry-rs/foundry-toolchain/releases/tag/v1.7.0 | ||
| uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 | ||
|
Mc01 marked this conversation as resolved.
martinvol marked this conversation as resolved.
|
||
| with: | ||
| version: 'v1.0.0' # TODO: revert back to env var | ||
| # TODO: Standardize Foundry version across workflows https://github.com/celo-org/celo-monorepo/issues/11714 | ||
| version: 'v1.5.0' | ||
|
martinvol marked this conversation as resolved.
|
||
|
|
||
| - name: Install forge dependencies | ||
| run: forge install | ||
| - name: Compile Contracts | ||
|
|
@@ -184,7 +186,7 @@ jobs: | |
| - name: Restore script permissions | ||
| run: chmod +x scripts/foundry/*.sh | ||
| - name: Generate migrations and run devchain | ||
| run: ./scripts/foundry/create_and_migrate_anvil_l2_devchain.sh | ||
| run: ./scripts/foundry/create_and_migrate_anvil_devchain.sh | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This step now runs the L1/L2-combined migration script without Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This job now invokes Useful? React with 👍 / 👎. |
||
| - name: Run migration tests against local anvil devchain | ||
| run: | | ||
| source ./scripts/foundry/constants.sh | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,4 +56,4 @@ broadcast/ | |
| out-truffle-compat-0.8 | ||
| out-truffle-compat | ||
|
|
||
| opencode.json | ||
| opencode.json | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow now runs migrations via
LOAD_STATE=... create_and_migrate_anvil_devchain.sh, but that script no longer exports a final snapshot intopackages/protocol/.tmp(the previousdevchain.json/l2-devchain.jsonwriteout path was removed). Since the publish job uploads.tmpdirectly, the npm artifact can be published without a usable chain state file, breaking consumers that expect to start anvil from the package contents.Useful? React with 👍 / 👎.