Daily Blockchain Tests #3
Workflow file for this run
This file contains hidden or 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
name: Daily Reference Blockchain Tests | ||
on: | ||
schedule: | ||
- cron: 0 21 * * * | ||
workflow_dispatch: | ||
inputs: | ||
failed_tests_file_name: | ||
description: File name for filtering failed tests based on previous runs | ||
required: false | ||
type: string | ||
failed_tests_file_path: | ||
description: File path for filtering failed tests based on previous runs | ||
required: false | ||
type: string | ||
failed_module: | ||
description: Specific module to filter from failed tests | ||
required: false | ||
type: string | ||
failed_constraint: | ||
description: Specific module constrain pair to filter from failed tests | ||
required: false | ||
type: string | ||
jobs: | ||
ethereum-tests: | ||
runs-on: ubuntu-latest-128 | ||
steps: | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.CONSTRAINTS_SSH_KEY }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: get-branch-name | ||
id: extract_branch | ||
run: | | ||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
# The asset URL for the latest release can be found with: | ||
# curl -L -H "Accept: application/vnd.github+json" \ | ||
# -H "Authorization: Bearer YOUR_GH_API_TOKEN" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# https://api.github.com/repos/ConsenSys/corset/releases/latest | ||
# | jq '.assets[] | select(.name|endswith("x86_64-unknown-linux-musl.tar.gz")) | .url' | ||
- name: Install Corset | ||
run: RUSTFLAGS=-Awarnings cargo install --git ssh://[email protected]/ConsenSys/corset --tag v9.7.13 --locked --force | ||
# run: | | ||
# curl -L \ | ||
# -H "Accept: application/octet-stream" \ | ||
# -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
# -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
# -o corset.tar.gz \ | ||
# https://api.github.com/repos/Consensys/corset/releases/assets/151396061 | ||
# tar xzf corset.tar.gz | ||
# mv corset $HOME | ||
# echo $HOME >> $GITHUB_PATH | ||
- name: Generate block chain reference tests | ||
run: ./gradlew :reference-tests:generateBlockchainReferenceTests -Dorg.gradle.parallel=true -Dorg.gradle.caching=true | ||
env: | ||
JAVA_OPTS: -Dorg.gradle.daemon=false -DZKEVM_BIN_ORIGINAL_PATH="linea-constraints/zkevm.bin" | ||
CORSET_FLAGS: fields,expand,expand,expand | ||
- name: generate zkevm.bin | ||
run: cd ./linea-constraints; make zkevm.bin -B; cd .. | ||
- name: Run reference blockchain tests | ||
run: ./gradlew referenceBlockchainTests | ||
env: | ||
JAVA_OPTS: -Dorg.gradle.daemon=false | ||
CORSET_FLAGS: fields,expand,expand,expand | ||
FAILED_TESTS_FILE_NAME: ${{ inputs.failed_tests_file_name || '' }} | ||
FAILED_TEST_JSON_DIRECTORY: ${{ inputs.failed_tests_file_path || github.workspace + '/tmp/' + steps.extract_branch.outputs.branch + '/' }} | ||
Check failure on line 87 in .github/workflows/reference-blockchain-tests.yml
|
||
FAILED_MODULE: ${{ inputs.failed_module || '' }} | ||
FAILED_CONSTRAINT: ${{ inputs.failed_constraint || '' }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: my-artifact | ||
path: ${{ github.workspace }}/tmp/${{ steps.extract_branch.outputs.branch }}/${{ inputs.failed_tests_file_name }} |