-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Script Evaluation Test to GHA (#5095)
- Loading branch information
Showing
6 changed files
with
73 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
.github/workflows/test.yml → .github/workflows/pre-commit-check.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
name: "Tests" | ||
name: Pre Commit Check | ||
on: | ||
pull_request: | ||
jobs: | ||
nix-sanity-checks: | ||
pre-commit-check: | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: nixbuild/nix-quick-install-action@v21 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Quick Install Nix | ||
uses: nixbuild/nix-quick-install-action@v21 | ||
with: | ||
nix_conf: | | ||
experimental-features = nix-command flakes | ||
accept-flake-config = true | ||
- name: Pre-commit check | ||
- name: Run | ||
run: nix build .#pre-commit-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# A nightly job which downloads script evaluation dumps from S3 and runs a regression test. | ||
name: Script Evaluation Test | ||
on: | ||
schedule: | ||
- cron: 30 3 * * * # 3:30am every day | ||
|
||
concurrency: | ||
group: script-evaluation-test | ||
# We only want at most one evaluation test running at a time | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
script-evaluation-test: | ||
runs-on: [self-hosted, plutus-benchmark] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.3.0 | ||
|
||
- name: Download and Unzip Dump Files | ||
run: | | ||
export LOCAL_DIR="$HOME/mainnet-script-dump-downloaded" | ||
nix develop --no-warn-dirty --accept-flake-config --command \ | ||
bash ./scripts/s3-sync-unzip.sh s3://plutus/mainnet-script-dump/ \*.event.bz2 | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: us-east-1 | ||
AWS_ENDPOINT_URL: https://s3.devx.iog.io | ||
|
||
- name: Run | ||
# Run the test cases sequentially. This ensures we don't need to simultaneously store | ||
# multiple `ScriptEvaluationEvents`, which are large, in memory. Each test case | ||
# contains many script evaluation events, and those are run in parallel based on | ||
# the number of available processors. | ||
run: | | ||
export EVENT_DUMP_DIR="$HOME/mainnet-script-dump-downloaded" | ||
nix run .#x86_64-linux.plutus.library.plutus-project-924.hsPkgs.plutus-ledger-api.components.exes.evaluation-test -- --num-threads=1 | ||
This file was deleted.
Oops, something went wrong.