mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-24 14:20:12 +01:00
test(native): give the repeated-bytes provider pack tests a 60s timeout (#22663)
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Every pull request runs the server test suite in 12 CI shards > - #22241 added tests that build and stage a provider pack with three 2 MiB copies of one file > - Two of these tests take 6 to 7 seconds on a fast laptop and more than the 15-second server `testTimeout` on CI runners. They also time out on the automatic retry > - The `General tests (server (5/12))` shard now fails on unrelated pull requests, for example #22653 and the `fix/gateway-session-personal-grant-owner` branch > - This pull request gives the two tests the 60-second per-test timeout that other native-runtime tests use > - The benefit is that the shard passes again and unrelated pull requests can merge ## Linked Issues or Issue Description Refs #22241 (added the two tests). Refs #22652, #22653 (blocked by this shard). **What happened?** `server/src/services/native-runtime/provider-pack-archive.test.ts` fails on CI with `Test timed out in 15000ms` in two tests: - `stores repeated bytes once, from an image file under another path, without transferring them` - `transfers repeated bytes when no image has them, and does not reuse a changed twin` Each test also fails on the automatic retry (about 35 seconds in total). **Expected behavior** The `General tests (server (5/12))` shard passes on a pull request that does not touch the native runtime. **Steps to reproduce** 1. Open a pull request based on `master` after #22241. 2. Wait for `ci / General tests (server (5/12))`. 3. The two tests above time out. ## What Changed - `provider-pack-archive.test.ts`: add a 60-second timeout to the two tests above. No test logic changes. ## Verification - `pnpm exec vitest run server/src/services/native-runtime/provider-pack-archive.test.ts`: 52 passed. - On a fast laptop the two tests take 6.1 s and 6.2 s. The other tests in the file that use the same fixture take less than 2.3 s. - The CI shard for this pull request is the real check. ## Risks - Low risk. The change affects only the time limit of two tests. - The change does not explain why these two tests are slower than the similar test in the same file. The author of #22241 can make them faster later. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, with shell, file edit, and code execution tools. ## 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 - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge
This commit is contained in:
1 parent
70d4b6524c
commit
45221a17ea
1 file changed
+2
-2
@@ -156,7 +156,7 @@ it.skipIf(!tar || !hasZstd)("stores repeated bytes once, from an image file unde
|
||||
// Only the small-file overlay crosses the network, and the image is unchanged.
|
||||
expect((await remote.syncIn.mock.results[0]!.value).operations[0]!.bytesTransferred).toBe(archive.overlay.bytes);
|
||||
expect((await fs.readdir(image, { recursive: true })).sort()).toEqual(before);
|
||||
});
|
||||
}, 60_000);
|
||||
|
||||
it("plans one private copy per digest and mode, with same-bytes twins as copy sources", () => {
|
||||
const a = "a".repeat(64), b = "b".repeat(64);
|
||||
@@ -200,7 +200,7 @@ it.skipIf(!tar || !hasZstd)("transfers repeated bytes when no image has them, an
|
||||
}
|
||||
const layers = archive.files.reduce((sum, file) => sum + file.archive.bytes, 0);
|
||||
expect((await remote.syncIn.mock.results[0]!.value).operations[0]!.bytesTransferred).toBe(archive.overlay.bytes + layers);
|
||||
});
|
||||
}, 60_000);
|
||||
|
||||
it("writes the same archive for the same file every time, with nothing after the frame", async () => {
|
||||
// Ending the compressor while its last chunk was still queued made Node
|
||||
|
||||
Reference in new issue
Block a user