diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index f3d745126c..b45246fd9b 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -41,7 +41,7 @@ concurrency: jobs: featureless-build: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-20-04-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap diff --git a/.github/workflows/blockifier_compiled_cairo.yml b/.github/workflows/blockifier_compiled_cairo.yml index 2dc33c6e68..2ad83fda7a 100644 --- a/.github/workflows/blockifier_compiled_cairo.yml +++ b/.github/workflows/blockifier_compiled_cairo.yml @@ -7,12 +7,12 @@ on: - reopened - synchronize paths: - - ".github/workflows/blockifier_compiled_cairo.yml" - - "crates/blockifier/feature_contracts/**" - - "crates/blockifier/src/test_utils/cairo_compile.rs" - - "crates/blockifier/tests/feature_contracts_compatibility_test.rs" - - "crates/blockifier/tests/requirements.txt" - - "scripts/dependencies.sh" + - '.github/workflows/blockifier_compiled_cairo.yml' + - 'crates/blockifier/feature_contracts/**' + - 'crates/blockifier/src/test_utils/cairo_compile.rs' + - 'crates/blockifier/tests/feature_contracts_compatibility_test.rs' + - 'crates/blockifier/tests/requirements.txt' + - 'scripts/dependencies.sh' # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: @@ -21,7 +21,7 @@ concurrency: jobs: verify_cairo_file_dependencies: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-20-04-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -30,7 +30,7 @@ jobs: - uses: actions/setup-python@v5 id: setup-pypy with: - python-version: "pypy3.9" + 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 @@ -40,16 +40,16 @@ jobs: - name: checkout sequencer into `sequencer` directory. uses: actions/checkout@v4 with: - repository: "starkware-libs/sequencer" - path: "sequencer" + repository: 'starkware-libs/sequencer' + path: 'sequencer' - name: checkout cairo1 repo in order to compile cairo1 contracts. uses: actions/checkout@v4 with: - repository: "starkware-libs/cairo" + repository: 'starkware-libs/cairo' fetch-depth: 0 fetch-tags: true - path: "cairo" + path: 'cairo' - name: install toolchain for legacy contract compilation (old compiler tag) uses: actions-rs/toolchain@master diff --git a/.github/workflows/clean_stale_prs.yml b/.github/workflows/clean_stale_prs.yml index a30494b701..1ccbe73ac8 100644 --- a/.github/workflows/clean_stale_prs.yml +++ b/.github/workflows/clean_stale_prs.yml @@ -9,7 +9,7 @@ on: jobs: stale: name: ๐Ÿงน Clean up stale issues and PRs - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-small steps: - name: ๐Ÿš€ Run stale uses: actions/stale@v3 diff --git a/.github/workflows/lock_closed_prs.yml b/.github/workflows/lock_closed_prs.yml index e49213b874..91b0175ffd 100644 --- a/.github/workflows/lock_closed_prs.yml +++ b/.github/workflows/lock_closed_prs.yml @@ -7,26 +7,26 @@ on: workflow_dispatch: jobs: - # lock: - name: ๐Ÿ”’ Lock closed issues and PRs - runs-on: ubuntu-22.04 - steps: - - uses: dessant/lock-threads@v2.0.3 - with: - github-token: ${{ github.token }} - issue-lock-inactive-days: "30" - issue-lock-reason: "" - issue-comment: > - Issue closed and locked due to lack of activity. - - If you encounter this same issue, please open a new issue and refer - to this closed one. - pr-lock-inactive-days: "1" - pr-lock-reason: "" - pr-comment: > - Pull Request closed and locked due to lack of activity. - - If you'd like to build on this closed PR, you can clone it using - this method: https://stackoverflow.com/a/14969986 - - Then open a new PR, referencing this closed PR in your message. + lock: + name: ๐Ÿ”’ Lock closed issues and PRs + runs-on: starkware-ubuntu-latest-small + steps: + - uses: dessant/lock-threads@v2.0.3 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: "30" + issue-lock-reason: "" + issue-comment: > + Issue closed and locked due to lack of activity. + + If you encounter this same issue, please open a new issue and refer + to this closed one. + pr-lock-inactive-days: "1" + pr-lock-reason: "" + pr-comment: > + Pull Request closed and locked due to lack of activity. + + If you'd like to build on this closed PR, you can clone it using + this method: https://stackoverflow.com/a/14969986 + + Then open a new PR, referencing this closed PR in your message. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac66ec0d89..8e582a3113 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ concurrency: jobs: commitlint: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-small steps: - uses: actions/checkout@v4 with: @@ -117,7 +117,6 @@ jobs: python3 -m venv ci ci/bin/pip install -r scripts/requirements.txt ci/bin/python scripts/run_tests.py --changes_only --commit_id ${{ github.event.pull_request.base.sha }} - ci/bin/python scripts/run_tests.py --changes_only --concurrency --commit_id ${{ github.event.pull_request.base.sha }} env: SEED: 0 @@ -128,7 +127,6 @@ jobs: python3 -m venv ci ci/bin/pip install -r scripts/requirements.txt ci/bin/python scripts/run_tests.py - ci/bin/python scripts/run_tests.py --concurrency env: SEED: 0 diff --git a/.github/workflows/merge_paths_ci.yml b/.github/workflows/merge_paths_ci.yml index e9c731f719..a1efb2ef34 100644 --- a/.github/workflows/merge_paths_ci.yml +++ b/.github/workflows/merge_paths_ci.yml @@ -23,7 +23,7 @@ concurrency: jobs: merge-paths-test: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-small steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/papyrus/helm-install.yml b/.github/workflows/papyrus/helm-install.yml index 280bb54b53..886f307f09 100644 --- a/.github/workflows/papyrus/helm-install.yml +++ b/.github/workflows/papyrus/helm-install.yml @@ -14,7 +14,7 @@ on: jobs: deploy-teardown: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-small permissions: contents: "read" id-token: "write" diff --git a/.github/workflows/papyrus_benchmark.yaml b/.github/workflows/papyrus_benchmark.yaml index 6a1a4edede..b7912e4957 100644 --- a/.github/workflows/papyrus_benchmark.yaml +++ b/.github/workflows/papyrus_benchmark.yaml @@ -8,7 +8,7 @@ on: jobs: storage-benchmark: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest permissions: contents: "write" id-token: "write" diff --git a/.github/workflows/papyrus_ci.yml b/.github/workflows/papyrus_ci.yml index fc33c1eaec..6a2775aca6 100644 --- a/.github/workflows/papyrus_ci.yml +++ b/.github/workflows/papyrus_ci.yml @@ -4,15 +4,15 @@ on: push: branches: [main] paths: - - ".github/workflows/papyrus_ci.yml" - - "Dockerfile" - - "papyrus_utilities.Dockerfile" - - "Cargo.toml" - - "Cargo.lock" - - "crates/papyrus**/**" - - "crates/sequencing/**" - - "crates/starknet_client/**" - - "scripts/dependencies.sh" + - '.github/workflows/papyrus_ci.yml' + - 'Dockerfile' + - 'papyrus_utilities.Dockerfile' + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/papyrus**/**' + - 'crates/sequencing/**' + - 'crates/starknet_client/**' + - 'scripts/dependencies.sh' pull_request: types: @@ -22,15 +22,15 @@ on: - auto_merge_enabled - edited # for when the PR title is edited paths: - - ".github/workflows/papyrus_ci.yml" - - "Dockerfile" - - "papyrus_utilities.Dockerfile" - - "Cargo.toml" - - "Cargo.lock" - - "crates/papyrus**/**" - - "crates/sequencing/**" - - "crates/starknet_client/**" - - "scripts/dependencies.sh" + - '.github/workflows/papyrus_ci.yml' + - 'Dockerfile' + - 'papyrus_utilities.Dockerfile' + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/papyrus**/**' + - 'crates/sequencing/**' + - 'crates/starknet_client/**' + - 'scripts/dependencies.sh' merge_group: types: [checks_requested] @@ -42,7 +42,7 @@ concurrency: jobs: executable-run: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -57,7 +57,7 @@ jobs: & sleep 30 ; kill $! executable-run-no-rpc: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -72,7 +72,7 @@ jobs: & sleep 30 ; kill $! p2p-sync-e2e-test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -84,7 +84,7 @@ jobs: run: scripts/papyrus/p2p_sync_e2e_test/main.sh ${{ secrets.CI_BASE_LAYER_NODE_URL }} integration-test: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -97,7 +97,7 @@ jobs: cargo run -r -p papyrus_node --bin central_source_integration_test --features="futures-util tokio-stream" test-no-rpc: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 - uses: ./.github/actions/bootstrap @@ -107,7 +107,7 @@ jobs: SEED: 0 check-starknet_api-dependency: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-small if: github.base_ref == 'main' # this step is only run if the pr is to the main branch steps: - uses: actions/checkout@v4 @@ -115,7 +115,7 @@ jobs: - run: ./check_starknet_api_version_dependency.sh # this script checks that if the starknet_api dependency is by git rev then this rev (commit) is on main build-papyrus-utilities-image: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 - name: Set up Docker Buildx @@ -131,7 +131,7 @@ jobs: cache-to: type=gha,mode=max,scope=buildkit-ci random-table-test: - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium steps: - uses: actions/checkout@v4 # run this job only if the path 'crates/papyrus_storage/src/db/**' is changed, because it takes around 2 minutes. diff --git a/.github/workflows/verify-deps.yml b/.github/workflows/verify-deps.yml index a918e4ce3e..8582cb1b6b 100644 --- a/.github/workflows/verify-deps.yml +++ b/.github/workflows/verify-deps.yml @@ -2,12 +2,12 @@ name: Nightly Latest Dependencies Check on: schedule: - - cron: "0 0 * * *" # Runs at 00:00 UTC every day + - cron: '0 0 * * *' # Runs at 00:00 UTC every day jobs: latest_deps: name: Latest Dependencies - runs-on: ubuntu-22.04 + runs-on: starkware-ubuntu-latest-medium continue-on-error: true steps: - uses: actions/checkout@v4