Skip to content

Long-running scan memory profiling + leak detection #56

Description

@truthixify

Tier: M (2-4 days) Type: perf

Context

Spectre TEE agents run for months. A small SDK leak becomes an OOM kill in production. Build a long-running harness + CI gate to catch leaks before mainnet.

Scope

  • test/leak/scan-leak.test.ts running scanAnnouncements in a tight loop
  • Synthetic 10k-announcement dataset, 10k iterations
  • v8 heap snapshots at intervals; fail on slope > N KB/iter
  • Profiling outputs (flame graphs) committed
  • CI nightly job

Acceptance criteria

  • Harness committed
  • Baseline measurements in PR description
  • CI nightly leak-scan job
  • Any identified leaks fixed

Files to start with

  • New: test/leak/scan-leak.test.ts
  • Node v8 docs

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips Networkhelp wantedExtra attention is neededperfPerformance / optimizationtestTest coverage / harness

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions