Skip to content

Commit a20ec02

Browse files
deployment: setup namespace github runners
1 parent e54cfaf commit a20ec02

21 files changed

+155
-157
lines changed

.github/workflows/blockifier_ci.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ on:
2121
paths:
2222
# Other than code-related changes, all changes related to the native-blockifier build-and-push
2323
# process should trigger the build (e.g., changes to the Dockerfile, build scripts, etc.).
24-
- '.github/actions/bootstrap/action.yml'
25-
- '.github/workflows/blockifier_ci.yml'
26-
- '.github/workflows/upload_artifacts_workflow.yml'
27-
- 'build_native_in_docker.sh'
28-
- 'Cargo.lock'
29-
- 'Cargo.toml'
30-
- 'crates/blockifier/**'
31-
- 'crates/blockifier_test_utils/**'
32-
- 'crates/native_blockifier/**'
33-
- 'crates/apollo_sierra_multicompile/build.rs'
34-
- 'scripts/build_native_blockifier.sh'
35-
- 'scripts/dependencies.sh'
36-
- 'scripts/install_build_tools.sh'
37-
- 'scripts/sequencer-ci.Dockerfile'
24+
- ".github/actions/bootstrap/action.yml"
25+
- ".github/workflows/blockifier_ci.yml"
26+
- ".github/workflows/upload_artifacts_workflow.yml"
27+
- "build_native_in_docker.sh"
28+
- "Cargo.lock"
29+
- "Cargo.toml"
30+
- "crates/blockifier/**"
31+
- "crates/blockifier_test_utils/**"
32+
- "crates/native_blockifier/**"
33+
- "crates/apollo_sierra_multicompile/build.rs"
34+
- "scripts/build_native_blockifier.sh"
35+
- "scripts/dependencies.sh"
36+
- "scripts/install_build_tools.sh"
37+
- "scripts/sequencer-ci.Dockerfile"
3838

3939
env:
4040
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
@@ -50,7 +50,7 @@ concurrency:
5050

5151
jobs:
5252
test-without-features:
53-
runs-on: starkware-ubuntu-24.04-medium
53+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
5454
steps:
5555
- uses: actions/checkout@v4
5656
- uses: ./.github/actions/bootstrap
@@ -61,7 +61,7 @@ jobs:
6161
- run: cargo build -p blockifier
6262

6363
test-with-transaction-serde-feature:
64-
runs-on: starkware-ubuntu-24.04-medium
64+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
6565
steps:
6666
- uses: actions/checkout@v4
6767
- uses: ./.github/actions/bootstrap
@@ -72,7 +72,7 @@ jobs:
7272
- run: cargo build -p blockifier --features transaction_serde
7373

7474
test-with-cairo-native-feature:
75-
runs-on: starkware-ubuntu-24.04-medium
75+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
7676
steps:
7777
- uses: actions/checkout@v4
7878
- uses: ./.github/actions/bootstrap
@@ -83,12 +83,12 @@ jobs:
8383
- run: cargo test -p blockifier --features cairo_native
8484

8585
test-with-tracing-feature:
86-
runs-on: starkware-ubuntu-24.04-medium
87-
steps:
88-
- uses: actions/checkout@v4
89-
- uses: ./.github/actions/bootstrap
90-
with:
91-
github_token: ${{ secrets.GITHUB_TOKEN }}
92-
# tracing is not activated by any workspace crate; test the build.
93-
- run: cargo build -p blockifier --features tracing
94-
- run: cargo test -p blockifier --features tracing
86+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
87+
steps:
88+
- uses: actions/checkout@v4
89+
- uses: ./.github/actions/bootstrap
90+
with:
91+
github_token: ${{ secrets.GITHUB_TOKEN }}
92+
# tracing is not activated by any workspace crate; test the build.
93+
- run: cargo build -p blockifier --features tracing
94+
- run: cargo test -p blockifier --features tracing

.github/workflows/blockifier_compiled_cairo.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- reopened
88
- synchronize
99
paths:
10-
- '.github/workflows/blockifier_compiled_cairo.yml'
11-
- 'crates/apollo_compile_to_casm/src/constants.rs' # Contains the Cairo1 compiler version.
12-
- 'crates/apollo_infra_utils/src/cairo0_compiler.rs' # Contains the Cairo0 compiler version.
13-
- 'crates/blockifier_test_utils/**'
14-
- 'scripts/dependencies.sh'
10+
- ".github/workflows/blockifier_compiled_cairo.yml"
11+
- "crates/apollo_compile_to_casm/src/constants.rs" # Contains the Cairo1 compiler version.
12+
- "crates/apollo_infra_utils/src/cairo0_compiler.rs" # Contains the Cairo0 compiler version.
13+
- "crates/blockifier_test_utils/**"
14+
- "scripts/dependencies.sh"
1515

1616
env:
1717
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
@@ -27,7 +27,7 @@ concurrency:
2727

2828
jobs:
2929
verify_cairo_file_dependencies:
30-
runs-on: starkware-ubuntu-24.04-medium
30+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
3131
steps:
3232
- uses: actions/checkout@v4
3333
- uses: ./.github/actions/bootstrap
@@ -38,14 +38,13 @@ jobs:
3838
- uses: actions/setup-python@v5
3939
id: setup-pypy
4040
with:
41-
python-version: 'pypy3.9'
42-
cache: 'pip'
41+
python-version: "pypy3.9"
42+
cache: "pip"
4343
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
4444
- env:
4545
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
4646
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
4747
- run: pip install -r crates/blockifier_test_utils/resources/blockifier-test-utils-requirements.txt
4848

4949
- name: Verify cairo contract recompilation (both cairo versions).
50-
run:
51-
cargo test -p blockifier_test_utils --test feature_contracts_compatibility_test -- --include-ignored --nocapture
50+
run: cargo test -p blockifier_test_utils --test feature_contracts_compatibility_test -- --include-ignored --nocapture

.github/workflows/blockifier_reexecution_ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99
- edited
1010
paths:
1111
# Other than code-related changes, all changes related to the blockifier should trigger the build.
12-
- '.github/workflows/blockifier_reexecution_ci.yml'
13-
- 'Cargo.lock'
14-
- 'Cargo.toml'
15-
- 'crates/blockifier/**'
16-
- 'crates/blockifier_reexecution/**'
17-
- 'scripts/dependencies.sh'
18-
- 'scripts/install_build_tools.sh'
19-
- 'scripts/sequencer-ci.Dockerfile'
12+
- ".github/workflows/blockifier_reexecution_ci.yml"
13+
- "Cargo.lock"
14+
- "Cargo.toml"
15+
- "crates/blockifier/**"
16+
- "crates/blockifier_reexecution/**"
17+
- "scripts/dependencies.sh"
18+
- "scripts/install_build_tools.sh"
19+
- "scripts/sequencer-ci.Dockerfile"
2020

2121
env:
2222
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
@@ -32,7 +32,7 @@ concurrency:
3232

3333
jobs:
3434
blockifier_reexecution:
35-
runs-on: starkware-ubuntu-24.04-medium
35+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
3636
steps:
3737
- uses: actions/checkout@v4
3838
- uses: ./.github/actions/bootstrap
@@ -43,7 +43,7 @@ jobs:
4343
uses: "google-github-actions/auth@v2"
4444
with:
4545
credentials_json: ${{ secrets.SA_REEXECUTION_ARTIFACTS_READ_ACCESS_KEY }}
46-
- uses: 'google-github-actions/setup-gcloud@v2'
46+
- uses: "google-github-actions/setup-gcloud@v2"
4747
- run: echo "REEXECUTION_INPUT_FILES_PREFIX=$(cat ./crates/blockifier_reexecution/resources/offline_reexecution_files_prefix)" >> $GITHUB_ENV
4848
- run: gcloud storage cp -r gs://reexecution_artifacts/$REEXECUTION_INPUT_FILES_PREFIX/resources/* ./crates/blockifier_reexecution/resources/
4949
# Run blockifier re-execution tests.

.github/workflows/clean_stale_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
stale:
1111
name: 🧹 Clean up stale issues and PRs
12-
runs-on: starkware-ubuntu-24.04-small
12+
runs-on: namespace-profile-small-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
1313
steps:
1414
- name: 🚀 Run stale
1515
uses: actions/stale@v3

.github/workflows/committer_and_os_cli_push.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ on:
1515
- synchronize
1616
- edited
1717
paths:
18-
- '.github/workflows/committer_and_os_cli_push.yml'
19-
- 'build_native_in_docker.sh'
20-
- 'docker-ci/images/sequencer-ci.Dockerfile'
21-
- 'Cargo.toml'
22-
- 'Cargo.lock'
23-
- 'crates/apollo_starknet_os_program/**'
24-
- 'crates/starknet_committer_and_os_cli/**'
25-
- 'crates/starknet_api/**'
26-
- 'crates/starknet_committer/**'
27-
- 'crates/starknet_os/**'
28-
- 'crates/starknet_patricia/**'
29-
- 'rust-toolchain.toml'
30-
- 'scripts/dependencies.sh'
18+
- ".github/workflows/committer_and_os_cli_push.yml"
19+
- "build_native_in_docker.sh"
20+
- "docker-ci/images/sequencer-ci.Dockerfile"
21+
- "Cargo.toml"
22+
- "Cargo.lock"
23+
- "crates/apollo_starknet_os_program/**"
24+
- "crates/starknet_committer_and_os_cli/**"
25+
- "crates/starknet_api/**"
26+
- "crates/starknet_committer/**"
27+
- "crates/starknet_os/**"
28+
- "crates/starknet_patricia/**"
29+
- "rust-toolchain.toml"
30+
- "scripts/dependencies.sh"
3131

3232
env:
3333
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
@@ -43,7 +43,7 @@ concurrency:
4343

4444
jobs:
4545
gcs-push:
46-
runs-on: starkware-ubuntu-24.04-medium
46+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
4747
steps:
4848
- uses: actions/checkout@v4
4949
- uses: ./.github/actions/bootstrap
@@ -70,7 +70,7 @@ jobs:
7070
id: setup-pypy
7171
with:
7272
python-version: "pypy3.9"
73-
cache: 'pip'
73+
cache: "pip"
7474
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
7575
- env:
7676
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin

.github/workflows/committer_ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
- synchronize
99
- edited
1010
paths:
11-
- '.github/workflows/committer_ci.yml'
12-
- 'Cargo.toml'
13-
- 'Cargo.lock'
14-
- 'crates/starknet_committer_and_os_cli/**'
15-
- 'crates/starknet_api/**'
16-
- 'crates/starknet_committer/**'
17-
- 'crates/starknet_patricia/**'
18-
- 'scripts/dependencies.sh'
11+
- ".github/workflows/committer_ci.yml"
12+
- "Cargo.toml"
13+
- "Cargo.lock"
14+
- "crates/starknet_committer_and_os_cli/**"
15+
- "crates/starknet_api/**"
16+
- "crates/starknet_committer/**"
17+
- "crates/starknet_patricia/**"
18+
- "scripts/dependencies.sh"
1919

2020
env:
2121
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"
@@ -31,7 +31,7 @@ concurrency:
3131

3232
jobs:
3333
run-regression-tests:
34-
runs-on: starkware-ubuntu-24.04-medium
34+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
3535
if: ${{ github.event_name == 'pull_request' }}
3636
steps:
3737
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
id: setup-pypy
4343
with:
4444
python-version: "pypy3.9"
45-
cache: 'pip'
45+
cache: "pip"
4646
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
4747
- env:
4848
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
@@ -57,13 +57,13 @@ jobs:
5757
uses: "google-github-actions/auth@v2"
5858
with:
5959
credentials_json: ${{ secrets.COMMITER_PRODUCTS_EXT_WRITER_JSON }}
60-
- uses: 'google-github-actions/setup-gcloud@v2'
60+
- uses: "google-github-actions/setup-gcloud@v2"
6161
- run: echo "BENCH_INPUT_FILES_PREFIX=$(cat ./crates/starknet_committer_and_os_cli/src/committer_cli/tests/flow_test_files_prefix)" >> $GITHUB_ENV
6262
- run: gcloud storage cp -r gs://committer-testing-artifacts/$BENCH_INPUT_FILES_PREFIX/* ./crates/starknet_committer_and_os_cli/test_inputs
6363
- run: cargo test -p starknet_committer_and_os_cli --release -- --include-ignored test_regression
6464

6565
benchmarking:
66-
runs-on: starkware-ubuntu-24.04-medium
66+
runs-on: namespace-profile-medium-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
6767
if: ${{ github.event_name == 'pull_request' }}
6868
steps:
6969
# Checkout the base branch to get the old code.
@@ -77,7 +77,7 @@ jobs:
7777
id: setup-pypy
7878
with:
7979
python-version: "pypy3.9"
80-
cache: 'pip'
80+
cache: "pip"
8181
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
8282
- env:
8383
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
@@ -93,7 +93,7 @@ jobs:
9393
uses: "google-github-actions/auth@v2"
9494
with:
9595
credentials_json: ${{ secrets.COMMITER_PRODUCTS_EXT_WRITER_JSON }}
96-
- uses: 'google-github-actions/setup-gcloud@v2'
96+
- uses: "google-github-actions/setup-gcloud@v2"
9797
- run: echo "OLD_BENCH_INPUT_FILES_PREFIX=$(cat ./crates/starknet_committer_and_os_cli/src/committer_cli/tests/flow_test_files_prefix)" >> $GITHUB_ENV
9898
- run: gcloud storage cp -r gs://committer-testing-artifacts/$OLD_BENCH_INPUT_FILES_PREFIX/* ./crates/starknet_committer_and_os_cli/test_inputs
9999

@@ -138,12 +138,12 @@ jobs:
138138
with:
139139
token: ${{ secrets.GITHUB_TOKEN }}
140140
issue-number: ${{ github.event.pull_request.number }}
141-
comment-author: 'github-actions[bot]'
141+
comment-author: "github-actions[bot]"
142142
body-includes: Benchmark movements
143143

144144
- name: Create comment
145145
# If the PR number is found and the comment is not found, create a new comment.
146-
if: github.event_name == 'pull_request'
146+
if: github.event_name == 'pull_request'
147147
&& steps.find-benchmark-comment.outputs.comment-id == ''
148148
uses: starkware-libs/create-or-update-comment@v4
149149
with:
@@ -153,7 +153,7 @@ jobs:
153153

154154
- name: Update comment
155155
# If the PR number is found and the comment exists, update it.
156-
if: github.event_name == 'pull_request'
156+
if: github.event_name == 'pull_request'
157157
&& steps.find-benchmark-comment.outputs.comment-id != ''
158158
uses: starkware-libs/create-or-update-comment@v4
159159
with:

.github/workflows/hybrid_system_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ concurrency:
3131

3232
jobs:
3333
check-system-test-trigger:
34-
runs-on: starkware-ubuntu-24.04-small
34+
runs-on: namespace-profile-small-ubuntu-24-04-amd64
3535
outputs:
3636
should_run: ${{ steps.system_check.outputs.should_run }}
3737
steps:
@@ -65,7 +65,7 @@ jobs:
6565
system_test_hybrid:
6666
needs: check-system-test-trigger
6767
if: needs.check-system-test-trigger.outputs.should_run == 'true'
68-
runs-on: starkware-ubuntu-24.04-large
68+
runs-on: namespace-profile-large-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
6969
steps:
7070
- name: Checkout repository
7171
uses: actions/checkout@v4

.github/workflows/lock_closed_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
lock:
1111
name: 🔒 Lock closed issues and PRs
12-
runs-on: starkware-ubuntu-24.04-small
12+
runs-on: namespace-profile-small-ubuntu-24-04-amd64;override.cache-tag=${{ github.base_ref }}
1313
steps:
1414
- uses: dessant/lock-threads@v2.0.3
1515
with:

0 commit comments

Comments
 (0)