From beab11aed32f216bfe81f776344a05872b58ec02 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Sun, 6 Oct 2024 15:56:12 -0400 Subject: [PATCH] chore: restore workflows: committer_ci.yml and papyrus_nightly-tests.yml --- .github/workflows/committer_ci.yml | 40 ++++++++++----------- .github/workflows/papyrus_nightly-tests.yml | 6 ++-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/committer_ci.yml b/.github/workflows/committer_ci.yml index c692de6909..6ae36007ac 100644 --- a/.github/workflows/committer_ci.yml +++ b/.github/workflows/committer_ci.yml @@ -8,14 +8,14 @@ on: tags: - v[0-9].** paths: - - ".github/workflows/committer_ci.yml" - - "Cargo.toml" - - "Cargo.lock" - - "crates/committer_cli/**" - - "crates/starknet_api/**" - - "crates/starknet_committer/**" - - "crates/starknet_patricia/**" - - "scripts/dependencies.sh" + - '.github/workflows/committer_ci.yml' + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/committer_cli/**' + - 'crates/starknet_api/**' + - 'crates/starknet_committer/**' + - 'crates/starknet_patricia/**' + - 'scripts/dependencies.sh' pull_request: types: @@ -25,14 +25,14 @@ on: - auto_merge_enabled - edited paths: - - ".github/workflows/committer_ci.yml" - - "Cargo.toml" - - "Cargo.lock" - - "crates/committer_cli/**" - - "crates/starknet_api/**" - - "crates/starknet_committer/**" - - "crates/starknet_patricia/**" - - "scripts/dependencies.sh" + - '.github/workflows/committer_ci.yml' + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/committer_cli/**' + - 'crates/starknet_api/**' + - 'crates/starknet_committer/**' + - 'crates/starknet_patricia/**' + - 'scripts/dependencies.sh' # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: @@ -51,7 +51,7 @@ jobs: uses: "google-github-actions/auth@v2" with: credentials_json: ${{ secrets.COMMITER_PRODUCTS_EXT_WRITER_JSON }} - - uses: "google-github-actions/setup-gcloud@v2" + - uses: 'google-github-actions/setup-gcloud@v2' - run: echo "BENCH_INPUT_FILES_PREFIX=$(cat ./crates/committer_cli/src/tests/flow_test_files_prefix)" >> $GITHUB_ENV - run: gcloud storage cp -r gs://committer-testing-artifacts/$BENCH_INPUT_FILES_PREFIX/* ./crates/committer_cli/test_inputs - run: cargo test -p committer_cli --release -- --include-ignored test_regression @@ -70,7 +70,7 @@ jobs: uses: "google-github-actions/auth@v2" with: credentials_json: ${{ secrets.COMMITER_PRODUCTS_EXT_WRITER_JSON }} - - uses: "google-github-actions/setup-gcloud@v2" + - uses: 'google-github-actions/setup-gcloud@v2' - run: echo "OLD_BENCH_INPUT_FILES_PREFIX=$(cat ./crates/committer_cli/src/tests/flow_test_files_prefix)" >> $GITHUB_ENV - run: gcloud storage cp -r gs://committer-testing-artifacts/$OLD_BENCH_INPUT_FILES_PREFIX/* ./crates/committer_cli/test_inputs @@ -123,7 +123,7 @@ jobs: }) gcs-push: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-20-04-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -143,7 +143,7 @@ jobs: run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV - name: Build CLI binary - run: cargo build -p committer_cli -r --bin committer_cli --target-dir CLI_TARGET + run: ./build_native_in_docker.sh cargo build -p committer_cli -r --bin committer_cli --target-dir CLI_TARGET - id: auth uses: "google-github-actions/auth@v2" diff --git a/.github/workflows/papyrus_nightly-tests.yml b/.github/workflows/papyrus_nightly-tests.yml index 03bb55fe1f..0592f28e3e 100644 --- a/.github/workflows/papyrus_nightly-tests.yml +++ b/.github/workflows/papyrus_nightly-tests.yml @@ -2,9 +2,9 @@ name: Papyrus-Nightly-Tests # We run gateway_integration_test at different times, to avoid a nonce race between parallel runs. on: schedule: - - cron: "30 22 * * *" # Uses ubuntu runner. - - cron: "30 0 * * *" # Uses macos runner. - workflow_dispatch: # Uses ubuntu runner. + - cron: '30 22 * * *' # Uses ubuntu runner. + - cron: '30 0 * * *' # Uses macos runner. + workflow_dispatch: # Uses ubuntu runner. jobs: GW-integration-test-ubuntu: