Skip to content

Add Grin native end-to-end test coverage - #1539

Draft
sneurlax wants to merge 1 commit into
feat/grinfrom
feat/grin-e2e
Draft

sneurlax wants to merge 1 commit into
feat/grinfrom
feat/grin-e2e

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add Grin integration tests using the real grin_native library and its in-process test chain;
  • cover coinbase receipt, Slatepack S1/S2/S3, invoices I1/I2/I3, amount guards, cancellation/unlocking, reposting, payment proofs, restore/resume, reopen, and deletion;
  • add a release-symbol gate that rejects test-chain exports;
  • restore generated dependency files after E2E runs and remove test-chain libraries from build output.

Stack

This is one E2E commit directly on #1538:

  1. Share the Epic Cash and MWC Slatepack UI #1507 31224b637f96f995ff1508db5961e12c17721f78
  2. Add Grin wallet core integration #1538 026287986a4eccdd0ab8b2a453a40274da512ea7
  3. this PR 7b439b79407db524cf71843a6274fcaa53f4ac4f
  4. Integrate Grin with the shared Slatepack UI #1540 fe1c3a306fde3a29bb6f19c8eeeeed821486410c

Merge/retarget in order and require green CI after each base changes.

Native verification

At exact final stack head fe1c3a306fde3a29bb6f19c8eeeeed821486410c, scripts/grin_e2e_test.sh linux -r compact built and drove the real grin-ffi in-process chain. All 8/8 cases passed:

  • create, mine, and observe coinbase;
  • two-wallet Slatepack S1/S2/S3;
  • invoice I1/I2/I3 with amount guard;
  • cancel an unfinalized send and unlock inputs;
  • repost a finalized unposted send;
  • export and verify a payment proof;
  • restore from mnemonic/height and resume a cancelled scan;
  • reopen with the stored password and delete.

The complete changed suite passed 470/470 independently on macOS, and exact final macOS/Linux debug builds succeeded. GitHub CI is green at this exact head, including both triggered runs, tests, Windows build scripts, Linux release bundle, Codecov patch, and Codecov project (run 44889145952, run 44889146035).

Dependency boundary

The stack depends only on public grin_native at 5b56ce4f90b50be67154797cbfc1a401bd9ab778; neither Stack nor grin_native depends on bare grin. Epic and MWC pins remain unchanged from #1507.

@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.33%. Comparing base (0262879) to head (7b439b7).

Additional details and impacted files
@@              Coverage Diff              @@
##           feat/grin    #1539      +/-   ##
=============================================
+ Coverage      18.31%   18.33%   +0.02%     
=============================================
  Files           1159     1159              
  Lines         115341   115341              
=============================================
+ Hits           21124    21152      +28     
+ Misses         94217    94189      -28     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Exercise real wallet, Slatepack, invoice, cancellation, repost, payment-proof, restore, reopen, and delete flows on the native test chain.
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.

1 participant