Add Phase-2a Postgres-backed indexer-integration CI job (#421) #971
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!971
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/421-ci-indexer-integration-phase2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase-2a of #421: adds the Postgres-backed indexer-integration job to the GitLab
teststage — the fullindexer/tests/suite thattest-indexer-libskips.What
test-indexer-integration:postgres:16service container (no DinD, no LocalTerra). The harness (indexer/tests/common/mod.rs::setup_pool) runssqlx::migrate!()itself, so the service only has to provision thecl8y_legalrole +dex_indexer_testDB.-j1 --test-threads=1— the suite shares onedex_indexer_testDB andapi_hooksfalse-fails under parallel access (docs/qa-invariants.md).cargo test(PgPool::connectdoes not retry, so it can race the service start).indexer/**+.gitlab-ci.yml, noallow_failure. Mirrorsmake test-indexer-integration.docs/testing.mdCI parity table + Phase wording updated.Evidence
2a06048b):cargo test --tests -j1 -- --test-threads=1= 542 passed / 0 failed across the full suite (incl.api_limit_lower_bound16,limit_clamp_guardrail1,security35,api_route_solve24 +api_route_solve_db_hybrid4).ci/linton the merged config: valid, 0 errors / 0 warnings.Out of scope
The remaining Phase-2 row — the scheduled DinD-LocalTerra Playwright E2E — is heavier (browsers + a live chain) and stays open under #421.
Part of #421 (Phase-2a; the E2E row remains open).
Security review — MR !971
Commit reviewed:
e64fc7d1b8a5eead8e128a9702371be819759cbf(base2a06048b)Scope: Phase-2a GitLab CI — new
test-indexer-integrationjob (postgres:16service container, serialcargo test --tests) anddocs/testing.mdparity table / Phase wording updates.Method: Diff-only review; traced CI variables and service wiring to the existing indexer integration harness (
indexer/tests/common/mod.rs::setup_pool,TEST_DATABASE_URL). No prior security-review threads on this MR.Outcome:
FINDINGS: 0medium+Summary
This MR adds hosted CI execution of an integration suite that already runs locally via
make test-indexer-integration. Changes are confined to.gitlab-ci.ymland documentation.Reviewed attack surfaces:
cargo test --tests; no shell interpolation of attacker input. TCP readiness loop uses a static host/port.cl8y_legal:cl8y_legal+TEST_DATABASE_URLare the documented local/test Postgres credentials (skills/AGENTS_LOCAL_POSTGRES_DEV.md,scripts/lib/postgres-dev.env). They provision an ephemeralpostgres:16service on the runner-internal network only — not production. Job-levelvariables:pinsTEST_DATABASE_URL, overriding project-level env if present.indexer/.envis gitignored and not in cache paths.services:sidecar reachable only from the job container (postgres:5432). Integration harness binds API tests to127.0.0.1; no new inbound listener on the runner.localhost:9999LCD mock).postgres:16andrust:1.96-bookwormfollow the same unpinned-image pattern as the reference.github/workflows/test.ymlindexer job and existing GitLab test jobs;gitleaksremains separately pinned per #380.test-indexer-integrationcache key is job-scoped; paths mirrortest-indexer-lib. No plausible cross-pipeline credential or artifact exfil path identified on this diff.Security review: no medium+ findings on this diff.
No inline threads (nothing to anchor).
mentioned in commit
15b77176c6