Skip to content

Commit 471d67b

Browse files
authored
Merge branch 'main' into evl-unpin-cargo-deny
2 parents b466c53 + dcd3727 commit 471d67b

File tree

125 files changed

+2187
-1133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+2187
-1133
lines changed

.github/release-please/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"core": "24.21.0",
3-
"prover": "16.4.0",
2+
"core": "24.23.0",
3+
"prover": "16.5.0",
44
"zk_toolbox": "0.1.2"
55
}

.github/workflows/check-pr-title.yml

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Check PR title
22
on:
3-
pull_request_target:
3+
pull_request:
44
types:
55
- opened
66
- reopened
@@ -12,7 +12,38 @@ jobs:
1212
runs-on: ubuntu-latest
1313
permissions:
1414
statuses: write
15+
pull-requests: write
1516
steps:
16-
- uses: aslafy-z/conventional-pr-title-action@v3
17+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
18+
id: lint_pr_title
1719
env:
1820
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
23+
# When the previous steps fails, the workflow would stop. By adding this
24+
# condition you can continue the execution with the populated error message.
25+
if: always() && (steps.lint_pr_title.outputs.error_message != null)
26+
with:
27+
header: pr-title-lint-error
28+
message: |
29+
Hey there! 👋🏼
30+
31+
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
32+
Examples of valid PR titles:
33+
34+
- feat(eth_sender): Support new transaction type
35+
- fix(state_keeper): Correctly handle edge case
36+
- ci: Add new workflow for linting
37+
38+
Details:
39+
40+
```
41+
${{ steps.lint_pr_title.outputs.error_message }}
42+
```
43+
44+
# Delete a previous comment when the issue has been resolved
45+
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
46+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
47+
with:
48+
header: pr-title-lint-error
49+
delete: true

.github/workflows/ci-core-lint-reusable.yml

+20-15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
jobs:
66
code_lint:
7-
runs-on: [matterlabs-ci-runner]
7+
runs-on: [ matterlabs-ci-runner ]
88

99
steps:
1010
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
@@ -16,26 +16,31 @@ jobs:
1616
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
1717
echo $(pwd)/bin >> $GITHUB_PATH
1818
echo IN_DOCKER=1 >> .env
19+
echo "prover_url=postgres://postgres:notsecurepassword@postgres:5432/zksync_local_prover" >> $GITHUB_ENV
20+
echo "core_url=postgres://postgres:notsecurepassword@postgres:5432/zksync_local" >> $GITHUB_ENV
1921
2022
- name: Start services
2123
run: |
22-
mkdir -p ./volumes/postgres
23-
run_retried docker compose pull zk postgres
24-
docker compose up -d zk postgres
24+
ci_localnet_up
2525
ci_run sccache --start-server
2626
27-
- name: Setup db
27+
- name: Build
2828
run: |
29-
ci_run zk
30-
ci_run run_retried rustup show
31-
ci_run zk db migrate
29+
ci_run ./bin/zkt
30+
ci_run yarn install
31+
ci_run git config --global --add safe.directory /usr/src/zksync
32+
ci_run zk_supervisor db setup --prover-url=${{ env.prover_url }} --core-url=${{ env.core_url }}
33+
3234
3335
- name: Lints
3436
run: |
35-
ci_run zk fmt --check
36-
ci_run zk lint rust --check
37-
ci_run zk lint toolbox --check
38-
ci_run zk lint js --check
39-
ci_run zk lint ts --check
40-
ci_run zk lint md --check
41-
ci_run zk db check-sqlx-data
37+
ci_run zk_supervisor fmt --check
38+
ci_run zk_supervisor lint -t md --check
39+
ci_run zk_supervisor lint -t sol --check
40+
ci_run zk_supervisor lint -t js --check
41+
ci_run zk_supervisor lint -t ts --check
42+
ci_run zk_supervisor lint -t rs --check
43+
44+
- name: Check Database
45+
run: |
46+
ci_run zk_supervisor database check-sqlx-data --prover-url=${{ env.prover_url }} --core-url=${{ env.core_url }}

.github/workflows/ci-core-reusable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
ci_run zk test rust
6868
# Benchmarks are not tested by `cargo nextest` unless specified explicitly, and even then `criterion` harness is incompatible
6969
# with how `cargo nextest` runs tests. Thus, we run criterion-based benchmark tests manually.
70-
ci_run zk f cargo test --release -p vm-benchmark --bench criterion --bench fill_bootloader
70+
ci_run zk f cargo test --release -p vm-benchmark --bench oneshot --bench batch
7171
7272
loadtest:
7373
runs-on: [matterlabs-ci-runner]

.github/workflows/ci-zk-toolbox-reusable.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: ./.github/workflows/ci-core-lint-reusable.yml
1212

1313
build:
14-
runs-on: [matterlabs-ci-runner]
14+
runs-on: [ matterlabs-ci-runner ]
1515

1616
steps:
1717
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
@@ -48,8 +48,8 @@ jobs:
4848
compression-level: 0
4949

5050
tests:
51-
runs-on: [matterlabs-ci-runner]
52-
needs: [build]
51+
runs-on: [ matterlabs-ci-runner ]
52+
needs: [ build ]
5353

5454
steps:
5555
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
@@ -115,6 +115,7 @@ jobs:
115115
--prover-db-url=postgres://postgres:notsecurepassword@postgres:5432 \
116116
--prover-db-name=zksync_prover_localhost_rollup
117117
118+
118119
- name: Run server
119120
run: |
120121
ci_run zk_inception server --ignore-prerequisites &>server.log &
@@ -133,11 +134,11 @@ jobs:
133134
- name: Run recovery tests (from snapshot)
134135
run: |
135136
ci_run zk_supervisor test recovery --snapshot --ignore-prerequisites --verbose
136-
137+
137138
- name: Run recovery tests (from genesis)
138139
run: |
139140
ci_run zk_supervisor test recovery --ignore-prerequisites --verbose
140-
141+
141142
- name: Run external node server
142143
run: |
143144
ci_run zk_inception external-node run --ignore-prerequisites &>external_node.log &
@@ -160,7 +161,7 @@ jobs:
160161
- name: Run upgrade test
161162
run: |
162163
ci_run zk_supervisor test upgrade
163-
164+
164165
- name: Show server.log logs
165166
if: always()
166167
run: ci_run cat server.log || true

.github/workflows/vm-perf-comparison.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compare VM perfomance to base branch
1+
name: Compare VM performance to base branch
22

33
on:
44
pull_request:
@@ -47,7 +47,7 @@ jobs:
4747
ci_run zk
4848
ci_run zk compiler system-contracts
4949
ci_run cargo bench --package vm-benchmark --bench iai | tee base-iai
50-
ci_run cargo run --package vm-benchmark --release --bin instruction-counts | tee base-opcodes || touch base-opcodes
50+
ci_run cargo run --package vm-benchmark --release --bin instruction_counts | tee base-opcodes || touch base-opcodes
5151
ci_run yarn workspace system-contracts clean
5252
5353
- name: checkout PR
@@ -59,7 +59,7 @@ jobs:
5959
ci_run zk
6060
ci_run zk compiler system-contracts
6161
ci_run cargo bench --package vm-benchmark --bench iai | tee pr-iai
62-
ci_run cargo run --package vm-benchmark --release --bin instruction-counts | tee pr-opcodes || touch pr-opcodes
62+
ci_run cargo run --package vm-benchmark --release --bin instruction_counts | tee pr-opcodes || touch pr-opcodes
6363
6464
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
6565
echo "speedup<<$EOF" >> $GITHUB_OUTPUT

.github/workflows/vm-perf-to-prometheus.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: setup-env
2323
run: |
24-
echo PUSH_VM_BENCHMARKS_TO_PROMETHEUS=1 >> .env
24+
echo BENCHMARK_PROMETHEUS_PUSHGATEWAY_URL=${{ secrets.BENCHMARK_PROMETHEUS_PUSHGATEWAY_URL }} >> .env
2525
2626
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
2727
echo $(pwd)/bin >> $GITHUB_PATH
@@ -31,10 +31,12 @@ jobs:
3131
run_retried docker compose pull zk
3232
docker compose up -d zk
3333
ci_run zk
34-
ci_run zk compiler system-contracts
34+
ci_run zk compiler all
3535
3636
- name: run benchmarks
3737
run: |
38-
ci_run cargo bench --package vm-benchmark --bench diy_benchmark
38+
ci_run cargo bench --package vm-benchmark --bench oneshot
39+
# Run only benches with 1,000 transactions per batch to not spend too much time
40+
ci_run cargo bench --package vm-benchmark --bench batch '/1000$'
3941
ci_run cargo bench --package vm-benchmark --bench iai | tee iai-result
4042
ci_run cargo run --package vm-benchmark --bin iai_results_to_prometheus --release < iai-result

Cargo.lock

+28-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ members = [
7979
"core/tests/test_account",
8080
"core/tests/loadnext",
8181
"core/tests/vm-benchmark",
82-
"core/tests/vm-benchmark/harness",
8382
# Parts of prover workspace that are needed for Core workspace
8483
"prover/crates/lib/prover_dal",
8584
]
@@ -218,7 +217,7 @@ zk_evm_1_4_1 = { package = "zk_evm", version = "0.141.0" }
218217
zk_evm_1_5_0 = { package = "zk_evm", version = "=0.150.4" }
219218

220219
# New VM; pinned to a specific commit because of instability
221-
vm2 = { git = "https://github.com/matter-labs/vm2.git", rev = "9a38900d7af9b1d72b47ce3be980e77c1239a61d" }
220+
vm2 = { git = "https://github.com/matter-labs/vm2.git", rev = "2276b7b5af520fca0477bdafe43781b51896d235" }
222221

223222
# Consensus dependencies.
224223
zksync_concurrency = "=0.1.0-rc.11"
@@ -238,7 +237,6 @@ zksync_prover_dal = { version = "0.1.0", path = "prover/crates/lib/prover_dal" }
238237
zksync_vlog = { version = "0.1.0", path = "core/lib/vlog" }
239238
zksync_vm_interface = { version = "0.1.0", path = "core/lib/vm_interface" }
240239
zksync_vm_utils = { version = "0.1.0", path = "core/lib/vm_utils" }
241-
zksync_vm_benchmark_harness = { version = "0.1.0", path = "core/tests/vm-benchmark/harness" }
242240
zksync_basic_types = { version = "0.1.0", path = "core/lib/basic_types" }
243241
zksync_circuit_breaker = { version = "0.1.0", path = "core/lib/circuit_breaker" }
244242
zksync_config = { version = "0.1.0", path = "core/lib/config" }

core/CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Changelog
22

3+
## [24.23.0](https://github.com/matter-labs/zksync-era/compare/core-v24.22.0...core-v24.23.0) (2024-08-28)
4+
5+
6+
### Features
7+
8+
* Refactor metrics/make API use binaries ([#2735](https://github.com/matter-labs/zksync-era/issues/2735)) ([8ed086a](https://github.com/matter-labs/zksync-era/commit/8ed086afecfcad30bfda44fc4d29a00beea71cca))
9+
10+
11+
### Bug Fixes
12+
13+
* **api:** Fix duplicate DB connection acquired in `eth_call` ([#2763](https://github.com/matter-labs/zksync-era/issues/2763)) ([74b764c](https://github.com/matter-labs/zksync-era/commit/74b764c12e6daa410c611cec42455a00e68ed912))
14+
* **vm:** Fix used bytecodes divergence ([#2741](https://github.com/matter-labs/zksync-era/issues/2741)) ([923e33e](https://github.com/matter-labs/zksync-era/commit/923e33e81bba83f72b97ca9590c5cdf2da2a311b))
15+
16+
## [24.22.0](https://github.com/matter-labs/zksync-era/compare/core-v24.21.0...core-v24.22.0) (2024-08-27)
17+
18+
19+
### Features
20+
21+
* add flag to enable/disable DA inclusion verification ([#2647](https://github.com/matter-labs/zksync-era/issues/2647)) ([b425561](https://github.com/matter-labs/zksync-era/commit/b4255618708349c51f60f5c7fc26f9356d32b6ff))
22+
* **Base token:** add cbt metrics ([#2720](https://github.com/matter-labs/zksync-era/issues/2720)) ([58438eb](https://github.com/matter-labs/zksync-era/commit/58438eb174c30edf62e2ff8abb74567de2a4bea8))
23+
* Change default_protective_reads_persistence_enabled to false ([#2716](https://github.com/matter-labs/zksync-era/issues/2716)) ([8d0eee7](https://github.com/matter-labs/zksync-era/commit/8d0eee7ca8fe117b2ee286c6080bfa0057ee31ae))
24+
* **vm:** Extract oneshot VM executor interface ([#2671](https://github.com/matter-labs/zksync-era/issues/2671)) ([951d5f2](https://github.com/matter-labs/zksync-era/commit/951d5f208e5d16a5d95878dd345a8bd2a4144aa7))
25+
* **zk_toolbox:** Add holesky testnet as layer1 network ([#2632](https://github.com/matter-labs/zksync-era/issues/2632)) ([d9266e5](https://github.com/matter-labs/zksync-era/commit/d9266e5ef3910732666c00c1324256fb5b54452d))
26+
27+
28+
### Bug Fixes
29+
30+
* **api:** `tx.gas_price` field ([#2734](https://github.com/matter-labs/zksync-era/issues/2734)) ([aea3726](https://github.com/matter-labs/zksync-era/commit/aea3726c88b4e881bcd0f4a60ff32a730f200938))
31+
* **base_token_adjuster:** bug with a wrong metrics namespace ([#2744](https://github.com/matter-labs/zksync-era/issues/2744)) ([64b2ff8](https://github.com/matter-labs/zksync-era/commit/64b2ff8b81dcc146cd0535eb0d2d898c18ad5f7f))
32+
* **eth-sender:** missing Gateway migration changes ([#2732](https://github.com/matter-labs/zksync-era/issues/2732)) ([a4170e9](https://github.com/matter-labs/zksync-era/commit/a4170e9e7f321a1062495ec586e0ce9186269088))
33+
* **proof_data_handler:** TEE blob fetching error handling ([#2674](https://github.com/matter-labs/zksync-era/issues/2674)) ([c162510](https://github.com/matter-labs/zksync-era/commit/c162510598b45dc062c2c91085868f8aa966360e))
34+
335
## [24.21.0](https://github.com/matter-labs/zksync-era/compare/core-v24.20.0...core-v24.21.0) (2024-08-22)
436

537

0 commit comments

Comments
 (0)