Skip to content

Commit 831dee5

Browse files
author
Julian Ventura
committed
Merge
1 parent ad522cd commit 831dee5

File tree

171 files changed

+23136
-5947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+23136
-5947
lines changed

.github/workflows/build-and-test-go.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: build-go-projects
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:
@@ -23,7 +22,7 @@ jobs:
2322
- uses: actions/checkout@v4
2423
- uses: actions/setup-go@v5
2524
with:
26-
go-version: "1.22"
25+
go-version: "1.23"
2726
cache: false
2827
- name: Build SP1 bindings
2928
run: make build_sp1_linux
@@ -39,4 +38,3 @@ jobs:
3938
run: go build operator/cmd/main.go
4039
- name: Build aggregator
4140
run: go build aggregator/cmd/main.go
42-

.github/workflows/build-and-test-rust.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: build-and-test-rust-projects
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:

.github/workflows/send-proofs-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "[CI] Send proofs to network"
22

33
on:
4+
merge_group:
45
pull_request:
56
types:
67
- opened
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test-go-retries
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ["*"]
8+
paths:
9+
- 'core/**'
10+
- '.github/workflows/test-go-retries.yml'
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Clear device space
17+
run: |
18+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
19+
sudo rm -rf /usr/local/lib/android
20+
sudo rm -rf /opt/ghc
21+
sudo rm -rf /usr/local/.ghcup
22+
sudo rm -rf /usr/share/dotnet
23+
sudo rm -rf /opt/ghc
24+
sudo rm -rf "/usr/local/share/boost"
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
27+
with:
28+
go-version: '1.22'
29+
cache: false
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
toolchain: stable
33+
- name: foundry-toolchain
34+
uses: foundry-rs/[email protected]
35+
- name: Test go Retry Functions
36+
run: make test_go_retries

.github/workflows/test-merkle-tree.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test-merkle-tree
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:

.github/workflows/test-risc-zero-old.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test-risc-zero-old
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:
@@ -26,7 +25,7 @@ jobs:
2625
- uses: actions/checkout@v4
2726
- uses: actions/setup-go@v5
2827
with:
29-
go-version: "1.22"
28+
go-version: "1.23"
3029
cache: false
3130
- uses: actions-rs/toolchain@v1
3231
with:

.github/workflows/test-risc-zero.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test-risc-zero
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:
@@ -26,7 +25,7 @@ jobs:
2625
- uses: actions/checkout@v4
2726
- uses: actions/setup-go@v5
2827
with:
29-
go-version: "1.22"
28+
go-version: "1.23"
3029
cache: false
3130
- uses: actions-rs/toolchain@v1
3231
with:

.github/workflows/test-sp1-old.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test-sp1-old
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:
@@ -22,7 +21,7 @@ jobs:
2221
- uses: actions-rs/toolchain@v1
2322
with:
2423
toolchain: stable
25-
- name: Test Old SP1 Rust
26-
run: make test_sp1_rust_ffi_old
2724
- name: Test Old SP1 go bindings
2825
run: make test_sp1_go_bindings_linux_old
26+
- name: Test Old SP1 Rust
27+
run: make test_sp1_rust_ffi_old

.github/workflows/test-sp1.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: test-sp1
22

33
on:
4-
merge_group:
54
push:
65
branches: [main]
76
pull_request:

Makefile

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66
CONFIG_FILE?=config-files/config.yaml
77
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
88

9-
OPERATOR_VERSION=v0.10.2
9+
OPERATOR_VERSION=v0.10.3
1010

1111
ifeq ($(OS),Linux)
1212
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux
@@ -94,6 +94,29 @@ anvil_upgrade_add_aggregator:
9494
@echo "Adding Aggregator to Aligned Contracts..."
9595
. contracts/scripts/anvil/upgrade_add_aggregator_to_service_manager.sh
9696

97+
pause_all_aligned_service_manager:
98+
@echo "Pausing all contracts..."
99+
. contracts/scripts/pause_aligned_service_manager.sh all
100+
101+
unpause_all_aligned_service_manager:
102+
@echo "Pausing all contracts..."
103+
. contracts/scripts/unpause_aligned_service_manager.sh all
104+
105+
get_paused_state_aligned_service_manager:
106+
@echo "Getting paused state of Aligned Service Manager contract..."
107+
. contracts/scripts/get_paused_state_aligned_service_manager.sh
108+
109+
pause_batcher_payment_service:
110+
@echo "Pausing BatcherPayments contract..."
111+
. contracts/scripts/pause_batcher_payment_service.sh
112+
113+
unpause_batcher_payment_service:
114+
@echo "Unpausing BatcherPayments contract..."
115+
. contracts/scripts/unpause_batcher_payment_service.sh
116+
117+
get_paused_state_batcher_payments_service:
118+
@echo "Getting paused state of Batcher Payments Service contract..."
119+
. contracts/scripts/get_paused_state_batcher_payments_service.sh
97120
anvil_upgrade_initialize_disable_verifiers:
98121
@echo "Initializing disabled verifiers..."
99122
. contracts/scripts/anvil/upgrade_disabled_verifiers_in_service_manager.sh
@@ -120,6 +143,9 @@ aggregator_send_dummy_responses:
120143
@echo "Sending dummy responses to Aggregator..."
121144
@cd aggregator && go run dummy/submit_task_responses.go
122145

146+
test_go_retries:
147+
@cd core/ && \
148+
go test -v -timeout 15m
123149

124150
__OPERATOR__:
125151

@@ -169,7 +195,7 @@ bindings:
169195
cd contracts && ./generate-go-bindings.sh
170196

171197
test:
172-
go test ./...
198+
go test ./... -timeout 15m
173199

174200

175201
get_delegation_manager_address:
@@ -337,7 +363,7 @@ batcher_send_risc0_task_no_pub_input:
337363
--vm_program ../../scripts/test_files/risc_zero/no_public_inputs/no_pub_input_id.bin \
338364
--proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
339365
--rpc_url $(RPC_URL) \
340-
--payment_service_addr $(BATCHER_PAYMENTS_CONTRACT_ADDRESS)
366+
--network $(NETWORK)
341367

342368
batcher_send_risc0_burst:
343369
@echo "Sending Risc0 fibonacci task to Batcher..."
@@ -453,10 +479,18 @@ deploy_aligned_contracts: ## Deploy Aligned Contracts
453479
@echo "Deploying Aligned Contracts..."
454480
@. contracts/scripts/.env && . contracts/scripts/deploy_aligned_contracts.sh
455481

482+
deploy_pauser_registry: ## Deploy Pauser Registry
483+
@echo "Deploying Pauser Registry..."
484+
@. contracts/scripts/.env && . contracts/scripts/deploy_pauser_registry.sh
485+
456486
upgrade_aligned_contracts: ## Upgrade Aligned Contracts
457487
@echo "Upgrading Aligned Contracts..."
458488
@. contracts/scripts/.env && . contracts/scripts/upgrade_aligned_contracts.sh
459489

490+
upgrade_pauser_aligned_contracts: ## Upgrade Aligned Contracts with Pauser initialization
491+
@echo "Upgrading Aligned Contracts with Pauser initialization..."
492+
@. contracts/scripts/.env && . contracts/scripts/upgrade_add_pausable_to_service_manager.sh
493+
460494
upgrade_registry_coordinator: ## Upgrade Registry Coordinator
461495
@echo "Upgrading Registry Coordinator..."
462496
@. contracts/scripts/.env && . contracts/scripts/upgrade_registry_coordinator.sh
@@ -663,6 +697,13 @@ build_all_ffi_linux: ## Build all FFIs for Linux
663697
@echo "All Linux FFIs built successfully."
664698

665699
__EXPLORER__:
700+
701+
run_explorer_without_docker_db: explorer_ecto_setup_db
702+
@cd explorer/ && \
703+
pnpm install --prefix assets && \
704+
mix setup && \
705+
./start.sh
706+
666707
run_explorer: explorer_run_db explorer_ecto_setup_db
667708
@cd explorer/ && \
668709
pnpm install --prefix assets && \
@@ -977,11 +1018,11 @@ open_telemetry_prod_start: ## Run open telemetry services with Cassandra using t
9771018
# Elixir API
9781019
telemetry_start: telemetry_run_db telemetry_ecto_migrate ## Run Telemetry API
9791020
@cd telemetry_api && \
980-
./start.sh
1021+
./start.sh
9811022

9821023
telemetry_ecto_migrate: ##
9831024
@cd telemetry_api && \
984-
./ecto_setup_db.sh
1025+
./ecto_setup_db.sh
9851026

9861027
telemetry_build_db:
9871028
@cd telemetry_api && \
@@ -1006,3 +1047,25 @@ telemetry_dump_db:
10061047
telemetry_create_env:
10071048
@cd telemetry_api && \
10081049
cp .env.dev .env
1050+
1051+
setup_local_aligned_all:
1052+
tmux kill-session -t aligned_layer || true
1053+
tmux new-session -d -s aligned_layer
1054+
1055+
tmux new-window -t aligned_layer -n anvil
1056+
tmux send-keys -t aligned_layer 'make anvil_start_with_block_time' C-m
1057+
1058+
tmux new-window -t aligned_layer -n aggregator
1059+
tmux send-keys -t aligned_layer:aggregator 'make aggregator_start' C-m
1060+
1061+
tmux new-window -t aligned_layer -n operator
1062+
tmux send-keys -t aligned_layer:operator 'sleep 5 && make operator_register_and_start' C-m
1063+
1064+
tmux new-window -t aligned_layer -n batcher
1065+
tmux send-keys -t aligned_layer:batcher 'sleep 60 && make batcher_start_local' C-m
1066+
1067+
tmux new-window -t aligned_layer -n explorer
1068+
tmux send-keys -t aligned_layer:explorer 'make explorer_create_env && make explorer_build_db && make run_explorer' C-m
1069+
1070+
tmux new-window -t aligned_layer -n telemetry
1071+
tmux send-keys -t aligned_layer:telemetry 'docker compose -f telemetry-docker-compose.yaml down && make telemetry_create_env && make telemetry_run_db && make open_telemetry_start && make telemetry_start' C-m

0 commit comments

Comments
 (0)