Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 24 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -922,14 +922,6 @@ jobs:
test_list:
description: List of test files to run
type: string
test_command:
description: Test command to execute (test or coverage)
type: string
default: test
test_flags:
description: Additional flags to pass to the test command
type: string
default: ""
test_timeout:
description: Timeout for running tests
type: string
Expand Down Expand Up @@ -987,7 +979,8 @@ jobs:
TEST_FILES=$(echo "$TEST_FILES" | circleci tests split --split-by=timings)
TEST_FILES=$(echo "$TEST_FILES" | sed 's|^test/||')
MATCH_PATH="./test/{$(echo "$TEST_FILES" | paste -sd "," -)}"
forge <<parameters.test_command>> <<parameters.test_flags>> --match-path "$MATCH_PATH"
mkdir -p results
forge test --match-path "$MATCH_PATH" --junit > results/results.xml
environment:
FOUNDRY_PROFILE: <<parameters.test_profile>>
working_directory: packages/contracts-bedrock
Expand All @@ -999,6 +992,11 @@ jobs:
FOUNDRY_PROFILE: ci
working_directory: packages/contracts-bedrock
when: on_fail
- when:
condition: always
steps:
- store_test_results:
path: packages/contracts-bedrock/results/results.xml
- run:
name: Lint forge test names
command: just lint-forge-tests-check-no-build
Expand Down Expand Up @@ -1033,7 +1031,9 @@ jobs:
working_directory: packages/contracts-bedrock
- run:
name: Run heavy fuzz tests
command: just test
command: |
mkdir -p results
just test --junit > results/results.xml
environment:
FOUNDRY_PROFILE: ciheavy
working_directory: packages/contracts-bedrock
Expand All @@ -1050,6 +1050,11 @@ jobs:
key: golang-build-cache-contracts-bedrock-heavy-fuzz-{{ checksum "go.sum" }}
paths:
- "~/.cache/go-build"
- when:
condition: always
steps:
- store_test_results:
path: packages/contracts-bedrock/results/results.xml
- notify-failures-on-develop

# AI Contracts Test Maintenance System
Expand Down Expand Up @@ -1090,10 +1095,6 @@ jobs:
- image: <<pipeline.parameters.default_docker_image>>
resource_class: 2xlarge
parameters:
test_flags:
description: Additional flags to pass to the test command
type: string
default: ""
test_timeout:
description: Timeout for running tests
type: string
Expand Down Expand Up @@ -1151,7 +1152,7 @@ jobs:
working_directory: packages/contracts-bedrock
- run:
name: Run coverage tests
command: just coverage-lcov-all <<parameters.test_flags>>
command: just coverage-lcov-all
environment:
FOUNDRY_PROFILE: <<parameters.test_profile>>
ETH_RPC_URL: https://ci-mainnet-l1-archive.optimism.io
Expand Down Expand Up @@ -1234,7 +1235,9 @@ jobs:
features: <<parameters.features>>
- run:
name: Run tests
command: just test-upgrade
command: |
mkdir -p results
just test-upgrade --junit > results/results.xml
environment:
FOUNDRY_FUZZ_SEED: 42424242
FOUNDRY_FUZZ_RUNS: 1
Expand Down Expand Up @@ -1271,6 +1274,11 @@ jobs:
- store_artifacts:
path: packages/contracts-bedrock/failed-test-traces.log
when: on_fail
- when:
condition: always
steps:
- store_test_results:
path: packages/contracts-bedrock/results/results.xml
- notify-failures-on-develop

contracts-bedrock-upload:
Expand Down