Skip to content

Commit

Permalink
cairo 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Dec 17, 2024
1 parent eb3d553 commit ccb829b
Show file tree
Hide file tree
Showing 162 changed files with 13,486 additions and 11,482 deletions.
3 changes: 1 addition & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ TABLEGEN_190_PREFIX = "/usr/lib/llvm-19/"
# https://nnethercote.github.io/perf-book/build-configuration.html#linking.
# TODO: remove this once `rust` stabilizes `lld` as the default linker, currently only on nightly:
# https://github.com/rust-lang/rust/issues/39915#issuecomment-618726211
[target.x86_64-unknown-linux-gnu]
[target.stable-x86_64-unknown-linux-gnu]
[target.'cfg(all(target_os = "linux"))']
rustflags = ["-Clink-arg=-fuse-ld=lld"]
3 changes: 3 additions & 0 deletions .github/actions/install_rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ runs:
with:
cache-base: main(-v[0-9].*)?
inherit-toolchain: true
bins: [email protected]
env:
RUSTFLAGS: "-C link-arg=-fuse-ld=lld"
2 changes: 1 addition & 1 deletion .github/workflows/blockifier_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
- 'scripts/sequencer-ci.Dockerfile'

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blockifier_compiled_cairo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- 'scripts/dependencies.sh'

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blockifier_reexecution_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- 'scripts/sequencer-ci.Dockerfile'

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/committer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
- 'scripts/dependencies.sh'

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/committer_cli_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
- 'scripts/dependencies.sh'

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
65 changes: 2 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

env:
CI: 1
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand All @@ -35,11 +35,7 @@ jobs:
# Fetch the entire history. Required to checkout the merge target commit, so the diff can
# be computed.
fetch-depth: 0
- uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
version: '0.9.0'
locked: true


# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -137,60 +133,3 @@ jobs:
env:
SEED: 0

codecov:
runs-on: starkware-ubuntu-latest-large
steps:
- uses: actions/checkout@v4
with:
# Fetch the entire history.
fetch-depth: 0
- uses: ./.github/actions/bootstrap

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- run: npm install -g [email protected]

# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV

- name: "Run codecov on pull request"
id: run_codecov_pr
if: github.event_name == 'pull_request'
run: |
python3 -m venv ci
ci/bin/pip install -r scripts/requirements.txt
ci/bin/python scripts/run_tests.py --command codecov --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
if [ -f codecov.json ]; then
echo "codecov_output=true" >> $GITHUB_OUTPUT
else
echo "codecov_output=false" >> $GITHUB_OUTPUT
fi
env:
SEED: 0

- name: "Run codecov on push"
if: github.event_name == 'push'
# TODO: Better support for running tests on push.
run: |
python3 -m venv ci
ci/bin/pip install -r scripts/requirements.txt
ci/bin/python scripts/run_tests.py --command codecov
echo "codecov_output=true" >> $GITHUB_OUTPUT
env:
SEED: 0

- name: Codecov
if: steps.run_codecov_pr.outputs.codecov_output == 'true'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
version: "v0.1.15"
57 changes: 57 additions & 0 deletions .github/workflows/main_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Main-CI-Nightly
on:
schedule:
- cron: '30 23 * * *' # Uses ubuntu runner.
workflow_dispatch: # Uses ubuntu runner.

env:
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
codecov:
runs-on: starkware-ubuntu-latest-large
steps:
- uses: actions/checkout@v4
with:
# Fetch the entire history.
fetch-depth: 0
- uses: ./.github/actions/bootstrap

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- run: npm install -g [email protected]

# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV

- name: "Run codecov on pull request"
id: run_codecov_pr
run: |
python3 -m venv ci
ci/bin/pip install -r scripts/requirements.txt
ci/bin/python scripts/run_tests.py --command codecov --changes_only --commit_id ${{ github.event.pull_request.base.sha }}
if [ -f codecov.json ]; then
echo "codecov_output=true" >> $GITHUB_OUTPUT
else
echo "codecov_output=false" >> $GITHUB_OUTPUT
fi
env:
SEED: 0

- name: Codecov
if: steps.run_codecov_pr.outputs.codecov_output == 'true'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
version: "v0.1.15"


2 changes: 1 addition & 1 deletion .github/workflows/main_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- edited

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
types: [checks_requested]

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus_docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
env:
REGISTRY: ghcr.io
REPO_NAME: ${{ github.repository }}
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
docker-build-push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus_nightly-tests-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
required: true

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
GW-integration-test-call:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus_nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch: # Uses ubuntu runner.

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
GW-integration-test-ubuntu:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/sequencer_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ on:
- edited

env:
SEQUENCER_INTEGRATION_TESTS: 1
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

# On PR events, cancel existing CI runs on this same PR for this workflow.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build-and-run-run-sequencer-integration-tests:
build-and-run-sequencer-integration-tests:
runs-on: starkware-ubuntu-latest-large
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: |
cargo build --bin starknet_sequencer_node
cargo test --test end_to_end_integration_test
cargo build --bin sequencer_node_end_to_end_integration_test
target/debug/sequencer_node_end_to_end_integration_test
2 changes: 1 addition & 1 deletion .github/workflows/upload_artifacts_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [completed]

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
native-blockifier-artifacts-push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day

env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld"

jobs:
latest_deps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tmp_venv/*
.vscode/settings.json
/data
/logs
/sequencer_data
/target
/.vscode
# Git hooks
Expand Down
Loading

0 comments on commit ccb829b

Please sign in to comment.