test: close post-merge coverage gaps (#28) #45

Merged
PlasticDigits merged 1 commit from 28-test-close-post-merge-coverage-gaps-from-22-23-25-minter-bsc-hang-sigterm-pause-e2e-localterra- into main 2026-08-08 10:00:16 +00:00
PlasticDigits commented 2026-08-08 09:58:35 +00:00 (Migrated from gitlab.com)

Summary

  • Close automated coverage gaps from #28 (follow-ups from #22/#23/#25): M-8 minter integration, BSC hang timeout, SIGTERM/operator_loop hooks, equal-rate/policy-skip liveness, oracle-pause integration suite, TEST-16 LocalTerra gated smoke.
  • Document invariants and crosslink docs/DEPLOYMENT.md + skills/{audit-hardening-bundle,oracle-liveness-confirm,oracle-circuit-breaker,README}.
  • No on-chain product behavior changes; liveness remains fail-closed; /healthz stays process-up only.

Acceptance criteria checklist

  • In-repo automated test proves pinned cw20-mintable UpdateMinter(None) clears MINTERS (M-8) — cw20_minter_integration
  • Automated test proves BSC RPC hang fails within configured timeout (M-19/M-12) — bsc::tests
  • Automated SIGTERM/graceful-shutdown coverage for oracle-service (L-10) — injectable shutdown_signal_with_hook + operator_loop exit tests
  • Tests prove equal-rate and policy-skip paths do not record liveness success (#23) — decide_tick_action + run_once_* wiremock
  • Integration-suite test: oracle pause fails window deposit+withdraw closed (#22) — oracle_paused_blocks_deposit_and_withdraw_while_rate_fresh
  • LocalTerra DeliverTx-reject (or equivalent) smoke documented and CI-gated; TEST-16 status explicit — scripts/localterra_e2e_smoke.sh, CI localterra-e2e (manual/allow_failure), DEPLOYMENT § TEST-16
  • Skills/README checklists updated; cargo test / clippy green

Not done / out of scope

  • Full LocalTerra wasm store/instantiate automation (deploy_local.py remains a helper stub) — gated job skips cleanly without LCD; promote to required after deploy automation lands
  • Real OS SIGTERM-to-cargo test process (avoid flaky parallel CI); hook covers the same select! arm
  • Mainnet/staging ops probes (live withdraw, restart logs) — remain DEPLOYMENT / #19 runbook items
  • Product features H-1 (#26) / remaining C-2 (#27)

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test (full workspace)
  • cargo test -p ust1-integration-tests --lib inv_minter_001
  • cargo test -p ust1-integration-tests --lib oracle_paused_blocks
  • cargo test -p ust1-oracle-service (BSC hang, shutdown, skip-path, DeliverTx reject)
  • make test-localterra-smoke (SKIP without LocalTerra)
  • Optional: make start && make wait-healthy && make test-localterra-smoke with LCD up
  • Optional: manual GitLab localterra-e2e job

Closes #28

Closes #28

## Summary - Close automated coverage gaps from [#28](https://gitlab.com/PlasticDigits/ust1-window/-/issues/28) (follow-ups from #22/#23/#25): M-8 minter integration, BSC hang timeout, SIGTERM/`operator_loop` hooks, equal-rate/policy-skip liveness, oracle-pause integration suite, TEST-16 LocalTerra gated smoke. - Document invariants and crosslink `docs/DEPLOYMENT.md` + `skills/{audit-hardening-bundle,oracle-liveness-confirm,oracle-circuit-breaker,README}`. - No on-chain product behavior changes; liveness remains fail-closed; `/healthz` stays process-up only. ## Acceptance criteria checklist - [x] In-repo automated test proves pinned `cw20-mintable` `UpdateMinter(None)` clears `MINTERS` (M-8) — `cw20_minter_integration` - [x] Automated test proves BSC RPC hang fails within configured timeout (M-19/M-12) — `bsc::tests` - [x] Automated SIGTERM/graceful-shutdown coverage for oracle-service (L-10) — injectable `shutdown_signal_with_hook` + `operator_loop` exit tests - [x] Tests prove equal-rate and policy-skip paths do not record liveness success (#23) — `decide_tick_action` + `run_once_*` wiremock - [x] Integration-suite test: oracle pause fails window deposit+withdraw closed (#22) — `oracle_paused_blocks_deposit_and_withdraw_while_rate_fresh` - [x] LocalTerra DeliverTx-reject (or equivalent) smoke documented and CI-gated; TEST-16 status explicit — `scripts/localterra_e2e_smoke.sh`, CI `localterra-e2e` (manual/allow_failure), DEPLOYMENT § TEST-16 - [x] Skills/README checklists updated; `cargo test` / clippy green ## Not done / out of scope - Full LocalTerra wasm store/instantiate automation (`deploy_local.py` remains a helper stub) — gated job skips cleanly without LCD; promote to required after deploy automation lands - Real OS SIGTERM-to-`cargo test` process (avoid flaky parallel CI); hook covers the same `select!` arm - Mainnet/staging ops probes (live withdraw, restart logs) — remain DEPLOYMENT / #19 runbook items - Product features H-1 (#26) / remaining C-2 (#27) ## Test plan - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --all-targets -- -D warnings` - [x] `cargo test` (full workspace) - [x] `cargo test -p ust1-integration-tests --lib inv_minter_001` - [x] `cargo test -p ust1-integration-tests --lib oracle_paused_blocks` - [x] `cargo test -p ust1-oracle-service` (BSC hang, shutdown, skip-path, DeliverTx reject) - [x] `make test-localterra-smoke` (SKIP without LocalTerra) - [ ] Optional: `make start && make wait-healthy && make test-localterra-smoke` with LCD up - [ ] Optional: manual GitLab `localterra-e2e` job Closes #28 Closes #28
PlasticDigits commented 2026-08-08 09:58:36 +00:00 (Migrated from gitlab.com)

restored source branch 28-test-close-post-merge-coverage-gaps-from-22-23-25-minter-bsc-hang-sigterm-pause-e2e-localterra-

restored source branch `28-test-close-post-merge-coverage-gaps-from-22-23-25-minter-bsc-hang-sigterm-pause-e2e-localterra-`
PlasticDigits commented 2026-08-08 09:58:50 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 695e5770 - test: close post-merge coverage gaps from #22/#23/#25 (#28)

Compare with previous version

added 1 commit <ul><li>695e5770 - test: close post-merge coverage gaps from #22/#23/#25 (#28)</li></ul> [Compare with previous version](/PlasticDigits/ust1-window/-/merge_requests/12/diffs?diff_id=1950161175&start_sha=a26793150eabd6fcaef7491721e6b75033d6a4da)
PlasticDigits commented 2026-08-08 09:58:50 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
PlasticDigits commented 2026-08-08 09:58:57 +00:00 (Migrated from gitlab.com)

mentioned in issue #28

mentioned in issue #28
PlasticDigits commented 2026-08-08 10:00:17 +00:00 (Migrated from gitlab.com)

mentioned in commit cf2c31a130

mentioned in commit cf2c31a130a788b77e00575e2419edf4110cfc67
PlasticDigits (Migrated from gitlab.com) merged commit cf2c31a130 into main 2026-08-08 10:00:17 +00:00
PlasticDigits commented 2026-08-08 10:11:30 +00:00 (Migrated from gitlab.com)

mentioned in commit 4747039a50

mentioned in commit 4747039a5091e9601467822326bdbf0ba8e759d3
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/ust1-window!45
No description provided.