Skip to content

Commit

Permalink
chore: restored several workflow files
Browse files Browse the repository at this point in the history
List of files restored:
.github/workflows/blockifier_ci.yml
.github/workflows/blockifier_compiled_cairo.yml
.github/workflows/clean_stale_prs.yml
.github/workflows/lock_closed_prs.yml
.github/workflows/main.yml
.github/workflows/merge_paths_ci.yml
.github/workflows/papyrus/helm-install.yml
.github/workflows/papyrus_benchmark.yaml
.github/workflows/papyrus_ci.yml
.github/workflows/verify-deps.yml
  • Loading branch information
rodrigo-pino committed Oct 6, 2024
1 parent 2cbd5dc commit 425acc7
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/blockifier_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/blockifier_compiled_cairo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean_stale_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/lock_closed_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ on:
workflow_dispatch:

jobs:
# lock:
name: 🔒 Lock closed issues and PRs
runs-on: ubuntu-22.04
steps:
- uses: dessant/[email protected]
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/[email protected]
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.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
commitlint:
runs-on: ubuntu-22.04
runs-on: starkware-ubuntu-latest-small
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_paths_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus/helm-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/papyrus_benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
storage-benchmark:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: "write"
id-token: "write"
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/papyrus_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -107,15 +107,15 @@ 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
- run: sudo apt-get install jq
- 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
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 425acc7

Please sign in to comment.