Skip to content

Commit dd2cb8b

Browse files
deployment: upgrade checkout action to v6
1 parent 4bbbbec commit dd2cb8b

14 files changed

+49
-34
lines changed

.github/workflows/blockifier_ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
test-without-features:
4141
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444
- uses: ./.github/actions/bootstrap
4545
with:
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -51,7 +51,7 @@ jobs:
5151
test-with-transaction-serde-feature:
5252
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
5353
steps:
54-
- uses: actions/checkout@v4
54+
- uses: actions/checkout@v6
5555
- uses: ./.github/actions/bootstrap
5656
with:
5757
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -62,7 +62,7 @@ jobs:
6262
test-with-cairo-native-feature:
6363
runs-on: namespace-profile-large-ubuntu-24-04-amd64
6464
steps:
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@v6
6666
- uses: ./.github/actions/bootstrap
6767
with:
6868
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -73,7 +73,7 @@ jobs:
7373
test-with-tracing-feature:
7474
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
7575
steps:
76-
- uses: actions/checkout@v4
76+
- uses: actions/checkout@v6
7777
- uses: ./.github/actions/bootstrap
7878
with:
7979
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -82,11 +82,11 @@ jobs:
8282
- run: cargo test -p blockifier --features tracing
8383

8484
benchmarking:
85-
runs-on: namespace-profile-large-ubuntu-24-04-amd64
85+
runs-on: namespace-profile-xlarge-ubuntu-24-04-amd64
8686
if: ${{ github.event_name == 'pull_request' }}
8787
steps:
8888
# Checkout the base branch to benchmark the old code.
89-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@v6
9090
with:
9191
ref: ${{ github.base_ref }}
9292

@@ -95,18 +95,23 @@ jobs:
9595
github_token: ${{ secrets.GITHUB_TOKEN }}
9696

9797
# Benchmark the base branch code.
98-
- name: Benchmark base branch (Base branch)
98+
- name: Benchmark (Base Branch)
9999
run: cargo run -p bench_tools -- run --package blockifier --out /tmp/base_results
100100

101101
# Checkout the PR branch into a unique subdirectory to avoid overwriting
102102
# the base branch's composite action files at the workspace root, and to
103103
# avoid colliding with any repo folder (e.g. one named "pr").
104-
- uses: actions/checkout@v4
104+
- uses: actions/checkout@v6
105105
with:
106106
path: pr-${{ github.run_id }}
107107

108+
# Copy base branch Criterion baseline into PR dir so run-and-compare finds it.
109+
- run: |
110+
mkdir -p pr-${{ github.run_id }}/target
111+
cp -r target/criterion pr-${{ github.run_id }}/target/
112+
108113
# Benchmark the current branch and compare to the previous run.
109-
- name: Benchmark current branch (Feature branch)
114+
- name: Benchmark (Feature Branch)
110115
working-directory: pr-${{ github.run_id }}
111116
run: |
112117
cargo run -p bench_tools -- run-and-compare \

.github/workflows/blockifier_compiled_cairo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
verify_cairo_file_dependencies:
3030
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333
- uses: ./.github/actions/bootstrap
3434
with:
3535
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/blockifier_reexecution_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
blockifier_reexecution:
3535
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
3636
steps:
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v6
3838
- uses: ./.github/actions/bootstrap
3939
with:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/committer_and_os_cli_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
gcs-push:
4646
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v6
4949
- uses: ./.github/actions/bootstrap
5050
with:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/committer_ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
5555
if: ${{ github.event_name == 'pull_request' }}
5656
steps:
57-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@v6
5858

5959
- uses: ./.github/actions/bootstrap
6060
with:
@@ -101,14 +101,14 @@ jobs:
101101
# PR-only: Checkout the base branch to benchmark the old code.
102102
- name: Checkout base branch (PR only)
103103
if: github.event_name == 'pull_request'
104-
uses: actions/checkout@v4
104+
uses: actions/checkout@v6
105105
with:
106106
ref: ${{ github.base_ref }}
107107

108108
# Push/dispatch: Checkout the specified or current branch.
109109
- name: Checkout repository (push/dispatch)
110110
if: github.event_name != 'pull_request'
111-
uses: actions/checkout@v4
111+
uses: actions/checkout@v6
112112
with:
113113
ref: ${{ inputs.branch || github.ref }}
114114

@@ -145,22 +145,32 @@ jobs:
145145
if: github.event_name == 'pull_request'
146146
run: cp -r crates/starknet_committer_and_os_cli/test_inputs /tmp/test_inputs
147147

148-
# PR-only: Checkout the current branch to benchmark the new code.
148+
# PR-only: Checkout the current branch into a subdirectory to avoid overwriting
149+
# the base branch's composite action files at the workspace root.
149150
- name: Checkout current branch (PR only)
150151
if: github.event_name == 'pull_request'
151-
uses: actions/checkout@v4
152+
uses: actions/checkout@v6
152153
with:
153-
clean: false
154+
path: pr-${{ github.run_id }}
155+
156+
# PR-only: Copy base branch Criterion baseline into PR dir so run-and-compare finds it.
157+
- name: Copy Criterion baseline (PR only)
158+
if: github.event_name == 'pull_request'
159+
run: |
160+
mkdir -p pr-${{ github.run_id }}/target
161+
cp -r target/criterion pr-${{ github.run_id }}/target/
154162
155163
# PR-only: Re-install pip requirements in case they changed between branches.
156164
- name: Re-install pip requirements (PR only)
157165
if: github.event_name == 'pull_request'
166+
working-directory: pr-${{ github.run_id }}
158167
run: pip install -r scripts/requirements.txt
159168

160169
# PR-only: Benchmark the current branch and compare to the previous run.
161170
# Use the saved inputs and enforce absolute time limits and regression limit.
162171
- name: Benchmark and compare (PR only)
163172
if: github.event_name == 'pull_request'
173+
working-directory: pr-${{ github.run_id }}
164174
run: |
165175
cargo run -p bench_tools -- run-and-compare \
166176
--package starknet_committer_and_os_cli \

.github/workflows/hybrid_system_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
outputs:
3939
should_run: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.system_check.outputs.should_run }}
4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v6
4242
if: github.event_name != 'workflow_dispatch'
4343
with:
4444
fetch-depth: 0
@@ -92,7 +92,7 @@ jobs:
9292
- svc: dummy_eth_to_strk_oracle
9393
dockerfile: dummy_eth_to_strk_oracle.Dockerfile
9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@v6
9696

9797
- name: Build ${{ matrix.svc }} image remotely
9898
uses: docker/[email protected]
@@ -109,7 +109,7 @@ jobs:
109109
timeout-minutes: 45
110110
steps:
111111
- name: Checkout repository
112-
uses: actions/checkout@v4
112+
uses: actions/checkout@v6
113113

114114
- name: Create registries.yaml for nscr.io
115115
run: |

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
timeout-minutes: 30
2626
steps:
2727
# Environment setup.
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v6
2929
with:
3030
# Fetch the entire history. Required to checkout the merge target commit, so the diff can
3131
# be computed.
@@ -79,7 +79,7 @@ jobs:
7979
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
8080
timeout-minutes: 30
8181
steps:
82-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@v6
8383
- uses: ./.github/actions/bootstrap
8484
with:
8585
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: namespace-profile-xlarge-ubuntu-24-04-amd64
9090
timeout-minutes: 45
9191
steps:
92-
- uses: actions/checkout@v4
92+
- uses: actions/checkout@v6
9393
with:
9494
# Fetch the entire history.
9595
fetch-depth: 0
@@ -118,7 +118,7 @@ jobs:
118118
runs-on: namespace-profile-large-ubuntu-24-04-amd64
119119
timeout-minutes: 45
120120
steps:
121-
- uses: actions/checkout@v4
121+
- uses: actions/checkout@v6
122122
with:
123123
# Fetch the entire history.
124124
fetch-depth: 0
@@ -148,7 +148,7 @@ jobs:
148148
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
149149
timeout-minutes: 10
150150
steps:
151-
- uses: actions/checkout@v4
151+
- uses: actions/checkout@v6
152152
- uses: ./.github/actions/bootstrap
153153
with:
154154
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main_nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
branch: ${{ fromJson(needs.define_branches.outputs.branches) }}
2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v6
2828
with:
2929
ref: ${{ matrix.branch }}
3030

@@ -56,7 +56,7 @@ jobs:
5656
matrix:
5757
branch: ${{ fromJson(needs.define_branches.outputs.branches) }}
5858
steps:
59-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v6
6060
with:
6161
ref: ${{ matrix.branch }}
6262

.github/workflows/main_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
commitlint:
2626
runs-on: ubuntu-24.04
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v6
2929
with:
3030
fetch-depth: 0
3131

.github/workflows/merge_queue_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
1717
steps:
1818
# Environment setup.
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020

2121
# Install rust components + lld.
2222
- uses: ./.github/actions/bootstrap

0 commit comments

Comments
 (0)