Skip to content

chore(test): belt-and-braces polish on top of #94 - #100

Merged
TaprootFreak merged 1 commit into
developfrom
polish/test-quality-followup
May 25, 2026
Merged

chore(test): belt-and-braces polish on top of #94#100
TaprootFreak merged 1 commit into
developfrom
polish/test-quality-followup

Conversation

@TaprootFreak

Copy link
Copy Markdown
Contributor

Stacked on top of #94 (chore/test-quality-overhaul). Five small follow-ups identified by the pre-CI audit — none blocking PR #94, all worth landing.

What

  1. router.rs — switch &*PUBLISHER_ADDRESS deref to .clone(). Eliminates a llvm-cov region-tracking edge case on the new handler. Address clone is cheap; this is belt-and-braces against a 2% risk identified by the pre-CI risk analysis.
  2. router_tests.rs — wrap both await points of mint_handler_concurrent_mint_during_proof_returns_503 in tokio::time::timeout. Prevents a regression in mint_handler phase 2 from hanging the 120-min CI budget.
  3. api_remote.rs — replace stale reset-zkcoins-server comment refs with reset-zkcoins-node (post-PR rename: server → node (full identity rename) #93 rename consistency).
  4. runtime_tests.rs — stale server::create_router reference introduced by the test-quality commit before PR rename: server → node (full identity rename) #93's rename sweep landed. (Already fixed in 687f412 on the base branch — no change needed in this PR.)
  5. ci.yaml — the polling-pattern lint step (issue architecture: no polling, events only (scanner Esplora, repo-wide principle) #84 guard) targets server/src/* paths that no longer exist after PR rename: server → node (full identity rename) #93's rename to node/src/*. The grep returned empty vacuously, which means the lint has been silently dead for ~24 h. Update paths.

Why stacked instead of pushed to #94

PR #94's Heavy Tests + Coverage Gate were running on the M3 Ultra. Pushing to chore/test-quality-overhaul would cancel the in-flight run. The stacked PR pattern matches what we did with PR #90 / #91.

Merge plan

Merge PR #94 first (squash). Then this PR's base auto-rebases to develop (or manually rebase) and can be merged as a separate squash.

Test plan

Four small follow-ups identified by the pre-CI audit, none blocking
but all worth landing:

1. router.rs: switch `&*PUBLISHER_ADDRESS` deref to `.clone()` —
   eliminates a llvm-cov region-tracking edge case on the new
   handler's first line (98% safe either way; this is belt-and-
   braces). Address::clone is cheap.

2. router_tests.rs: wrap both await points of
   `mint_handler_concurrent_mint_during_proof_returns_503` in
   `tokio::time::timeout` (30 s + 60 s). Prevents a future
   regression in `mint_handler` phase 2 from hanging the 120-min
   CI job budget.

3. api_remote.rs: replace stale `reset-zkcoins-server` comment
   references with the post-rename `reset-zkcoins-node`. Cosmetic;
   matches the host-side dispatcher command name updated in
   DFXServer/server commit f74ec4a.

4. ci.yaml: the polling-pattern lint step (issue #84 guard) targets
   paths under `server/src/` that no longer exist after PR #93's
   rename to `node/src/`. The grep returned empty vacuously, which
   means the lint has been silently dead for 24 h. Update paths.

Note: the audit also flagged the stale `server::create_router`
comment in runtime_tests.rs, but that fix already landed in 687f412
on chore/test-quality-overhaul.

Stacked on top of PR #94 (chore/test-quality-overhaul) per the
"no force-push during running CI" project convention.
@TaprootFreak
TaprootFreak force-pushed the polish/test-quality-followup branch from a9524bc to 4c697d5 Compare May 25, 2026 10:39
@TaprootFreak
TaprootFreak changed the base branch from chore/test-quality-overhaul to develop May 25, 2026 10:39
@TaprootFreak
TaprootFreak marked this pull request as ready for review May 25, 2026 10:40
@TaprootFreak TaprootFreak added ci:full Trigger heavy CI jobs (Server + Shared Tests + Coverage Gate, ~60-90 min on M3 Ultra) ReadyforMerge labels May 25, 2026
@TaprootFreak
TaprootFreak merged commit ca45495 into develop May 25, 2026
13 of 16 checks passed
@TaprootFreak TaprootFreak added ci:full Trigger heavy CI jobs (Server + Shared Tests + Coverage Gate, ~60-90 min on M3 Ultra) and removed ci:full Trigger heavy CI jobs (Server + Shared Tests + Coverage Gate, ~60-90 min on M3 Ultra) labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Trigger heavy CI jobs (Server + Shared Tests + Coverage Gate, ~60-90 min on M3 Ultra) ReadyforMerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant