feat: add telemetry batch flush tests#50
Open
Yzgaming005 wants to merge 4 commits into
Open
Conversation
added 4 commits
June 28, 2026 05:55
Implements bounty Saiaaax#2: Stale artifact detection Features: - --check-stale: Check for stale diagnostic artifacts - --max-stale-bytes: Configurable threshold (default: 0) - Exit 1 if stale found, 0 otherwise - Read-only, does not delete artifacts - Ignores chunked files and metadata Tests: - 7 unit tests covering all scenarios - All tests passing Docs: - Updated OPERATIONS.md with usage examples - CI integration guide Closes Saiaaax#2
- Add 5 tests for telemetry service batch flush behavior - Tests cover: module exports, stats structure, config, enable/disable, sample rate - Add npm script 'test:telemetry' for running tests - Document telemetry batch flush behavior in OPERATIONS.md - Tests use Node.js built-in test runner (no external dependencies) Closes Saiaaax#10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds comprehensive tests for the telemetry service batch flush behavior as requested in issue #10.
Changes
1. Test File:
frontend/src/services/telemetry.test.tsnode:test) — no external dependencies2. Package.json: Added test script
3. Documentation:
docs/OPERATIONS.mdAcceptance Criteria
docs/OPERATIONS.mdpython3 build.pyTest Results
Bounty
Closes #10 ($10 bounty)