Skip to content

Commit 7869803

Browse files
authored
ci: enable pindexer integration tests (#5057)
## Describe your changes Follow-up to #5009, in which these tests were introduced, and #5048, which refactored the smoke tests to make additions like this easier. ## Issue ticket number and link See above. ## Testing and review The tests were already merged, this is just enabling them in CI, so CI passing, specifically on the smoke-test job, is enough. ## Checklist before requesting a review - [x] I have added guiding text to explain how a reviewer should test these changes. - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > tests/ci only, no changes to application code
1 parent 95dae9a commit 7869803

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

deployments/compose/process-compose-smoke-test.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ processes:
5656
availability:
5757
restart: exit_on_failure
5858

59+
# Run `pindexer` integration tests.
60+
test-pindexer:
61+
command: >-
62+
cargo nextest run --release -p pindexer --features network-integration
63+
log_location: deployments/logs/smoke-test-pindexer.log
64+
depends_on:
65+
pd:
66+
condition: process_healthy
67+
cometbft:
68+
condition: process_started
69+
test-pcli:
70+
condition: process_completed
71+
availability:
72+
restart: exit_on_failure
73+
5974
# Run `pd` integration tests. These run last, as the metrics checks
6075
# will be empty unless actual work has been performed.
6176
test-pd:
@@ -66,7 +81,7 @@ processes:
6681
condition: process_healthy
6782
cometbft:
6883
condition: process_started
69-
test-pcli:
84+
test-pindexer:
7085
condition: process_completed
7186
availability:
7287
restart: exit_on_failure
@@ -84,5 +99,7 @@ processes:
8499
condition: process_completed_successfully
85100
test-pcli:
86101
condition: process_completed_successfully
102+
test-pindexer:
103+
condition: process_completed_successfully
87104
availability:
88105
exit_on_end: true

deployments/scripts/smoke-test.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ fi
3737
cargo build --release -p pcli -p pclientd -p pd
3838

3939
# Reuse existing dev-env script
40-
# Temporary: cannot set ``--config ./deployments/compose/process-compose-postgres.yml`
41-
# because pindexer is currently failing due to GH4999.
4240
if ! "${repo_root}/deployments/scripts/run-local-devnet.sh" \
4341
--config ./deployments/compose/process-compose-metrics.yml \
4442
--config ./deployments/compose/process-compose-dev-tooling.yml \
43+
--config ./deployments/compose/process-compose-postgres.yml \
4544
--config ./deployments/compose/process-compose-smoke-test.yml \
4645
; then
4746
>&2 echo "ERROR: smoke tests failed"

0 commit comments

Comments
 (0)