Skip to content
Merged
Show file tree
Hide file tree
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
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ parameters:
sync_test_op_node_dispatch:
type: boolean
default: false
ai_contracts_test_dispatch:
type: boolean
default: false
github-event-type:
type: string
default: "__not_set__"
Expand Down Expand Up @@ -985,6 +988,28 @@ jobs:
- "/root/.cache/go-build"
- notify-failures-on-develop

# AI Contracts Test Maintenance System
# Runbook: https://github.com/ethereum-optimism/optimism/blob/develop/ops/ai-eng/contracts-test-maintenance/docs/runbook.md
ai-contracts-test:
circleci_ip_ranges: true
docker:
- image: <<pipeline.parameters.default_docker_image>>
resource_class: xlarge
steps:
- checkout-from-workspace
- run:
name: Check Python version
command: python3 --version
- run:
name: Run AI Contracts Test System
command: just ai-contracts-test
working_directory: ops/ai-eng
no_output_timeout: 60m
- store_artifacts:
path: ops/ai-eng/contracts-test-maintenance/log.jsonl
destination: log.jsonl
- notify-failures-on-develop

contracts-bedrock-coverage:
circleci_ip_ranges: true
docker:
Expand Down Expand Up @@ -3074,3 +3099,17 @@ workflows:
context:
- circleci-repo-readonly-authenticated-github-token
- oplabs-tools-data-public-metrics-bucket

ai-contracts-test-workflow:
when:
equal: [true, << pipeline.parameters.ai_contracts_test_dispatch >>]
jobs:
- initialize:
context:
- circleci-repo-readonly-authenticated-github-token
- ai-contracts-test:
context:
- circleci-repo-readonly-authenticated-github-token
- devin-api
requires:
- initialize
2 changes: 1 addition & 1 deletion ops/ai-eng/contracts-test-maintenance/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1
0.3.2
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def _make_request(url, headers, data=None, method="GET"):
print(f"Request failed: {method} {url}")
print(f"Error: {e}")
raise
except TimeoutError as e:
print(f"Request timeout - will retry")
return None
except Exception as e:
print(f"Request failed: {method} {url}")
print(f"Error: {e}")
Expand Down