Skip to content

Commit 8fb92b7

Browse files
Merge branch 'main' into feat/split-address-collision-weekly
2 parents 431d535 + 5bb7582 commit 8fb92b7

File tree

70 files changed

+3520
-366
lines changed

Some content is hidden

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

70 files changed

+3520
-366
lines changed

.github/actions/linea-besu-package/build-plugins-and-assemble/action.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ runs:
7070
- name: Setup Tracer Environment
7171
uses: ./.github/actions/setup-tracer-environment
7272
with:
73-
enable-ssh: false
74-
75-
- name: Build besu from source
76-
shell: bash
77-
run: cd linea-besu-package && make build-besu-local-and-update-lib-version
78-
env:
79-
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false
73+
skip-download-besu-dist: false
8074

8175
- name: Compute linea-besu-package metadata
8276
id: metadata
@@ -92,7 +86,7 @@ runs:
9286
shell: bash
9387
run: cd linea-besu-package && make build-tracer-and-sequencer
9488
env:
95-
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false
89+
JAVA_OPTS: -Xmx2g
9690
TRACER_PLUGIN_VERSION: ${{ steps.metadata.outputs.tracer_plugin_version }}
9791
SEQUENCER_PLUGIN_VERSION: ${{ steps.metadata.outputs.sequencer_plugin_version }}
9892

.github/actions/setup-tracer-environment/action.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: 'Setup Tracer Environment'
2-
description: 'Checkout repository and install what is needed for building / testing'
1+
name: 'Setup Tracer Environment (build Besu if needed)'
2+
description: 'Install what is needed for building / testing, and build Besu if needed'
33
inputs:
44
enable-ssh:
55
description: 'Enable ability to ssh into session'
66
required: false
7-
default: false
8-
github-token:
9-
description: 'Github token (needed for downloading corset)'
7+
default: 'false'
8+
skip-download-besu-dist:
9+
description: 'Skip downloading Besu distribution from public maven'
1010
required: false
11+
default: 'true'
1112

1213
runs:
1314
using: 'composite'
@@ -26,3 +27,10 @@ runs:
2627
uses: ./.github/actions/setup-java-and-gradle
2728
with:
2829
java-version: '21'
30+
31+
- name: Build besu from source (if needed)
32+
shell: bash
33+
run: ./gradlew buildAndUpdateBesuVersionInLibsVersions -PskipDownloadBesuDist="$SKIP_DOWNLOAD_BESU_DIST"
34+
env:
35+
SKIP_DOWNLOAD_BESU_DIST: ${{ inputs.skip-download-besu-dist }}
36+
JAVA_OPTS: -Xmx2g

.github/workflows/claude-code-review.yml

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,46 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, ready_for_review, reopened]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
5+
types: [opened, edited, synchronize, ready_for_review, reopened]
6+
paths:
7+
- "**/*.js"
8+
- "**/*.jsx"
9+
- "**/*.ts"
10+
- "**/*.tsx"
11+
- "**/*.java"
12+
- "**/*.kt"
13+
- "**/*.go"
14+
- "**/*.py"
15+
- "**/*.rs"
16+
- "**/*.sol"
17+
- "**/*.zkasm"
18+
- "**/*.lisp"
19+
- "**/Makefile"
20+
- "**/*.mk"
21+
- "**/Dockerfile"
22+
- "**/Dockerfile.*"
23+
- "**/*.dockerfile"
24+
- "**/*.sh"
25+
- "**/*.bash"
26+
- "**/*.gradle"
27+
- "**/*.gradle.kts"
28+
- "**/gradlew"
29+
- "**/gradle.properties"
30+
- "**/settings.gradle"
31+
- "**/settings.gradle.kts"
1232

1333
jobs:
1434
claude-review:
15-
# Only run on PRs from the same repo (team members), not forks
16-
if: github.event.pull_request.head.repo.full_name == github.repository
35+
# Only run when '@claude-review' is present in the PR description
36+
# and the author is a repo owner, member, or collaborator (i.e. team member)
37+
if: |
38+
github.event.pull_request.head.repo.full_name == github.repository &&
39+
contains(github.event.pull_request.body, '@claude-review') &&
40+
(
41+
github.event.pull_request.author_association == 'OWNER' ||
42+
github.event.pull_request.author_association == 'MEMBER' ||
43+
github.event.pull_request.author_association == 'COLLABORATOR'
44+
)
1745
1846
runs-on: ubuntu-latest
1947
permissions:
@@ -33,9 +61,21 @@ jobs:
3361
uses: anthropics/claude-code-action@5d0cc745cd0cce4c0e9e0b3511de26c3bc285eb5 #v1.0.71
3462
with:
3563
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
36-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
37-
plugins: 'code-review@claude-code-plugins'
38-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
39-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
40-
# or https://code.claude.com/docs/en/cli-reference for available options
64+
# use_sticky_comment: false
65+
direct_prompt: |
66+
You are a senior software engineer performing a thorough code review on PR #${{ github.event.pull_request.number }} in ${{ github.repository }}.
4167
68+
Review ONLY changed files with the following extensions or names:
69+
.js .jsx .ts .tsx .java .kt .go .py .rs .sol .sh .bash .gradle .gradle.kts .mk .dockerfile .zkasm .lisp
70+
Makefile gradlew gradle.properties settings.gradle settings.gradle.kts Dockerfile Dockerfile.*
71+
72+
For each issue you find, post an inline pull request review comment on the exact file and line where the problem occurs.
73+
74+
Focus on:
75+
- Bugs and logic errors
76+
- Security vulnerabilities (injection, unsafe deserialization, improper auth, etc.)
77+
- Performance problems
78+
- Code quality, readability, and maintainability issues
79+
- Incorrect or missing error handling
80+
81+
Be specific, actionable, and constructive. Do NOT post a general top-level PR summary comment.

.github/workflows/coordinator-build-and-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ jobs:
8282
distribution: temurin
8383
java-version: 21
8484

85+
- name: Build besu from source
86+
shell: bash
87+
run: ./gradlew buildAndUpdateBesuVersionInLibsVersions -PskipDownloadBesuDist=true
88+
env:
89+
JAVA_OPTS: -Xmx2g
90+
8591
- name: Build dist
8692
run: ./gradlew coordinator:app:installDist
8793

.github/workflows/coordinator-testing.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
uses: ./.github/actions/setup-nodejs
4545
with:
4646
pnpm-install-options: '--frozen-lockfile --prefer-offline --filter contracts --ignore-scripts'
47+
- name: Build besu from source
48+
shell: bash
49+
run: ./gradlew buildAndUpdateBesuVersionInLibsVersions -PskipDownloadBesuDist=true
50+
env:
51+
JAVA_OPTS: -Xmx2g
4752
- name: Build coordinator and Unit tests
4853
run: |
4954
./gradlew -V coordinator:app:buildNeeded

.github/workflows/linea-sequencer-plugin-testing.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,20 @@ concurrency:
1414
jobs:
1515
run-linea-sequencer-plugins-unit-tests:
1616
name: "Sequencer Plugin Unit Tests"
17-
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-small
17+
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-large
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121

22-
- name: Setup Tracer Environment # configures Go, Java, Gradle, and gets submodules
22+
- name: Setup Tracer Environment # configures Go, Java, and Gradle
2323
uses: ./.github/actions/setup-tracer-environment
24-
with:
25-
enable-ssh: false
2624

2725
- name: spotless
2826
run: ./gradlew --parallel besu-plugins:linea-sequencer:spotlessCheck
2927

3028
- name: Build
3129
run: ./gradlew besu-plugins:linea-sequencer:build
3230

33-
- name: Upload distribution artifacts
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: distributions
37-
path: besu-plugins/linea-sequencer/sequencer/build/libs
38-
3931
- name: Run unit tests
4032
run: ./gradlew besu-plugins:linea-sequencer:sequencer:test
4133

@@ -63,8 +55,6 @@ jobs:
6355

6456
- name: Setup Tracer Environment
6557
uses: ./.github/actions/setup-tracer-environment
66-
with:
67-
enable-ssh: false
6858

6959
- name: Run acceptance tests
7060
run: ./gradlew besu-plugins:linea-sequencer:acceptance-tests:acceptanceTests

.github/workflows/linea-tracer-plugin-release.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ jobs:
4343

4444
- name: Setup Tracer Environment
4545
uses: ./.github/actions/setup-tracer-environment
46-
with:
47-
enable-ssh: false
48-
49-
- name: Build artifacts
50-
run: ./gradlew :tracer:artifacts -PreleaseVersion=${{ steps.config.outputs.VERSION_TAG }}
51-
env:
52-
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false
5346

5447
- name: Set up GCC
5548
uses: egor-tensin/setup-gcc@a2861a8b8538f49cf2850980acccf6b05a1b2ae4 #v2.0
@@ -59,12 +52,6 @@ jobs:
5952
env:
6053
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false
6154

62-
- name: Store distribution artifacts
63-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
64-
with:
65-
name: distributions
66-
path: tracer/arithmetization/build/libs
67-
6855
- name: Run spotless
6956
run: ./gradlew --no-daemon --parallel :tracer:clean :tracer:spotlessCheck
7057

@@ -93,8 +80,6 @@ jobs:
9380

9481
- name: Setup Tracer Environment
9582
uses: ./.github/actions/setup-tracer-environment
96-
with:
97-
enable-ssh: false
9883

9984
- name: Run replay tests
10085
run: GOMEMLIMIT=26GiB ./gradlew :tracer:arithmetization:fastReplayTests

.github/workflows/reusable-tracer-blockchain-tests.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ jobs:
6161

6262
- name: Download execution spec fixtures
6363
run: ./gradlew :tracer:reference-tests:downloadExecutionSpecFixtures
64-
env:
65-
JAVA_OPTS: -Dorg.gradle.daemon=false
6664

6765
- name: Generate execution spec blockchain reference tests
6866
run: ./gradlew :tracer:reference-tests:generateExecutionSpecBlockchainTests -Dorg.gradle.caching=true
69-
env:
70-
JAVA_OPTS: -Dorg.gradle.daemon=false
7167

7268
- name: Download artifact
7369
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
@@ -88,7 +84,6 @@ jobs:
8884
timeout-minutes: 360
8985
env:
9086
JUNIT_TESTS_PARALLELISM: 2
91-
JAVA_OPTS: -Dorg.gradle.daemon=false
9287
GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air
9388
FAILED_TEST_JSON_DIRECTORY: ${{ github.workspace }}/tmp/${{ steps.extract_branch.outputs.branch }}/
9489
FAILED_MODULE: ${{ inputs.failed_module || '' }}

.github/workflows/staterecovery-testing.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
36-
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0
36+
- name: Setup Java and Gradle
37+
uses: ./.github/actions/setup-java-and-gradle
3738
with:
3839
distribution: temurin
3940
java-version: 21
40-
- name: Setup Gradle
41-
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
42-
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
43-
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # 4.4.0
41+
- name: Build besu from source
42+
shell: bash
43+
run: ./gradlew buildAndUpdateBesuVersionInLibsVersions -PskipDownloadBesuDist=true
44+
env:
45+
JAVA_OPTS: -Xmx2g
4446
- name: Staterecovery - Build and Unit tests
4547
run: |
4648
./gradlew besu-plugins:state-recovery:besu-plugin:buildNeeded

.github/workflows/testing.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,8 @@ jobs:
135135
with:
136136
submodules: recursive
137137

138-
- name: Setup Tracer Environment # configures Go, Java, Gradle, and gets submodules
138+
- name: Setup Tracer Environment # configures Go, Java, and Gradle
139139
uses: ./.github/actions/setup-tracer-environment
140-
with:
141-
enable-ssh: false
142140

143141
- name: Download Jacoco execution data from coordinator
144142
if: needs.coordinator.result != 'skipped'

0 commit comments

Comments
 (0)