Skip to content
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
60d3319
feat: implement issue #528 — SonarCloud: test assertion quality (S5906)
donpetry-bot Aug 18, 2026
c48c4e5
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 1, 2026
af78c37
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 1, 2026
23975b1
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 2, 2026
9e5909f
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 3, 2026
3646095
fix(deps): update @humanfs packages to resolve moderate vulnerability
don-petry Sep 3, 2026
f166e9a
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 7, 2026
825b953
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 7, 2026
c7b2846
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 7, 2026
ebcb7ff
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 20, 2026
e7dab9f
fix(deps): resolve js-yaml vulnerability (GHSA-2883-xcg3-v3hh)
don-petry Sep 20, 2026
52c629e
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 20, 2026
d60704a
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 20, 2026
64eaa26
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Sep 25, 2026
57eb725
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Oct 1, 2026
2864923
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Oct 4, 2026
79035b6
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Oct 4, 2026
ac7e3f2
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Oct 4, 2026
0cd1724
Merge branch 'main' into dev-lead/issue-528-20260818-2041
don-petry Oct 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Performance and Scalability Benchmarks', () => {
const processed = processThreadBatch(threads, config, services)
const duration = Date.now() - startTime

expect(processed.length).toBe(BATCH_SIZE)
expect(processed).toHaveLength(BATCH_SIZE)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The benchmark only verifies the number of returned entries, so an implementation that duplicates one result, associates results with the wrong threads, or returns 100 unclassified entries would still pass. Assert that each result corresponds to the input thread and has the expected classified status and label so the throughput test also validates the batch-processing contract. [incomplete implementation]

Severity Level: Major ⚠️
- ⚠️ Batch benchmark can pass incorrect per-thread results.
- ⚠️ Thread-to-result association regressions may go undetected.
- ⚠️ Classification status and label regressions lack coverage.

Use CodeAnt Skill

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/gmail-ai-classifier/tests/performance-scalability.test.js
**Line:** 124:124
**Comment:**
	*Incomplete Implementation: The benchmark only verifies the number of returned entries, so an implementation that duplicates one result, associates results with the wrong threads, or returns 100 `unclassified` entries would still pass. Assert that each result corresponds to the input thread and has the expected classified status and label so the throughput test also validates the batch-processing contract.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

expect(duration).toBeLessThan(100) // 100 items benchmarked under 100ms
})
})
Loading