-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (43 loc) · 1.8 KB
/
blockifier_reexecution_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Blockifier-Reexecution-CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
- edited
paths:
# Other than code-related changes, all changes related to the blockifier should trigger the build.
- '.github/workflows/blockifier_reexecution_ci.yml'
- 'Cargo.lock'
- 'Cargo.toml'
- 'crates/blockifier/**'
- 'crates/blockifier_reexecution/**'
- 'scripts/dependencies.sh'
- 'scripts/install_build_tools.sh'
- 'scripts/sequencer-ci.Dockerfile'
env:
RUSTFLAGS: "-D warnings"
# 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:
blockifier_reexecution:
runs-on: starkware-ubuntu-latest-medium
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
# Download the blockifier re-execution test data.
- id: auth
uses: "google-github-actions/auth@v2"
with:
credentials_json: ${{ secrets.SA_REEXECUTION_ARTIFACTS_READ_ACCESS_KEY }}
- uses: 'google-github-actions/setup-gcloud@v2'
- run: echo "REEXECUTION_INPUT_FILES_PREFIX=$(cat ./crates/blockifier_reexecution/resources/offline_reexecution_files_prefix)" >> $GITHUB_ENV
- run: gcloud storage cp -r gs://reexecution_artifacts/$REEXECUTION_INPUT_FILES_PREFIX/resources/* ./crates/blockifier_reexecution/resources/
# Run blockifier re-execution tests.
- run: cargo test --release -p blockifier_reexecution -- --include-ignored
# Compile the rpc-tests, without running them.
- run: cargo test --release -p blockifier_reexecution --features blockifier_regression_https_testing --no-run