12 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 96f630a738 Fix nostr-tools v2 compatibility and test quality issues
- js/nostr/nip46Client.js: Convert hex keys to Uint8Array before calling nip44.v2 functions. Remove .bind() from getConversationKey getters to fix context issues.
- js/ui/components/RevertModal.js: Remove duplicate imports and variable declarations causing SyntaxErrors.
- tests/compliance/nip04_44_compliance.test.mjs: Update test setup to mock nostr-tools.utils and pass byte keys.
- tests/nostr/dm-direct-message-flow.test.mjs: Update setupDmScenario to pass byte keys to getPublicKey and finalizeEvent.
- tests/nostr/nip46Client.test.js: Update tests to handle byte vs hex keys correctly for nostr-tools v2.
- tests/minimal-webtorrent.test.mjs: Add explicit assertions.
- tests/ui/components/debug_hashtag_strip_helper.test.mjs: Add explicit assertions.
- artifacts/test-audit-report.md: Add audit report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-27 03:43:14 +00:00
thePR0M3TH3AN 887c802436 Merge branch 'unstable' into agents/daily/test-audit-agent-2026-02-23-4813203485121112615 2026-02-25 10:34:50 -05:00
google-labs-jules[bot]andPR0M3TH3AN 53168baae0 docs: daily agent test-audit-agent execution
- Executed unit tests (passed).
- Detected flakiness in subsequent test runs (timeout).
- Performed static analysis (zero assertions, timing, console usage).
- Generated test audit report and saved to `artifacts/`.
- Updated test logs and flakiness matrix.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 17:11:49 +00:00
google-labs-jules[bot]andPR0M3TH3AN 70888ce81b chore: execute daily test-audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 20:14:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN b0a4341ff2 agents: run daily test-audit-agent (2026-02-23)
- Executed test-audit-agent daily task.
- Generated audit report in docs/agents/task-logs/daily/.
- Added reusable scripts in test-audit/ for flakiness check and static analysis.
- Verified test suite (shard 1) and identified failure in hashtag-preferences.test.mjs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-23 17:11:14 +00:00
google-labs-jules[bot]andPR0M3TH3AN 661a51084e feat(test-audit): Add daily test integrity and coverage audit workflow
- Adds `scripts/run-test-audit.sh` to automate unit test execution with coverage.
- Adds `scripts/analyze-flakiness.mjs` to detect test flakiness.
- Adds `scripts/static-test-analysis.mjs` to find suspicious test patterns.
- Adds `scripts/coverage-gap-analysis.mjs` to identify critical coverage gaps.
- Adds `scripts/generate-audit-report.mjs` to produce markdown reports.
- Generates initial audit report `test-audit-report-2025-02-18.md` and `issues/ISSUE_test_audit_findings.md`.
- Documents findings in `decisions/DECISIONS_2025-02-18.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 20:17:01 +00:00
google-labs-jules[bot]andPR0M3TH3AN 106f7640c4 fix(exploreData): trigger refresh immediately on visibility change
- `handleVisibility` only scheduled intervals but didn't trigger an immediate refresh when returning to the tab.
- This caused `tests/unit/services/exploreDataService.test.mjs` to fail (assertion `0 !== 1`).
- Added explicit calls to `refreshWatchHistoryTagCounts` and `refreshTagIdf` when `document.hidden` becomes false.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 15:10:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN 92a41ff8e7 chore: run daily test audit (failed due to timeout)
- Ran unit tests with c8 coverage.
- Tests timed out after 400s.
- Identified `tests/profile-modal-controller.test.mjs` as a major bottleneck (>60s).
- Collected partial coverage and static analysis artifacts.
- Created failure log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 16:51:02 +00:00
thePR0M3TH3AN 2269cb5b9c Merge branch 'unstable' into agents/daily/test-audit-5199509929231920454 2026-02-15 17:42:10 -05:00
google-labs-jules[bot]andPR0M3TH3AN 82dc581145 docs: add daily test audit report and artifacts
- Run unit tests with coverage (c8)
- Generate test audit report (test-audit-report-2026-02-15.md)
- Add static analysis of suspicious tests
- Add flakiness check script and results (timed out)
- Create daily completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 22:24:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN 50ded6b4dc feat(test-audit): run daily test audit and fix zero-assertion test
- Run daily test audit using `test-audit-agent`.
- Generate `test-audit-report-2026-02-15.md` with coverage and static analysis findings.
- Fix zero-assertion test in `tests/minimal-channel-profile.test.mjs`.
- Add audit scripts `scripts/agent/audit-coverage-map.js` and `scripts/agent/audit-static-analysis.sh`.
- Log execution details in `test_logs/TEST_LOG_2026-02-15_20-00-00.md`.
- Create completion log in `docs/agents/task-logs/daily/`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 20:18:30 +00:00
google-labs-jules[bot]andPR0M3TH3AN 588793dba7 chore: add test audit workflow and improve AuthService coverage
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 14:42:51 +00:00