Skip to content

test: add telemetry batch flush threshold tests#62

Open
brain-marchine wants to merge 2 commits into
Saiaaax:mainfrom
brain-marchine:test/telemetry-batch-flush
Open

test: add telemetry batch flush threshold tests#62
brain-marchine wants to merge 2 commits into
Saiaaax:mainfrom
brain-marchine:test/telemetry-batch-flush

Conversation

@brain-marchine

Copy link
Copy Markdown

Fixes #10

Summary

Add independent unit tests for client telemetry batch flush behavior (100-event threshold, unload flush, partial batch preservation, post-flush reset).

Changes

  • Export resetTelemetryForTests() for deterministic in-memory testing.
  • Add telemetry.batchFlush.test.ts with 4 focused cases (no external services).
  • Document batching behavior and npm run test:telemetry in docs/OPERATIONS.md.

Testing

  • cd frontend && npm run test:telemetry
  • python3 build.py -m frailbox — diagnostic artifacts included

Payout wallet (Base): 0x86D4FC06f553792D8c33058438Bcc7444182EB30

@brain-marchine

Copy link
Copy Markdown
Author

Updated this PR with a valid script-generated diagnostic bundle (diagnostic/build-5964e970.json + .logd) aligned to commit 5964e970. CI should pass the diagnostic gate now — thanks for reviewing!

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.

[$10 BOUNTY] [TypeScript] Add telemetry batch flush threshold tests

1 participant