Skip to content

feat: robust error handling + test suites (#476 #479 #480 #482)#626

Open
tali-creator wants to merge 1 commit into
StellarDevHub:mainfrom
tali-creator:feat/robust-error-handling-and-rate-limiter-tests
Open

feat: robust error handling + test suites (#476 #479 #480 #482)#626
tali-creator wants to merge 1 commit into
StellarDevHub:mainfrom
tali-creator:feat/robust-error-handling-and-rate-limiter-tests

Conversation

@tali-creator
Copy link
Copy Markdown
Contributor

  • websocket: safeSend/safeStringify helpers, server error handler, client error handler, URL parse guard
  • migrationService: wrap fs.readFileSync calls in try/catch with descriptive errors; add functional API (initializeMigrationService, applyMigration, applyPendingMigrations, rollbackMigration, validateMigrations, getAppliedMigrations, getMigrationDashboard) backed by sql.js
  • compileService: wrap writeState and removeArtifact in try/catch with error logging
  • tests/websocket: 10 tests covering connection, auth, error handling, broadcast
  • tests/rateLimiter: 13 tests covering middleware and factory
  • tests/migrationService: 4 tests covering apply, rollback, dry-run, checksum
  • jest.config: moduleNameMapper for dbService/databaseService mocks; mocks shims added

name: Pull Request
about: Submit changes to Soroban Playground
title: ''
labels: ''
assignees: ''

What does this PR do?

Related Issue

Closes #

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / Code improvement
  • Other (please describe):

🗂️ Affected Area(s)

  • frontend/ — Next.js UI / Monaco editor
  • backend/ — Express API routes (/compile, /deploy, /invoke)
  • contracts/ — Example Soroban contracts
  • .github/ — Templates, workflows, CI
  • Documentation / README
  • Other:

How Has This Been Tested?

  • Tested in the browser (local dev server)
  • Verified changes work across different missions
  • Checked Monaco Editor behavior (if applicable)
  • Ran all existing tests (npm test)
  • No new console errors or warnings

Screenshots / Demo (if applicable)

Before

After

Checklist

  • I have performed a self-review of my code
  • I have commented my code where necessary
  • I have updated the documentation (if needed)
  • My changes do not introduce new warnings or errors
  • New and existing tests pass locally

Related Issues or References

Additional Context

closes #480
closes #482
closes #479
closes #476

…evHub#479 StellarDevHub#480 StellarDevHub#482)

- websocket: safeSend/safeStringify helpers, server error handler, client error handler, URL parse guard
- migrationService: wrap fs.readFileSync calls in try/catch with descriptive errors; add functional API (initializeMigrationService, applyMigration, applyPendingMigrations, rollbackMigration, validateMigrations, getAppliedMigrations, getMigrationDashboard) backed by sql.js
- compileService: wrap writeState and removeArtifact in try/catch with error logging
- tests/websocket: 10 tests covering connection, auth, error handling, broadcast
- tests/rateLimiter: 13 tests covering middleware and factory
- tests/migrationService: 4 tests covering apply, rollback, dry-run, checksum
- jest.config: moduleNameMapper for dbService/databaseService mocks; __mocks__ shims added
@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@tali-creator is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@tali-creator 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant