Skip to content

test: add integration test coverage for SDK bump regressions (WAL-1484)#205

Merged
pranishnepal merged 1 commit into
masterfrom
WAL-1484
May 21, 2026
Merged

test: add integration test coverage for SDK bump regressions (WAL-1484)#205
pranishnepal merged 1 commit into
masterfrom
WAL-1484

Conversation

@pranishnepal
Copy link
Copy Markdown
Contributor

@pranishnepal pranishnepal commented May 20, 2026

Problem

Today, we run verify regression manually for each release, this isn't possible. This PR aims to audit any missing tests for major flows like generate, signing, etc. and add any automated tests that can catch potential regressions. No functional change, just enhancement of tests.

What

Five gaps identified during manual SDK bump regression testing that would go undetected by CI without these changes:

  1. eddsa.test.ts — fix wrong coin in test fixture (tsol → tnear) so the test actually exercises the EdDSA key finalization path it claims to cover

  2. recoveryWallet.test.ts — add ETH happy path test; ETH recovery calls recover() on the coin object directly rather than building a PSBT and hits a different AWM endpoint shape, so a regression there was invisible

  3. mpcFinalize.test.ts — add backup source finalization test; the handler dispatches on source='user' vs source='backup' to set party indexes and signing material field names — only the user path was tested before

  4. recoveryConsolidationsWallet.test.ts — replace Prototype-level sinon stubs with nock HTTP interceptors so the real AdvancedWalletManagerClient code path (URL routing, body serialization, codec decoding) is exercised; adds body capture assertions so URL/shape regressions are caught

  5. consolidate.test.ts — add walletPubs argument verification on the signing function call; a regression that dropped walletPubs would silently pass because the stub accepts any args

Ticket: WAL-1484

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 20, 2026

WAL-1484

@pranishnepal pranishnepal marked this pull request as ready for review May 20, 2026 20:37
@pranishnepal pranishnepal requested a review from a team as a code owner May 20, 2026 20:37
@pranishnepal pranishnepal requested a review from alextse-bg May 20, 2026 20:37
Five gaps identified during manual SDK bump regression testing that would
go undetected by CI without these changes:

1. eddsa.test.ts — fix wrong coin in test fixture (tsol → tnear) so the
   test actually exercises the EdDSA key finalization path it claims to cover

2. recoveryWallet.test.ts — add ETH happy path test; ETH recovery calls
   recover() on the coin object directly rather than building a PSBT and
   hits a different AWM endpoint shape, so a regression there was invisible

3. mpcFinalize.test.ts — add backup source finalization test; the handler
   dispatches on source='user' vs source='backup' to set party indexes and
   signing material field names — only the user path was tested before

4. recoveryConsolidationsWallet.test.ts — replace Prototype-level sinon stubs
   with nock HTTP interceptors so the real AdvancedWalletManagerClient code
   path (URL routing, body serialization, codec decoding) is exercised; adds
   body capture assertions so URL/shape regressions are caught

5. consolidate.test.ts — add walletPubs argument verification on the signing
   function call; a regression that dropped walletPubs would silently pass
   because the stub accepts any args

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pranishnepal pranishnepal merged commit 6157a5e into master May 21, 2026
20 checks passed
@pranishnepal pranishnepal deleted the WAL-1484 branch May 21, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants