mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-17 13:01:05 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Its CI runs the server suite in shards so a change finishes in minutes > - One case in the attention-retention suite inserts 2100 issues and their relations, then runs EXPLAIN ANALYZE > - A single-file run takes about 90 seconds of local work, and the case itself fits in 15 seconds there > - On a two-core CI runner beside 110 other files, the case exceeds the 15s default > - This pull request gives that one case a 60s budget > - The benefit is that a slow shard stops failing for timing reasons ## Linked Issues or Issue Description **Summary** `ci / General tests (server (2/12))` fails intermittently on the same case. **Steps to reproduce** 1. Open a pull request that does not touch `server/`. 2. Wait for the shard that contains `src/__tests__/attention-retention-work.test.ts`. **Expected behavior** The case passes, as it does locally. **Actual behavior** `Error: Test timed out in 15000ms.` at `attention-retention-work.test.ts:443`. The rest of the shard passes (2197 tests). ## What Changed - Raise the timeout of the `it.each(["running", "run", "confirmation", "completed"])` case to 60 seconds. Nothing else changes: same assertions, same 2100-row fixture. ## Verification ```sh cd server npx vitest run src/__tests__/attention-retention-work.test.ts # 53 tests pass ``` The case still exercises the same query plan and the same bounded retention checks; only the wall-clock budget changed. ## Risks - Low risk. A slower failure now takes up to 60 seconds to surface on that one case. - No production code changes. ## Model Used - Provider: DeepSeek - Model ID: `deepseek-flash` - Harness: OpenCode - Capabilities used: tool calls (shell, file read/write, search) - Context window: not published by the provider ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [ ] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge