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

feat(contracts)!: gateway integration #1934

Merged
merged 738 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 248 commits
Commits
Show all changes
738 commits
Select commit Hold shift + click to select a range
bf437be
fix tabs
StanislavBreadless Nov 20, 2024
80cc84f
restore offline chain creation
StanislavBreadless Nov 20, 2024
dcf228e
Merge pull request #12 from matter-labs/sb-gateway-upgrade-test
StanislavBreadless Nov 21, 2024
81d51d8
fix unit tests
StanislavBreadless Nov 21, 2024
3c7e218
lint
StanislavBreadless Nov 21, 2024
b5fdee5
use latest contracts
StanislavBreadless Nov 21, 2024
8405765
fix block revert tool
StanislavBreadless Nov 21, 2024
c5d6707
fix gateway parsing
StanislavBreadless Nov 21, 2024
08e0ac1
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 21, 2024
19addb6
fix ci
StanislavBreadless Nov 21, 2024
5f9e9e8
fix ci
StanislavBreadless Nov 21, 2024
cd35e47
fix review
StanislavBreadless Nov 22, 2024
0dc031e
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 22, 2024
6cc55d8
correct place for switch
StanislavBreadless Nov 22, 2024
9dc357b
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 22, 2024
360e617
more logs
StanislavBreadless Nov 22, 2024
01c0c6b
fix unit test
StanislavBreadless Nov 23, 2024
44bb63a
lint
StanislavBreadless Nov 23, 2024
e37f0f9
debug logs
StanislavBreadless Nov 24, 2024
ff7c196
fix gateway url
StanislavBreadless Nov 24, 2024
3915373
feat: support validiums in 'zkstack'
dimazhornyk Nov 25, 2024
dd9edee
Merge pull request #15 from matter-labs/sb-restore-revert-test
StanislavBreadless Nov 25, 2024
0216130
remove unneeded prints
StanislavBreadless Nov 25, 2024
7c41e4a
Merge branch 'sync-layer-stable' into sb-fix-offline-chain-creation
StanislavBreadless Nov 25, 2024
73aeb6b
fix deny
StanislavBreadless Nov 25, 2024
264a84c
Merge pull request #16 from matter-labs/sb-fix-offline-chain-creation
StanislavBreadless Nov 25, 2024
6d3ddab
Merge main upstream
perekopskiy Nov 28, 2024
1e48f16
fix revert test
perekopskiy Nov 28, 2024
4b6aefc
fix upgrade test
perekopskiy Nov 28, 2024
e28660e
override foundry for unit tests
perekopskiy Nov 28, 2024
f4cbcca
Merge pull request #19 from matter-labs/mp-merge-main
perekopskiy Nov 28, 2024
62c776e
fix revert test
perekopskiy Nov 28, 2024
515f1d0
Merge pull request #20 from matter-labs/fix-revert-test
perekopskiy Nov 28, 2024
bf13e04
update contracts; remove "Reinstall foundry" step
perekopskiy Nov 28, 2024
083b9a9
update foundry in build jobs
perekopskiy Nov 29, 2024
f442bab
upd contracts
perekopskiy Nov 29, 2024
2720f7e
Merge pull request #22 from matter-labs/use-new-foundry-version
perekopskiy Nov 29, 2024
387bd20
ci-prover
perekopskiy Nov 29, 2024
4a2ac17
uncomment others
perekopskiy Nov 29, 2024
815fa9a
fix protobuf
perekopskiy Nov 29, 2024
0ab2fc3
fix
perekopskiy Nov 29, 2024
a48631b
fix
perekopskiy Nov 29, 2024
b850012
update PROVER_PROTOCOL_VERSION
perekopskiy Nov 29, 2024
b725237
fixes
dimazhornyk Nov 30, 2024
056e539
uncomment test suites
perekopskiy Dec 2, 2024
7b48a14
change expected tx type (caused by sdk version update 6.9->6.12)
perekopskiy Dec 2, 2024
700aac4
tests pass
StanislavBreadless Dec 2, 2024
9f0e19a
getFilterChanges test: provide explicit nonces
perekopskiy Dec 2, 2024
e996649
tests pass 2
StanislavBreadless Dec 2, 2024
91f896e
build all contracts for vm bench
perekopskiy Dec 2, 2024
23d317a
patch another test
perekopskiy Dec 2, 2024
90f7158
prover test: rename gateway -> prover gateway
perekopskiy Dec 2, 2024
6ec34ea
local gateway testing notes
StanislavBreadless Dec 2, 2024
2b830bc
fix run benchmarks on PR
perekopskiy Dec 2, 2024
5628145
temporarily disable e2e-for-prover
perekopskiy Dec 2, 2024
5d006fd
upd contracts with fmt
StanislavBreadless Dec 2, 2024
ae35b98
sync with upstream
StanislavBreadless Dec 2, 2024
a482849
update sdk
perekopskiy Dec 2, 2024
aaaf865
Merge pull request #23 from matter-labs/restore-tests
perekopskiy Dec 2, 2024
679d7b8
fix compile
StanislavBreadless Dec 2, 2024
d2f02ed
clean up etc/etv/configs
perekopskiy Dec 2, 2024
2913a64
remove diff from infrastructure/zk
perekopskiy Dec 2, 2024
6c1a731
return isLocalHost back
perekopskiy Dec 2, 2024
4c67b19
enable skipped test
perekopskiy Dec 2, 2024
5bfaaf4
update gen file
StanislavBreadless Dec 2, 2024
b7b483e
sync with main
StanislavBreadless Dec 2, 2024
9d2e0b7
remove debug stuff from context-owner.ts
perekopskiy Dec 2, 2024
c3dcca7
remove unused package
perekopskiy Dec 2, 2024
88627d4
sync with main + update
StanislavBreadless Dec 2, 2024
77facb7
clean up env.ts
perekopskiy Dec 2, 2024
4b37c2a
upgrade wip
StanislavBreadless Dec 2, 2024
a7c5923
rustfmt
StanislavBreadless Dec 2, 2024
0462463
better contracts
StanislavBreadless Dec 2, 2024
d8e6acd
int tests pass
StanislavBreadless Dec 3, 2024
4e1a2de
upd comment
perekopskiy Dec 3, 2024
c544a6d
enable some skipped tests
perekopskiy Dec 3, 2024
b5a0486
contracts
StanislavBreadless Dec 3, 2024
9525b52
provide L1DAValidator as a parameter to L1Deploy script
dimazhornyk Dec 3, 2024
db59f41
resolve conflicts
dimazhornyk Dec 3, 2024
763727a
update contracts
dimazhornyk Dec 3, 2024
0c3445b
wip
StanislavBreadless Dec 3, 2024
599f5a9
add secrets handling
dimazhornyk Dec 3, 2024
b0dcf03
fmt
dimazhornyk Dec 3, 2024
4fda43b
add comment
perekopskiy Dec 3, 2024
826801a
fix lint
dimazhornyk Dec 3, 2024
d888294
remove todo
perekopskiy Dec 3, 2024
02cae17
restore old logic
perekopskiy Dec 3, 2024
47ecef0
ignore ptr_arg lint error
dimazhornyk Dec 3, 2024
7d0221f
wip
StanislavBreadless Dec 3, 2024
65f7b95
add islocalhost
perekopskiy Dec 3, 2024
aad83f0
wait for block finalization
perekopskiy Dec 3, 2024
9dff181
return promise from `then`
perekopskiy Dec 3, 2024
a48a129
fix + nit
perekopskiy Dec 3, 2024
60a0745
upgrade works
StanislavBreadless Dec 3, 2024
511c790
local testing docs
StanislavBreadless Dec 3, 2024
a751f59
add validium-type flag
dimazhornyk Dec 3, 2024
fa440e9
Merge pull request #26 from matter-labs/clean-up-sync-stable
perekopskiy Dec 3, 2024
1e915c9
fix autocomplete
dimazhornyk Dec 3, 2024
32f46d3
upd contracts
dimazhornyk Dec 3, 2024
eba4830
fix test for validium pubdata
dimazhornyk Dec 3, 2024
a60348d
tmp
perekopskiy Dec 4, 2024
2156a91
tmp
perekopskiy Dec 5, 2024
86fe35b
use da client type instead of pubdata_type
dimazhornyk Dec 5, 2024
6181052
fix proto
dimazhornyk Dec 5, 2024
2917d51
fix
dimazhornyk Dec 5, 2024
87b7508
sqlx prepare + some fixes
dimazhornyk Dec 5, 2024
f24d79d
fix unused import
dimazhornyk Dec 5, 2024
977dc12
remove exclamation mark in query
dimazhornyk Dec 5, 2024
ad47031
upgrade stage3 works
perekopskiy Dec 10, 2024
cb61de9
merge main
perekopskiy Dec 10, 2024
0e4b403
bring pubdata_type back
dimazhornyk Dec 10, 2024
16fb79b
Merge pull request #30 from matter-labs/merge-with-main
perekopskiy Dec 10, 2024
5e0fcb5
Merge branch 'main-upstream' into sync-layer-stable
perekopskiy Dec 10, 2024
a21d89e
resolve conflict
perekopskiy Dec 10, 2024
4fc5274
fix test
dimazhornyk Dec 10, 2024
dc8a9ad
combine all the fields in pubdata_type
dimazhornyk Dec 10, 2024
89a7cf4
fix test
dimazhornyk Dec 10, 2024
4d9ef77
remove unused import
dimazhornyk Dec 10, 2024
c9cc675
use new index for proto
dimazhornyk Dec 10, 2024
c1304be
rename field
dimazhornyk Dec 10, 2024
c2a6ad1
resolve conflicts
perekopskiy Dec 10, 2024
9c6860e
fmt
perekopskiy Dec 10, 2024
cd81894
remove debug stuff
perekopskiy Dec 10, 2024
70bd91d
rename Validium to NoDA
dimazhornyk Dec 10, 2024
1d30a8a
clean up
perekopskiy Dec 11, 2024
cb37d1b
contracts
perekopskiy Dec 11, 2024
d8f61ff
update genesis
perekopskiy Dec 11, 2024
dbe91ef
update autocompletion
perekopskiy Dec 11, 2024
bd9b736
use u256 instead of string to define the DA Validator type
dimazhornyk Dec 11, 2024
7d72eed
upd contracts
dimazhornyk Dec 11, 2024
ef51d06
fmt
dimazhornyk Dec 11, 2024
6f3da17
try fix
perekopskiy Dec 11, 2024
c7f42b0
rename validium_type to da_validator_type
dimazhornyk Dec 11, 2024
481772e
update sdk
perekopskiy Dec 12, 2024
0d11d27
update tests
perekopskiy Dec 12, 2024
05bf9c1
fix gw ctm owner
perekopskiy Dec 12, 2024
f0ab48f
fmt
perekopskiy Dec 12, 2024
86992cb
Merge pull request #29 from matter-labs/mp-upgrade-script
perekopskiy Dec 12, 2024
6c9e85c
merge main
perekopskiy Dec 12, 2024
60d054a
rework sl_chain_config config
perekopskiy Dec 13, 2024
44155cf
rename settlement_layer -> gateway_chain_id, remove field from contra…
perekopskiy Dec 13, 2024
94e686c
fix tests
perekopskiy Dec 13, 2024
08a7eb4
fix test
perekopskiy Dec 13, 2024
2dc3f99
resolve conflicts
dimazhornyk Dec 13, 2024
0429d5d
fmt
dimazhornyk Dec 13, 2024
ad6c07b
remove method
perekopskiy Dec 13, 2024
22613fd
fix conflicts
dimazhornyk Dec 13, 2024
d4ee77e
Merge pull request #31 from matter-labs/rework-sl-chain-id-config
perekopskiy Dec 13, 2024
962a6b2
Merge pull request #25 from matter-labs/dz-support-validiums-in-zkstack
dimazhornyk Dec 13, 2024
fa4d517
remove settlement_layer_url from api config; remove get_l1_processing…
perekopskiy Dec 13, 2024
44ac0ba
Merge pull request #32 from matter-labs/remove-get_l1_processing_details
perekopskiy Dec 13, 2024
40c42ba
feat: Merge gateway release candidate 2 + enable loadtest (#33)
StanislavBreadless Dec 17, 2024
d8e205e
sync main with sls
StanislavBreadless Dec 17, 2024
c489c9f
fix protobuf
StanislavBreadless Dec 17, 2024
6253a7c
first round of cleanup
StanislavBreadless Dec 18, 2024
168faff
more clenaup
StanislavBreadless Dec 18, 2024
3da4f79
return old config name
StanislavBreadless Dec 18, 2024
fa83edd
remove unused function
StanislavBreadless Dec 18, 2024
4f09340
same contracts as in sls
StanislavBreadless Dec 18, 2024
af17e9b
feat: Migrate back to public repo (#34)
StanislavBreadless Dec 18, 2024
e8b245e
Merge branch 'sb-sync-main-sls' into sb-additional-server-cleanup
StanislavBreadless Dec 18, 2024
3f4e4a7
Merge pull request #3402 from matter-labs/sync-layer-stable-dev
StanislavBreadless Dec 19, 2024
9f65dbd
Merge branch 'sync-layer-stable' into sb-sync-main-sls
StanislavBreadless Dec 19, 2024
05ad8a0
fix lint/tests
StanislavBreadless Dec 19, 2024
8f25cc6
Merge branch 'sb-sync-main-sls' into sb-additional-server-cleanup
StanislavBreadless Dec 19, 2024
69ea2c6
Merge pull request #3404 from matter-labs/sb-sync-main-sls
StanislavBreadless Dec 19, 2024
e2ce995
use old admin
StanislavBreadless Dec 19, 2024
c8f4371
upd contracts
StanislavBreadless Dec 19, 2024
a59e48e
fix using old admin
StanislavBreadless Dec 19, 2024
227beac
fmt
StanislavBreadless Dec 19, 2024
9052bed
fix ci
StanislavBreadless Dec 19, 2024
16a3ddd
remove public inner field for l2chainid
StanislavBreadless Dec 19, 2024
4fc96db
correct setting token setter
StanislavBreadless Dec 19, 2024
dd4e254
upd contracts
StanislavBreadless Dec 19, 2024
78f8edd
Merge branch 'sync-layer-stable' into sb-additional-server-cleanup
StanislavBreadless Dec 19, 2024
7fb08cf
fmt
StanislavBreadless Dec 19, 2024
3f3436a
more cleanup
StanislavBreadless Dec 20, 2024
cf3dc83
upd contracts
StanislavBreadless Dec 20, 2024
133709a
fix zkstack
StanislavBreadless Dec 20, 2024
8b568b8
maybe fix ci
StanislavBreadless Dec 20, 2024
7c1b816
latest contracts
StanislavBreadless Dec 20, 2024
553f5b6
sync with main + fix aggregator
StanislavBreadless Dec 20, 2024
87e2b51
fix commitment
StanislavBreadless Dec 20, 2024
7036882
fix ci 2
StanislavBreadless Dec 20, 2024
1b5d362
fix env unit test
StanislavBreadless Dec 20, 2024
068dfe6
try fix ci 3
StanislavBreadless Dec 20, 2024
757ef37
remove contracts unit tests
StanislavBreadless Dec 20, 2024
4ce1496
Merge branch 'sb-additional-server-cleanup' into sb-sync-sls-main
StanislavBreadless Dec 20, 2024
2d4068d
fix custom token tests
StanislavBreadless Dec 30, 2024
b81ecae
fix zkstack compile
StanislavBreadless Dec 30, 2024
8ae5f0e
fix lint
StanislavBreadless Dec 30, 2024
3c1214c
upd genesis version
StanislavBreadless Dec 30, 2024
2571efc
Merge branch 'sb-additional-server-cleanup' into sb-sync-sls-main
StanislavBreadless Dec 30, 2024
1a3ded0
partial fix lint
StanislavBreadless Dec 30, 2024
0d33633
chore: Additional gateway server cleanup (#3405)
StanislavBreadless Dec 30, 2024
92ec539
sync with base
StanislavBreadless Dec 30, 2024
f0719ec
Merge branch 'main' into sb-sync-sls-main
StanislavBreadless Dec 30, 2024
eaa2e1c
upd contracts
StanislavBreadless Dec 30, 2024
bda79c9
reduce diff with main
StanislavBreadless Dec 30, 2024
abbbec0
rename contract
StanislavBreadless Dec 30, 2024
9c5135f
return back the change
StanislavBreadless Dec 30, 2024
e0ad669
correct initialization of the legacy bridge
StanislavBreadless Dec 30, 2024
7994924
lint fix
StanislavBreadless Dec 30, 2024
a47ba46
fix genesis params
StanislavBreadless Dec 30, 2024
a9b65be
Merge pull request #3408 from matter-labs/sb-sync-sls-main
StanislavBreadless Dec 31, 2024
ed83709
chore: Remove some of the wrong changes (#3417)
StanislavBreadless Jan 2, 2025
66fe82d
sync with main
StanislavBreadless Jan 5, 2025
13e8d76
make int tests pass
StanislavBreadless Jan 5, 2025
54e8e8a
fix lint
StanislavBreadless Jan 5, 2025
672f56b
fmt
StanislavBreadless Jan 5, 2025
c04251b
fix lint
StanislavBreadless Jan 6, 2025
52a44fe
Merge pull request #3423 from matter-labs/sb-sync-sls-main-2
StanislavBreadless Jan 6, 2025
7583174
feat: sync with main (#3430)
perekopskiy Jan 6, 2025
3399e57
Merge branch 'main' into sync-layer-stable
perekopskiy Jan 7, 2025
c16ace5
chore: sync layer stable clean up (#3431)
perekopskiy Jan 7, 2025
c69dac8
feat: sync with main (#3438)
perekopskiy Jan 8, 2025
3ada827
Merge branch 'main' into sync-layer-stable
perekopskiy Jan 8, 2025
4faceb9
fix
perekopskiy Jan 8, 2025
ecf5e24
fix
perekopskiy Jan 8, 2025
664d9c8
remove unused dep
perekopskiy Jan 8, 2025
7305879
upd prover version
perekopskiy Jan 8, 2025
de5bf7c
feat: Added tx hashes to upgrade yaml, disabled no_governance_prepare…
mm-zk Jan 9, 2025
2d5dcd0
sync with upstream
StanislavBreadless Jan 10, 2025
c1b1282
rustfmt
StanislavBreadless Jan 10, 2025
fd42554
fix avail da
StanislavBreadless Jan 10, 2025
ec6a219
fix validium creation
StanislavBreadless Jan 10, 2025
e957f88
autocompletion lint
StanislavBreadless Jan 10, 2025
1f1cbf0
Merge pull request #3450 from matter-labs/sb-sync-main-sls-2
StanislavBreadless Jan 10, 2025
9445a68
feat: Additional gateway upgrade testing (#3449)
StanislavBreadless Jan 10, 2025
9aa8412
chore: Optional gateway via feature flag (#3455)
StanislavBreadless Jan 10, 2025
aaa7f03
ci: finalize ci for sync layer stable (#3451)
StanislavBreadless Jan 13, 2025
4a67c91
resolve conflict
perekopskiy Jan 13, 2025
79d04ee
remove ci on push
perekopskiy Jan 13, 2025
abe67fe
try fix vm perf job
perekopskiy Jan 13, 2025
4131537
tmp: add -v
perekopskiy Jan 13, 2025
4ab3202
debug
perekopskiy Jan 13, 2025
947fa76
feat(contracts): Bump contracts to use new compiler version (#3467)
koloz193 Jan 14, 2025
0c0eb65
try type 2 tx
perekopskiy Jan 14, 2025
0b5f532
revert changelog
perekopskiy Jan 14, 2025
e0927aa
update mutlivm bootloaders commit
perekopskiy Jan 14, 2025
033e054
fix contracts commit
perekopskiy Jan 14, 2025
0cffae9
more type 2
perekopskiy Jan 14, 2025
3334235
more type 2
perekopskiy Jan 14, 2025
d691f7e
fix contracts; run_on_all_chains fee test
perekopskiy Jan 14, 2025
6a11687
try fix
perekopskiy Jan 14, 2025
0a45dcb
fix
perekopskiy Jan 14, 2025
e782fa6
debug
perekopskiy Jan 14, 2025
ece5850
new fflonk commitments
StanislavBreadless Jan 14, 2025
7306ae0
remove debug
perekopskiy Jan 14, 2025
ee14cb4
change folder for the local gateway upgrade testing
StanislavBreadless Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
380 changes: 204 additions & 176 deletions .github/workflows/ci-core-reusable.yml

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions .github/workflows/ci-zk-toolbox-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,92 +78,92 @@ jobs:
ci_localnet_up
ci_run sccache --start-server

- name: Initialize ecosystem
run: |
ci_run git config --global --add safe.directory /usr/src/zksync
ci_run git config --global --add safe.directory /usr/src/zksync/contracts/system-contracts
ci_run git config --global --add safe.directory /usr/src/zksync/contracts
# - name: Initialize ecosystem
# run: |
# ci_run git config --global --add safe.directory /usr/src/zksync
# ci_run git config --global --add safe.directory /usr/src/zksync/contracts/system-contracts
# ci_run git config --global --add safe.directory /usr/src/zksync/contracts

ci_run zk_inception ecosystem init --deploy-paymaster --deploy-erc20 \
--deploy-ecosystem --l1-rpc-url=http://reth:8545 \
--server-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
--server-db-name=zksync_server_localhost_era \
--prover-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
--prover-db-name=zksync_prover_localhost_era \
--ignore-prerequisites --verbose \
--observability=false

- name: Create and initialize chain
run: |
ci_run zk_inception chain create \
--chain-name chain_rollup \
--chain-id sequential \
--prover-mode no-proofs \
--wallet-creation localhost \
--l1-batch-commit-data-generator-mode rollup \
--base-token-address 0x0000000000000000000000000000000000000001 \
--base-token-price-nominator 1 \
--base-token-price-denominator 1 \
--set-as-default true \
--ignore-prerequisites

ci_run zk_inception chain init \
--deploy-paymaster \
--l1-rpc-url=http://reth:8545 \
--server-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
--server-db-name=zksync_server_localhost_rollup \
--prover-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
--prover-db-name=zksync_prover_localhost_rollup

- name: Check Database
run: |
ci_run zk_supervisor database check-sqlx-data

- name: Run server
run: |
ci_run zk_inception server --ignore-prerequisites &>server.log &
ci_run sleep 5

- name: Run integration tests
run: |
ci_run zk_supervisor test integration --ignore-prerequisites --verbose

- name: Init external node server
run: |
ci_run zk_inception external-node configs --db-url=postgres://postgres:notsecurepassword@postgres:5432 \
--db-name=zksync_en_localhost_era --l1-rpc-url=http://reth:8545
ci_run zk_inception external-node init --ignore-prerequisites

- name: Run recovery tests (from snapshot)
run: |
ci_run zk_supervisor test recovery --snapshot --ignore-prerequisites --verbose
# ci_run zk_inception ecosystem init --deploy-paymaster --deploy-erc20 \
# --deploy-ecosystem --l1-rpc-url=http://reth:8545 \
# --server-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
# --server-db-name=zksync_server_localhost_era \
# --prover-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
# --prover-db-name=zksync_prover_localhost_era \
# --ignore-prerequisites --verbose \
# --observability=false

# - name: Create and initialize chain
# run: |
# ci_run zk_inception chain create \
# --chain-name chain_rollup \
# --chain-id sequential \
# --prover-mode no-proofs \
# --wallet-creation localhost \
# --l1-batch-commit-data-generator-mode rollup \
# --base-token-address 0x0000000000000000000000000000000000000001 \
# --base-token-price-nominator 1 \
# --base-token-price-denominator 1 \
# --set-as-default true \
# --ignore-prerequisites

# ci_run zk_inception chain init \
# --deploy-paymaster \
# --l1-rpc-url=http://reth:8545 \
# --server-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
# --server-db-name=zksync_server_localhost_rollup \
# --prover-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
# --prover-db-name=zksync_prover_localhost_rollup

# - name: Check Database
# run: |
# ci_run zk_supervisor database check-sqlx-data

# - name: Run server
# run: |
# ci_run zk_inception server --ignore-prerequisites &>server.log &
# ci_run sleep 5

# - name: Run integration tests
# run: |
# ci_run zk_supervisor test integration --ignore-prerequisites --verbose

# - name: Init external node server
# run: |
# ci_run zk_inception external-node configs --db-url=postgres://postgres:notsecurepassword@postgres:5432 \
# --db-name=zksync_en_localhost_era --l1-rpc-url=http://reth:8545
# ci_run zk_inception external-node init --ignore-prerequisites

# - name: Run recovery tests (from snapshot)
# run: |
# ci_run zk_supervisor test recovery --snapshot --ignore-prerequisites --verbose

- name: Run recovery tests (from genesis)
run: |
ci_run zk_supervisor test recovery --ignore-prerequisites --verbose
# - name: Run recovery tests (from genesis)
# run: |
# ci_run zk_supervisor test recovery --ignore-prerequisites --verbose

- name: Run external node server
run: |
ci_run zk_inception external-node run --ignore-prerequisites &>external_node.log &
ci_run sleep 5
# - name: Run external node server
# run: |
# ci_run zk_inception external-node run --ignore-prerequisites &>external_node.log &
# ci_run sleep 5

- name: Run integration tests en
run: |
ci_run zk_supervisor test integration --ignore-prerequisites --verbose --external-node
# - name: Run integration tests en
# run: |
# ci_run zk_supervisor test integration --ignore-prerequisites --verbose --external-node

- name: Run revert tests
run: |
ci_run zk_supervisor test revert --ignore-prerequisites --verbose
# - name: Run revert tests
# run: |
# ci_run zk_supervisor test revert --ignore-prerequisites --verbose

- name: Run revert tests (external node)
run: |
ci_run zk_supervisor test revert --external-node --ignore-prerequisites --verbose
# - name: Run revert tests (external node)
# run: |
# ci_run zk_supervisor test revert --external-node --ignore-prerequisites --verbose

# This test should be the last one as soon as it
# finished bootloader will be different
- name: Run upgrade test
run: |
ci_run zk_supervisor test upgrade
# - name: Run upgrade test
# run: |
# ci_run zk_supervisor test upgrade

- name: Show server.log logs
if: always()
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- staging
- trying
- sync-layer-stable # adding this branch here to run CI on it regardless of the conflicts
- '!release-please--branches--**'

concurrency:
Expand Down Expand Up @@ -115,17 +116,17 @@ jobs:
name: CI for Common Components (prover or core)
uses: ./.github/workflows/ci-common-reusable.yml

build-core-images:
name: Build core images
needs: changed_files
if: ${{ (needs.changed_files.outputs.core == 'true' || needs.changed_files.outputs.all == 'true') && !contains(github.ref_name, 'release-please--branches') }}
uses: ./.github/workflows/build-core-template.yml
with:
image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
action: "build"
secrets:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
# build-core-images:
# name: Build core images
# needs: changed_files
# if: ${{ (needs.changed_files.outputs.core == 'true' || needs.changed_files.outputs.all == 'true') && !contains(github.ref_name, 'release-please--branches') }}
# uses: ./.github/workflows/build-core-template.yml
# with:
# image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
# action: "build"
# secrets:
# DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

build-tee-prover-images:
name: Build TEE Prover images
Expand Down Expand Up @@ -185,7 +186,8 @@ jobs:
name: Github Status Check
runs-on: ubuntu-latest
if: always() && !cancelled()
needs: [ci-for-core-lint, ci-for-common, ci-for-core, ci-for-prover, ci-for-docs, build-core-images, build-contract-verifier, build-prover-images]
#TODO return build-core-images
needs: [ci-for-core-lint, ci-for-common, ci-for-core, ci-for-prover, ci-for-docs, build-contract-verifier, build-prover-images]
steps:
- name: Status
run: |
Expand Down
74 changes: 37 additions & 37 deletions .github/workflows/protobuf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,43 +36,43 @@ jobs:
- uses: mozilla-actions/[email protected]

# before
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
ref: ${{ env.BASE }}
path: before
fetch-depth: 0 # fetches all branches and tags, which is needed to compute the LCA.
- name: checkout LCA
run:
git checkout $(git merge-base $BASE $HEAD)
working-directory: ./before
- name: compile before
run: cargo check --all-targets
working-directory: ./before/
- name: build before.binpb
run: >
perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/'
`find ./before/target/debug/build/*/output`
| xargs cat > ./before.binpb
# - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
# with:
# ref: ${{ env.BASE }}
# path: before
# fetch-depth: 0 # fetches all branches and tags, which is needed to compute the LCA.
# - name: checkout LCA
# run:
# git checkout $(git merge-base $BASE $HEAD)
# working-directory: ./before
# - name: compile before
# run: cargo check --all-targets
# working-directory: ./before/
# - name: build before.binpb
# run: >
# perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/'
# `find ./before/target/debug/build/*/output`
# | xargs cat > ./before.binpb

# after
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
ref: ${{ env.HEAD }}
path: after
- name: compile after
run: cargo check --all-targets
working-directory: ./after
- name: build after.binpb
run: >
perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/'
`find ./after/target/debug/build/*/output`
| xargs cat > ./after.binpb
# - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
# with:
# ref: ${{ env.HEAD }}
# path: after
# - name: compile after
# run: cargo check --all-targets
# working-directory: ./after
# - name: build after.binpb
# run: >
# perl -ne 'print "$1\n" if /PROTOBUF_DESCRIPTOR="(.*)"/'
# `find ./after/target/debug/build/*/output`
# | xargs cat > ./after.binpb

# compare
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: buf breaking
run: >
buf breaking './after.binpb' --against './before.binpb' --exclude-path 'zksync/config/experimental.proto'
--config '{"version":"v1","breaking":{"use":["WIRE_JSON","WIRE"]}}' --error-format 'github-actions'
# # compare
# - uses: bufbuild/buf-setup-action@v1
# with:
# github_token: ${{ github.token }}
# - name: buf breaking
# run: >
# buf breaking './after.binpb' --against './before.binpb' --exclude-path 'zksync/config/experimental.proto'
# --config '{"version":"v1","breaking":{"use":["WIRE_JSON","WIRE"]}}' --error-format 'github-actions'
Loading
Loading