Skip to content

Commit d065739

Browse files
committed
test: fix some typos
test: remove commented code; fix typos build: move deps to workspace
1 parent a58c416 commit d065739

File tree

6 files changed

+10
-24
lines changed

6 files changed

+10
-24
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ tracing-subscriber = { version = "0.3", features = [
122122
uuid = { version = "1.11.0", features = ["v7"] }
123123
wiremock = "0.6.1"
124124
wiremock-grpc = { git = "https://github.com/suchapalaver/wiremock-grpc-rs.git", branch = "main" }
125+
rdkafka = { version = "0.38.0", features = ["gssapi", "tracing"] }
126+
regex = "1"
125127

126128
# Insta benefits from being compiled in release mode, even as dev dependency
127129
# see https://insta.rs/docs/quickstart

integration-tests/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,5 @@ sqlx = { workspace = true, features = [
4040
"rust_decimal",
4141
"uuid",
4242
] }
43-
# rdkafka = { workspace = true }
44-
rdkafka = { version = "0.38.0", features = ["gssapi", "tracing"] }
45-
regex = "1"
43+
rdkafka = { workspace = true }
44+
regex = { workspace = true }

integration-tests/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ mod env_loader;
77
#[allow(dead_code)]
88
mod indexer_cli;
99
mod load_test;
10-
// Lets keep the metrics parser disable
10+
// Lets keep the metrics parser disabled
1111
// we are moving towards using database_checker
12-
// for more robust checks and using the soley source of truth
12+
// for more robust checks and using the sole source of truth
1313
// mod metrics;
1414
mod rav_tests;
1515
mod signature_test;

integration-tests/src/rav_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ use crate::{
2929
};
3030

3131
const WAIT_TIME_BATCHES: u64 = 40;
32-
const NUM_RECEIPTS: u32 = 30; // Increased to 30 receipts per batch
32+
const NUM_RECEIPTS: u32 = 30;
3333

3434
// Send receipts in batches with a delay in between
3535
// to ensure some receipts get outside the timestamp buffer
36-
const BATCHES: u32 = 15; // Increased to 15 batches for total 450 receipts in Stage 1
37-
const MAX_TRIGGERS: usize = 20000; // Increased trigger attempts to 200
36+
const BATCHES: u32 = 15;
37+
const MAX_TRIGGERS: usize = 20000;
3838

3939
// Function to test the tap RAV generation
4040
// Function to test the TAP RAV generation for V1 using the database checker

integration-tests/src/utils.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@ impl GatewayReceiptSigner {
215215
.try_into()
216216
.map_err(|_| anyhow::anyhow!("failed to convert timestamp to ns"))?;
217217

218-
// let timestamp_ns = SystemTime::now()
219-
// .duration_since(SystemTime::UNIX_EPOCH)?
220-
// .as_nanos() as u64;
221-
222218
// Use the same domain creation as working V2 tests
223219
let eip712_domain_separator = tap_eip712_domain(
224220
self.chain_id,

setup-test-network.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,11 @@ echo "Starting core infrastructure services..."
184184
docker compose up -d chain ipfs postgres graph-node
185185
# Wait for graph-node to be healthy
186186
echo "Waiting for graph-node to be healthy..."
187-
# timeout 300 bash -c 'until docker ps | grep graph-node | grep -q healthy; do sleep 5; done'
188187
interruptible_wait 300 'docker ps | grep graph-node | grep -q healthy' "Waiting for graph-node to be healthy"
189188

190189
echo "Deploying contract services..."
191190
docker compose up -d graph-contracts
192191
# Wait for contracts to be deployed
193-
# timeout 300 bash -c 'until docker ps -a | grep graph-contracts | grep -q "Exited (0)"; do sleep 5; done'
194192
interruptible_wait 300 'docker ps -a | grep graph-contracts | grep -q "Exited (0)"' "Waiting for contracts to be deployed"
195193

196194
# Verify the contracts have code using horizon structure
@@ -255,22 +253,19 @@ docker compose up -d tap-contracts
255253
echo "Starting indexer services..."
256254
docker compose up -d block-oracle
257255
echo "Waiting for block-oracle to be healthy..."
258-
# timeout 300 bash -c 'until docker ps | grep block-oracle | grep -q healthy; do sleep 5; done'
259256
interruptible_wait 300 'docker ps | grep block-oracle | grep -q healthy' "Waiting for block-oracle to be healthy"
260257

261258
# export INDEXER_AGENT_SOURCE_ROOT=/home/neithanmo/Documents/Work/Semiotic/indexer-rs/indexer-src
262259
# If INDEXER_AGENT_SOURCE_ROOT is set, use dev override; otherwise start only indexer-agent
263-
# export INDEXER_AGENT_SOURCE_ROOT=/home/neithanmo/Documents/Work/Semiotic/indexer-rs/indexer-agent
264260
if [[ -n "${INDEXER_AGENT_SOURCE_ROOT:-}" ]]; then
265261
echo "INDEXER_AGENT_SOURCE_ROOT set; using dev override for indexer-agent."
266262
docker compose -f docker-compose.yaml -f overrides/indexer-agent-dev/indexer-agent-dev.yaml up -d
267263
else
268-
echo "Starting indexer-agent from oficial release"
264+
echo "Starting indexer-agent from official release"
269265
docker compose up -d indexer-agent
270266
fi
271267

272268
echo "Waiting for indexer-agent to be healthy..."
273-
# timeout 300 bash -c 'until docker ps | grep indexer-agent | grep -q healthy; do sleep 5; done'
274269
interruptible_wait 300 'docker ps | grep indexer-agent | grep -q healthy' "Waiting for indexer-agent to be healthy"
275270

276271
# Ensure indexer-agent DB migrations completed (denylist tables must exist)
@@ -339,23 +334,18 @@ fi
339334
# Run the custom services using the override file
340335
docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d
341336

342-
343337
# Wait for indexer-service and tap-agent to be healthy with better timeouts
344338
echo "Waiting for indexer-service to be healthy..."
345-
# timeout 120 bash -c 'until docker ps | grep indexer-service | grep -q healthy; do echo "Still waiting for indexer-service..."; sleep 5; done'
346339
interruptible_wait 120 'docker ps | grep indexer-service | grep -q healthy' "Waiting for indexer-service to be healthy"
347340

348341
echo "Waiting for tap-agent to be healthy..."
349-
# timeout 120 bash -c 'until docker ps | grep tap-agent | grep -q healthy; do echo "Still waiting for tap-agent..."; sleep 5; done'
350342
interruptible_wait 120 'docker ps | grep tap-agent | grep -q healthy' "Waiting for tap-agent to be healthy"
351343

352344
# Additional check to ensure services are responding
353345
echo "Verifying indexer-service is responding..."
354-
# timeout 60 bash -c 'until curl -f http://localhost:7601/health > /dev/null 2>&1; do echo "Waiting for indexer-service health endpoint..."; sleep 3; done'
355346
interruptible_wait 60 'curl -f http://localhost:7601/health > /dev/null 2>&1' "Verifying indexer-service is responding"
356347

357348
echo "Verifying tap-agent is responding..."
358-
# timeout 60 bash -c 'until curl -f http://localhost:7300/metrics > /dev/null 2>&1; do echo "Waiting for tap-agent metrics endpoint..."; sleep 3; done'
359349
interruptible_wait 60 'curl -f http://localhost:7300/metrics > /dev/null 2>&1' "Verifying tap-agent is responding"
360350

361351
# Wait for indexer to sync with chain before starting gateway
@@ -410,7 +400,6 @@ for i in {1..3}; do
410400
done
411401

412402
# Ensure gateway is ready before testing
413-
# timeout 100 bash -c 'until curl -f http://localhost:7700/ > /dev/null 2>&1; do echo "Waiting for gateway service..."; sleep 5; done'
414403
interruptible_wait 100 'curl -f http://localhost:7700/ > /dev/null 2>&1' "Waiting for gateway service"
415404

416405
# Build and start indexer-cli for integration testing (last container)

0 commit comments

Comments
 (0)