Skip to content

Add blockifier tests to the ci #1176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6874d9d
add blockifier tests to the ci
FrancoGiachetta Apr 11, 2025
88d13d8
rename job
FrancoGiachetta Apr 11, 2025
0ff8921
fix ci
FrancoGiachetta Apr 11, 2025
0364c33
try fix ci
FrancoGiachetta Apr 11, 2025
1de9f5b
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta Apr 11, 2025
38e23b1
install linux-deps workflow
FrancoGiachetta Apr 11, 2025
fc50bff
Merge branch 'add-blockifier-tests' of github.com:lambdaclass/cairo_n…
FrancoGiachetta Apr 11, 2025
c027e92
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta Apr 14, 2025
44218a9
ubuntu-lastest
FrancoGiachetta Apr 14, 2025
b64e178
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta Apr 21, 2025
9f8b298
try fix
FrancoGiachetta Apr 21, 2025
336b387
Merge branch 'add-blockifier-tests' of github.com:lambdaclass/cairo_n…
FrancoGiachetta Apr 21, 2025
d5bbc08
forgot to cd sequencer
FrancoGiachetta Apr 21, 2025
5ded3b0
forgot to cd sequencer
FrancoGiachetta Apr 21, 2025
ca643cb
forgot to cd sequencer
FrancoGiachetta Apr 21, 2025
47c7445
try installing ld
FrancoGiachetta Apr 21, 2025
9978fb4
change rust version
FrancoGiachetta Apr 21, 2025
147e062
try installing binutils
FrancoGiachetta Apr 21, 2025
d582c4c
try fix
FrancoGiachetta Apr 21, 2025
d0fc788
try fix
FrancoGiachetta Apr 21, 2025
4bdd580
update sequencer ref
FrancoGiachetta Apr 21, 2025
61f5167
try fix
FrancoGiachetta Apr 21, 2025
ebfdc99
remove frees
FrancoGiachetta Apr 21, 2025
947dc66
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta Apr 23, 2025
cc2567f
add --locked flag
FrancoGiachetta Apr 23, 2025
2a017b3
Merge branch 'add-blockifier-tests' of github.com:lambdaclass/cairo_n…
FrancoGiachetta Apr 23, 2025
31194f3
check how it behaves in another workflow
FrancoGiachetta Apr 23, 2025
dd4ef05
revert last commit
FrancoGiachetta Apr 23, 2025
255e693
check ld
FrancoGiachetta Apr 23, 2025
918555a
try with offline
FrancoGiachetta Apr 23, 2025
f1fd8ef
install lld
FrancoGiachetta Apr 23, 2025
f7e33a0
remove offline
FrancoGiachetta Apr 23, 2025
2117e5f
reduce recursion depth
FrancoGiachetta Apr 24, 2025
389a38b
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta May 5, 2025
3fd54b7
Merge branch 'main' into add-blockifier-tests
FrancoGiachetta May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/install-linux-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 'Install Linux Dependencies'
description: "Install linux dependencies for Cairo Native"
runs:
using: "composite"
steps:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,54 @@ jobs:
- name: test-cairo
run: make test-cairo

tests-blockifier:
name: Blockifier tests
runs-on: ubuntu-24.04
env:
MLIR_SYS_190_PREFIX: /usr/lib/llvm-19/
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/
TABLEGEN_190_PREFIX: /usr/lib/llvm-19/
RUST_LOG: cairo_native=debug
steps:
- name: Checkout Native
uses: actions/checkout@v4
with:
path: cairo_native

- name: Checkout Sequencer
uses: actions/checkout@v4
with:
repository: lambdaclass/sequencer
path: sequencer
ref: 81505b1b48e941c52c2e9780f48ef4443d555f89 # branch: reduce-recursion-depth
- name: Setup rust env
uses: dtolnay/[email protected]
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
uses: myci-actions/add-deb-repo@11
with:
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main
repo-name: llvm-repo
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- run: sudo apt-get update && sudo apt-get upgrade -y
- name: Install LLVM
run: sudo apt-get install lld llvm-19 llvm-19-dev llvm-19-runtime clang-19 clang-tools-19 lld-19 libpolly-19-dev libmlir-19-dev mlir-19-tools

- name: Patch Cairo Native in Sequencer
run: |
cd sequencer
# Updates native dependency to local path
new_path='"..\/cairo_native"'
sed -i'' -r "s/^cairo-native = .*/cairo-native.path = $new_path/" Cargo.toml

git diff

- name: Run blockifier tests
run: |
cd sequencer
cargo test -p blockifier --features cairo_native

coverage:
name: coverage
runs-on: ubuntu-24.04
Expand Down
Loading