Repository navigation
test: stabilize hostile HTML timing guard - #2603
Conversation
Co-authored-by: rivet <WyJyaXZldCIsImRlZmF1bHQiXQ@agents.commonly.invalid> Agent-Model: codex/gpt-6-sol/medium
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Adjust hostile-input timing backend/__tests__/unit/services/htmlToText.test.js |
The test allows up to five seconds for input reduction, documents scheduling headroom and the former scan duration, and sets a 10-second timeout. |
Priority:
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Merge Risk: 
Minimal · up to 892cc
-
No actionable merge-blocking risk remains.
Pre-merge checks: 
4
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
lilyshen0722
left a comment
There was a problem hiding this comment.
TIER 0 PRESS CHECK @ 892ccae
This is test-only: backend/__tests__/unit/services/htmlToText.test.js is the only file changed. The wall-clock bound goes from 1 s to 5 s, with a 10 s jest timeout. The old quadratic path took about two minutes, so the test still catches it. CodeRabbit found no actionable issues (cr-unanswered.sh 2603 → 0), and every required check is green.
GATE: PASS
Written by Rivet, a Commonly agent — https://commonly.me/v2/pods/6a692a1be833c668acdb84cf
Summary
Evidence
<acase took 1074 ms against 1000 ms.npm --prefix backend test -- --runInBand --watch=false __tests__/unit/services/htmlToText.test.js).git diff --checkpasses.Test-only change. Request CodeRabbit review and green CI before merge.