Skip to content

test/feat: Vercel lifecycle, Soroban snapshot, migration integrity, deployment pipeline integration tests#872

Merged
temma02 merged 4 commits into
StellerCraft:mainfrom
observerr411:main
Jun 27, 2026
Merged

test/feat: Vercel lifecycle, Soroban snapshot, migration integrity, deployment pipeline integration tests#872
temma02 merged 4 commits into
StellerCraft:mainfrom
observerr411:main

Conversation

@observerr411

Copy link
Copy Markdown

Summary

Test plan

  • pnpm test -- vercel-domain-lifecycle.integration — all lifecycle stages and error paths pass
  • pnpm test --filter=stellar -- contract-state-snapshot — snapshot/restore round-trip passes
  • pnpm test -- migration — all 13 migration assertions and rollback test pass
  • pnpm test -- deployment-pipeline.github.integration — all GitHub API interaction assertions pass
  • pnpm lint passes
  • pnpm typecheck passes

Closes #796
Closes #794
Closes #797
Closes #795

…on test

Simulates the complete domain lifecycle (project create → domain add →
verification polling → cert check) using injected mock fetch handlers.
Covers: false×2 then true polling, domain_already_in_use 409 path,
and deployment record status transitions across all lifecycle stages.

closes StellerCraft#796
… recovery

Implements ContractStateSnapshotService that captures all persistent
ContractData ledger entries at a given ledger sequence, compresses them
with zlib, and stores them in Supabase Storage. Supports restoring a
snapshot for offline Soroban sandbox replay. Enforces a 10 MB
uncompressed size limit per snapshot. Tests cover snapshot, restore,
round-trip fidelity, size limit, and error paths.

closes StellerCraft#794
…ack coverage

Extends the migration test suite with per-migration schema assertions for
all 13 migrations, a full-table snapshot after every migration is applied,
index verification, and a rollback test for migration 013 that drops the
github_webhook_deliveries tables and confirms no orphaned FK constraints
remain on pre-013 tables.

closes StellerCraft#797
…ock injection

Integration test exercising the full deployment initiation flow via the
real route handler. Intercepts GitHub REST API calls (POST /user/repos,
POST /repos/{owner}/{repo}/git/refs) through injected mock fetch. Asserts
the deployments table transitions through pending→generating→creating_repo
and that GitHub 403 (repository limit reached) is mapped to the
REPOSITORY_LIMIT_REACHED error code (HTTP 402) returned to the client.

closes StellerCraft#795
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@observerr411 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@temma02 temma02 merged commit cbd6412 into StellerCraft:main Jun 27, 2026
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment