Skip to content

Commit 45da8ce

Browse files
Merge branch 'main' into remove-unused-error-variants
2 parents f41b117 + 0038711 commit 45da8ce

File tree

192 files changed

+13576
-3579
lines changed

Some content is hidden

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

192 files changed

+13576
-3579
lines changed

.github/workflows/bench.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: benchmark
1+
name: benchmark
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, starkware-development ]
66

77
permissions:
88
# deployments permission to deploy GitHub pages website
@@ -12,13 +12,13 @@ permissions:
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Install Rust
18-
uses: dtolnay/rust-toolchain@1.74.1
18+
uses: dtolnay/rust-toolchain@1.85.0
1919
with:
2020
components: rustfmt, clippy
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- name: Python3 Build
2323
uses: actions/setup-python@v4
2424
with:

.github/workflows/cairo_1_programs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ name: Cairo 1 programs execution
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, starkware-development ]
66
pull_request:
77
branches: [ '**' ]
88

99
jobs:
1010
run:
1111
name: Execute programs
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain@1.74.1
15+
uses: dtolnay/rust-toolchain@1.85.0
1616
- name: Set up Cargo cache
1717
uses: Swatinem/rust-cache@v2
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: install corelib
2121
run: cd cairo1-run/ && make deps
2222
- name: Run tests

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: dangoslen/changelog-enforcer@v3
1515
with:
16-
skipLabels: pipelines,tests,documentation
16+
skipLabels: nochangelog,pipelines,tests,documentation

.github/workflows/fresh_run.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- os: ubuntu-22.04
1818
deps_suffix: ''
1919
os_name: ubuntu-22.04
20-
- os: [self-hosted, macOS]
21-
deps_suffix: '-macos'
20+
- os: macos-latest
21+
deps_suffix: '-macos'
2222
os_name: macos
2323
runs-on: ${{ matrix.os_name }}
2424
name: "Make deps, build & test on fresh ${{ matrix.os_name }} system"
@@ -33,12 +33,12 @@ jobs:
3333
sudo rm -rf /opt/ghc
3434
sudo rm -rf "/usr/local/share/boost"
3535
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
36-
36+
3737
- name: Checkout
38-
uses: actions/checkout@v3
39-
38+
uses: actions/checkout@v4
39+
4040
- name: Install Rust
41-
uses: dtolnay/rust-toolchain@1.74.1
41+
uses: dtolnay/rust-toolchain@1.85.0
4242

4343
- name: Install Pyenv
4444
uses: "gabrielfalcao/pyenv-action@v13"
@@ -68,7 +68,7 @@ jobs:
6868
FAILED_TARGET=deps${{ matrix.deps_suffix }}
6969
elif [ ${{ steps.build.outcome }} = failure ]; then
7070
FAILED_TARGET=build
71-
else
71+
else
7272
FAILED_TARGET=test
7373
fi
7474
echo "FAILED_TARGET=$FAILED_TARGET" >> $GITHUB_ENV

.github/workflows/fuzzer.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010

1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
ref: ${{ github.head_ref }}
1515

@@ -22,7 +22,7 @@ jobs:
2222
path: fuzzer/hfuzz_workspace/fuzz_json/input
2323
key: ${{ runner.os }}-inputs
2424

25-
25+
2626
- name: Install dependencies
2727
run: |
2828
sudo apt-get update
@@ -38,12 +38,12 @@ jobs:
3838
run: cargo install honggfuzz
3939

4040
# If has cached inputs starts with them or else starts from 0
41-
- name: Initializing fuzzer with previous inputs
41+
- name: Initializing fuzzer with previous inputs
4242
run: |
4343
cd fuzzer
4444
HFUZZ_RUN_ARGS="--dict=json.dict --run_time 10800 --timeout 60" cargo hfuzz run fuzz_json
4545
46-
# run the fuzzer with minimize to reduce inputs
46+
# run the fuzzer with minimize to reduce inputs
4747
- name: Initializing fuzzer with minimize
4848
run: |
4949
cd fuzzer
@@ -55,20 +55,20 @@ jobs:
5555
file_pattern: '*/hfuzz_workspace/fuzzer/fuzz_json/HONGGFUZZ* */hfuzz_workspace/fuzzer/fuzz_json/*.fuzz'
5656

5757
# Checkout current and last commit for the diff
58-
- name: Checkout commits
59-
uses: actions/checkout@v3
58+
- name: Checkout commits
59+
uses: actions/checkout@v4
6060
with:
6161
fetch-depth: 2
6262

6363
# Check if any new crashes were added
6464
- name: Check diff
6565
id: check_file_changed
66-
run: echo "report=$(git diff --name-only HEAD^ HEAD -- fuzzer/hfuzz_workspace/fuzz_json/*.fuzz)" >> $GITHUB_OUTPUT
66+
run: echo "report=$(git diff --name-only HEAD^ HEAD -- fuzzer/hfuzz_workspace/fuzz_json/*.fuzz)" >> $GITHUB_OUTPUT
6767

6868
# If a new crash was found, create an issue
69-
- name: Create issue
69+
- name: Create issue
7070
uses: JasonEtco/create-an-issue@v2
71-
if: ${{ steps.check_file_changed.outputs.report != '' }}
71+
if: ${{ steps.check_file_changed.outputs.report != '' }}
7272
env:
7373
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7474
CRASH_REPORT: ${{ steps.check_file_changed.outputs.report }}

.github/workflows/hint_accountant.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ name: Update missing hints tracking issue
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, starkware-development ]
66

77
env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
1111
run:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain@1.74.1
15+
uses: dtolnay/rust-toolchain@1.85.0
1616
- name: Set up Cargo cache
1717
uses: Swatinem/rust-cache@v2
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Check Build
2121
run: cargo build -p hint_accountant
2222
- name: Clone cairo-lang repo
2323
run: git clone --depth=1 https://github.com/starkware-libs/cairo-lang
2424
- name: Run the hint accounting script
2525
run: cargo r -p hint_accountant | tee comment.md
2626
- name: Update comment in tracking issue
27-
uses: peter-evans/create-or-update-comment@v3
27+
uses: peter-evans/create-or-update-comment@v4
2828
with:
2929
issue-number: 1031
3030
comment-id: 1518234161

.github/workflows/hyper_threading_benchmarks.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
name: Benchmark Hyper Threading
22

3+
permissions:
4+
# permission to write a bench comment
5+
issues: write
6+
# permission to write a bench comment
7+
pull-requests: write
8+
39
on:
410
pull_request:
5-
branches:
6-
- main
11+
branches: [ main, starkware-development ]
712

813
jobs:
914
benchmark:
1015
runs-on: ubuntu-latest
1116
steps:
1217
- name: Checkout PR
13-
uses: actions/checkout@v2
14-
with:
15-
ref: ${{ github.head_ref }}
18+
uses: actions/checkout@v4
1619

1720
- name: Setup Python
1821
uses: actions/setup-python@v4
@@ -26,7 +29,7 @@ jobs:
2629
sudo apt-get install -y hyperfine
2730
2831
- name: Install Rust
29-
uses: dtolnay/rust-toolchain@1.74.1
32+
uses: dtolnay/rust-toolchain@1.85.0
3033
with:
3134
components: rustfmt, clippy
3235

@@ -35,7 +38,7 @@ jobs:
3538
cargo build --release -p hyper_threading
3639
cp target/release/hyper_threading ${{ github.workspace }}/hyper_threading_pr
3740
cp ./examples/hyper_threading/hyper-threading-workflow.sh ${{ github.workspace }}/hyper-threading-workflow.sh
38-
41+
3942
- name: Upload PR Binary
4043
uses: actions/upload-artifact@v4
4144
with:
@@ -50,7 +53,7 @@ jobs:
5053

5154

5255
- name: Checkout Main Branch
53-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5457
with:
5558
ref: 'main'
5659

@@ -71,7 +74,7 @@ jobs:
7174
name: hyper_threading_workflow_script
7275
path: ${{ github.workspace }}/
7376

74-
- name: Compile programs
77+
- name: Compile programs
7578
run: make cairo_bench_programs
7679

7780
- name: Run Benchmarks

.github/workflows/hyperfine.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
9+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1010

1111
env:
1212
CARGO_TERM_COLOR: always
@@ -17,18 +17,18 @@ jobs:
1717
matrix:
1818
branch: [ base, head ]
1919
name: Build Cairo programs for ${{ matrix.branch }}
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2121
outputs:
2222
benchmark-hashes-base: ${{ steps.export-hashes.outputs.benchmark-hashes-base }}
2323
benchmark-hashes-head: ${{ steps.export-hashes.outputs.benchmark-hashes-head }}
2424
steps:
2525
- name: Checkout base commit
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
ref: ${{ github.event.pull_request[matrix.branch].sha }}
2929

3030
- name: Fetch from cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
id: cache
3333
with:
3434
path: ${{ matrix.branch }}_programs/*.json
@@ -63,22 +63,22 @@ jobs:
6363
matrix:
6464
branch: [ base, head ]
6565
name: Build cairo-vm-cli for ${{ matrix.branch }}
66-
runs-on: ubuntu-22.04
66+
runs-on: ubuntu-24.04
6767
steps:
6868
- name: Populate cache
69-
uses: actions/cache@v3
70-
id: cache
69+
uses: actions/cache@v4
70+
id: cache
7171
with:
7272
path: bin/cairo-vm-cli-${{ matrix.branch }}
7373
key: binary-${{ github.event.pull_request[matrix.branch].sha }}
7474

7575
- name: Install Rust
7676
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
77-
uses: dtolnay/rust-toolchain@1.74.1
77+
uses: dtolnay/rust-toolchain@1.85.0
7878

7979
- name: Checkout
8080
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
81-
uses: actions/checkout@v3
81+
uses: actions/checkout@v4
8282
with:
8383
ref: ${{ github.event.pull_request[matrix.branch].sha }}
8484

@@ -100,33 +100,33 @@ jobs:
100100
program_state: [ modified, unmodified ]
101101
name: Run benchmarks for ${{ matrix.program_state }} programs
102102
needs: [ build-programs, build-binaries ]
103-
runs-on: ubuntu-22.04
103+
runs-on: ubuntu-24.04
104104
steps:
105105
- name: Install Hyperfine
106106
uses: taiki-e/install-action@v2
107107
with:
108-
tool: hyperfine@1.16
108+
tool: hyperfine@1.19
109109

110110
- name: Fetch base binary
111-
uses: actions/cache/restore@v3
111+
uses: actions/cache/restore@v4
112112
with:
113113
path: bin/cairo-vm-cli-base
114114
key: binary-${{ github.event.pull_request.base.sha }}
115115

116116
- name: Fetch HEAD binary
117-
uses: actions/cache/restore@v3
117+
uses: actions/cache/restore@v4
118118
with:
119119
path: bin/cairo-vm-cli-head
120120
key: binary-${{ github.event.pull_request.head.sha }}
121121

122122
- name: Fetch base programs
123-
uses: actions/cache/restore@v3
123+
uses: actions/cache/restore@v4
124124
with:
125125
path: base_programs/*.json
126126
key: benchmarks-base-${{ needs.build-programs.outputs.benchmark-hashes-base }}
127127

128128
- name: Fetch head programs
129-
uses: actions/cache/restore@v3
129+
uses: actions/cache/restore@v4
130130
with:
131131
path: head_programs/*.json
132132
key: benchmarks-head-${{ needs.build-programs.outputs.benchmark-hashes-head }}
@@ -175,7 +175,7 @@ jobs:
175175
176176
- name: Find comment
177177
if: ${{ steps.run-benchmarks.outputs.benchmark_count != 0 }}
178-
uses: peter-evans/find-comment@v2
178+
uses: peter-evans/find-comment@v3
179179
id: fc
180180
with:
181181
issue-number: ${{ github.event.pull_request.number }}
@@ -184,14 +184,14 @@ jobs:
184184

185185
- name: Create comment
186186
if: steps.fc.outputs.comment-id == '' && steps.run-benchmarks.outputs.benchmark_count != 0
187-
uses: peter-evans/create-or-update-comment@v3
187+
uses: peter-evans/create-or-update-comment@v4
188188
with:
189189
issue-number: ${{ github.event.pull_request.number }}
190190
body-path: comment_body.md
191191

192192
- name: Update comment
193193
if: steps.fc.outputs.comment-id != '' && steps.run-benchmarks.outputs.benchmark_count != 0
194-
uses: peter-evans/create-or-update-comment@v3
194+
uses: peter-evans/create-or-update-comment@v4
195195
with:
196196
comment-id: ${{ steps.fc.outputs.comment-id }}
197197
body-path: comment_body.md

.github/workflows/iai_main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: iai Benchmark
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, starkware-development ]
66

77
jobs:
88
cache-iai-results:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Install Rust
14-
uses: dtolnay/rust-toolchain@1.74.1
14+
uses: dtolnay/rust-toolchain@1.85.0
1515
- name: Set up cargo cache
1616
uses: Swatinem/rust-cache@v2
1717
- name: Python3 Build

0 commit comments

Comments
 (0)