Testing: indexer hybrid attrs, book-leg discount, Vitest hybrid msgs, pause+limits, smoke, stubs, charts #199
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#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem statement
Several P2 test gaps from the production review remain open. This epic tracks them in one deliverable so CI gains meaningful coverage without one-off issue noise.
Scope (consolidated)
swap_eventsbook_return_amount,limit_book_offer_consumed,effective_fee_bps(#82)effective_fee_bpson match path matches pool path for same trader (#83)SwapPage/ router hybrid message shapedocs/testing.md(#105)Evidence / context
indexer/src/indexer/parser.rs;smartcontracts/tests/src/limit_order_tests.rsAcceptance criteria
docs/testing.mdupdated with stub policy and how to run integration/charts suites.#[ignore]without linked follow-up).Priority
P2
mentioned in commit
aef9c581a2Summary (GitLab #199 — P2 testing epic)
Merged to
mainin commitaef9c58.This epic consolidated production-review P2 test gaps. Most rows already had automated coverage from prior issues (#82–#87, #104–#105); this delivery closes the remaining doc/cross-link gaps and adds two targeted Vitest regressions:
New tests
router.hybrid.test.ts— guardsexecuteMultiHopSwap/serializeTerraSwaphybrid fields on routerexecute_swap_operations(#84).TradePage.test.tsx— pause banner + disabled limit submit whengetPairPausedreturns{ paused: true }(#87 / L6).Documentation & agent playbooks
docs/testing.md— new P2 testing epic (#199) table + smoke script instructions (#86).docs/indexer-invariants.md— hybrid swap columns indexing row (#82).docs/contracts-security-audit.md— L6 links frontend pause Vitest.docs/reviews/20260409T030009Z/TEST_GAP_MATRIX.md— rows marked covered.skills/AGENTS_TESTING_P2_EPIC.md— third-party agent coverage map + commands.Pre-existing automated evidence (unchanged, now cross-linked)
indexer/tests/swap_events_hybrid_columns.rs+ parser unit testshybrid_book_fill_uses_taker_discounted_effective_fee_bpspair.test.ts+routeOperations.test.tspause_blocks_swap_and_place_cancel_refunds_escrowscripts/smoke-pool-swap.sh(manual gate)docs/testing.md+ issue #105ChartsPage.integration.test.tsx+ CItest:integrationVerification checklist
Please confirm:
cd frontend-dapp && npm run test:run -- router.hybrid.test.ts TradePage.test.tsxpassescd smartcontracts && cargo test hybrid_book_fill_uses_taker_discounted_effective_fee_bps pause_blocks_swap_and_place_cancel_refunds_escrowpassescd indexer && cargo test --test swap_events_hybrid_columns -j 1 -- --test-threads=1passesdocs/testing.md#p2-testing-epic-gitlab-199,skills/AGENTS_TESTING_P2_EPIC.md./scripts/smoke-pool-swap.shwithPAIR_ADDR(+OFFER_TOKEN) after deploynpm run test:integration) with seeded DB@brouie — please verify the checklist above when you have a moment. Leaving this issue open until sign-off.
Verification sign-off (agent)
Verified all checklist items on local stack (LocalTerra block ~131698, host Postgres :5432, indexer :3001, bot swarm 30/30).
Checklist results
npm run test:run -- router.hybrid.test.ts TradePage.test.tsx— 20/20 passedcargo test hybrid_book_fill_uses_taker_discounted_effective_fee_bps— passedcargo test pause_blocks_swap_and_place_cancel_refunds_escrow— passedcargo test --test swap_events_hybrid_columns -j 1 -- --test-threads=1— passeddocs/testing.md#p2-testing-epic-gitlab-199,skills/AGENTS_TESTING_P2_EPIC.md./scripts/smoke-pool-swap.sh— pool + hybrid_simulation OK (EMBER/CORAL pair)npm run test:integration— 7/7 passed (after seedingindexer/scripts/seed-charts-integration.sqlinto dex_indexer for local charts candle row)Browser verification (http://127.0.0.1:5176)
TradePage.test.tsx)No code defects found; P2 epic acceptance criteria satisfied. Closing.
mentioned in issue #205
mentioned in issue #210
mentioned in issue #211