From 33c65aad9f7eecb34681fb165855549f5d16f56a Mon Sep 17 00:00:00 2001 From: "alon.dotan" Date: Thu, 11 Jul 2024 10:06:35 +0300 Subject: [PATCH] chore: cleanup --- .../workflows/blockifier/blockifier_ci.yml | 118 ------------------ .../blockifier/blockifier_compiled_cairo.yml | 40 ------ .../blockifier/blockifier_coverage.yml | 38 ------ .../blockifier/blockifier_post-merge.yml | 30 ----- .../blockifier/blockifier_verify-deps.yml | 20 --- 5 files changed, 246 deletions(-) delete mode 100644 .github/workflows/blockifier/blockifier_ci.yml delete mode 100644 .github/workflows/blockifier/blockifier_compiled_cairo.yml delete mode 100644 .github/workflows/blockifier/blockifier_coverage.yml delete mode 100644 .github/workflows/blockifier/blockifier_post-merge.yml delete mode 100644 .github/workflows/blockifier/blockifier_verify-deps.yml diff --git a/.github/workflows/blockifier/blockifier_ci.yml b/.github/workflows/blockifier/blockifier_ci.yml deleted file mode 100644 index b432835105..0000000000 --- a/.github/workflows/blockifier/blockifier_ci.yml +++ /dev/null @@ -1,118 +0,0 @@ -name: CI - -on: - push: - branches: - - main - - main-v[0-9].** - tags: - - v[0-9].** - - pull_request: - types: - - opened - - reopened - - synchronize - - auto_merge_enabled - - edited - -jobs: - featureless-build: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - run: cargo build -p blockifier - - run: cargo test -p blockifier - - run-python-tests: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.9' - - run: | - python -m pip install --upgrade pip - pip install pytest - - run: pytest scripts/merge_paths_test.py - - run-tests: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - # 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 - - - run: cargo test - - run: cargo test --features concurrency - - native-blockifier-artifacts-push: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - - name: Build native blockifier - run: ./build_native_blockifier.sh - - # Commit hash on pull request event would be the head commit of the branch. - - name: Get commit hash prefix for PR update - if: ${{ github.event_name == 'pull_request' }} - env: - COMMIT_SHA: ${{ github.event.pull_request.head.sha }} - run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV - - # On push event (to main, for example) we should take the commit post-push. - - name: Get commit hash prefix for merge - if: ${{ github.event_name != 'pull_request' }} - env: - COMMIT_SHA: ${{ github.event.after }} - run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV - - # Rename is required; see https://pyo3.rs/v0.19.2/building_and_distribution#manual-builds. - - name: Rename shared object - run: | - mv \ - target/release/libnative_blockifier.so \ - target/release/native_blockifier.pypy39-pp73-x86_64-linux-gnu.so - - - name: Authenticate with GCS - uses: "google-github-actions/auth@v2" - with: - credentials_json: ${{ secrets.SA_NATIVE_BLOCKIFIER_ARTIFACTS_BUCKET_WRITER_ACCESS_KEY }} - - - name: Upload binary to GCP - id: upload_file - uses: "google-github-actions/upload-cloud-storage@v2" - with: - path: "target/release/native_blockifier.pypy39-pp73-x86_64-linux-gnu.so" - destination: "native_blockifier_artifacts/${{ env.SHORT_HASH }}/release/" - - # Keep the name 'udeps' to match original action name, so we don't need to define specific branch - # rules on Github for specific version branches. - udeps: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run Machete (detect unused dependencies) - uses: bnjbvr/cargo-machete@main diff --git a/.github/workflows/blockifier/blockifier_compiled_cairo.yml b/.github/workflows/blockifier/blockifier_compiled_cairo.yml deleted file mode 100644 index 847eb30b79..0000000000 --- a/.github/workflows/blockifier/blockifier_compiled_cairo.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: CI - -on: - push: - branches: - - main - tags: - - v[0-9].** - - pull_request: - types: - - opened - - reopened - - synchronize - paths: - - 'crates/blockifier/feature_contracts/cairo0/**' - -jobs: - verify_cairo_file_dependencies: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - # 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 - - - run: - pip install -r crates/blockifier/tests/requirements.txt; - cargo test verify_feature_contracts -- --include-ignored diff --git a/.github/workflows/blockifier/blockifier_coverage.yml b/.github/workflows/blockifier/blockifier_coverage.yml deleted file mode 100644 index a92b63bfeb..0000000000 --- a/.github/workflows/blockifier/blockifier_coverage.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Coverage - -on: [pull_request, push] - -jobs: - coverage: - runs-on: ubuntu-20.04 - env: - CARGO_TERM_COLOR: always - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - # 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: ${{ steps.setup-pypy.outputs.pythonLocation }}/bin - run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV - - - name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov - # - name: Generate code coverage - # run: cargo llvm-cov --codecov --output-path codecov.json - # env: - # SEED: 0 - # - name: Upload coverage to Codecov - # uses: codecov/codecov-action@v3 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # verbose: true - # fail_ci_if_error: true diff --git a/.github/workflows/blockifier/blockifier_post-merge.yml b/.github/workflows/blockifier/blockifier_post-merge.yml deleted file mode 100644 index 0b42eeb4d0..0000000000 --- a/.github/workflows/blockifier/blockifier_post-merge.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: post-merge - -on: - pull_request: - types: - - closed -jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - prefix-key: "v0-rust-ubuntu-20.04" - - # 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 - - - run: | - pip install -r crates/blockifier/tests/requirements.txt - cargo test -- --include-ignored diff --git a/.github/workflows/blockifier/blockifier_verify-deps.yml b/.github/workflows/blockifier/blockifier_verify-deps.yml deleted file mode 100644 index 5e11b67b97..0000000000 --- a/.github/workflows/blockifier/blockifier_verify-deps.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Nightly Latest Dependencies Check - -on: - schedule: - - cron: '0 0 * * *' # Runs at 00:00 UTC every day - -jobs: - latest_deps: - name: Latest Dependencies - runs-on: ubuntu-20.04 - continue-on-error: true - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - name: Update Dependencies - run: cargo update --verbose - - name: Build - run: cargo build --verbose - - name: Test - run: cargo test --verbose