mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 15:52:22 +01:00
Merge plugin test ordering and review recovery locking into sleep-29-native-chat-progress
Co-Authored-By: Paperclip <noreply@paperclip.ing> * codex/sleep-28-chat-run-milestones: Stabilize plugin refresh concurrency setup
This commit is contained in:
commit
93ae1f824d
2 files changed
+18
No files matched your search
@@ -88,3 +88,17 @@ This preserves the conservative Cloud sleep blocker for unknown external effects
|
||||
Related proposals: #7905 covers empty manifest sync; this migration needs that
|
||||
behavior on both activation paths. #11571 proposes company-scoped jobs; this
|
||||
migration retains the current instance-scoped contract and does not implement it.
|
||||
|
||||
## Refresh/manual-dispatch test ordering (2026-10-27)
|
||||
|
||||
CI job 122104710882 timed out in the manual-reservation concurrency case. Its
|
||||
setup created due work before installing the outstanding-run snapshot barrier.
|
||||
The creation notification could start dispatch first, leaving no runnable job
|
||||
for the later refresh to query and no read-barrier arrival. An isolated local
|
||||
run passed, so that retry alone did not establish the cause of the CI failure.
|
||||
|
||||
The test now pauses background admission during setup and resumes it only after
|
||||
the barrier is installed. It still holds a real database snapshot across the
|
||||
manual dispatch, verifies the active reservation and concurrency bound, and
|
||||
checks that all three jobs finish. All 33 plugin scheduling cases pass with
|
||||
this ordering. Production scheduling, assertions, and test timeouts are unchanged.
|
||||
@@ -303,6 +303,9 @@ const support = external ? { supported: true } : await getEmbeddedPostgresTestSu
|
||||
|
||||
it("retains the manual reservation when a refresh read finishes after manual dispatch", async () => {
|
||||
await start(2); await quiet();
|
||||
// Creating due work also wakes the scheduler. Keep dispatch paused until
|
||||
// the snapshot barrier is installed, regardless of notification timing.
|
||||
draining = true;
|
||||
const row = await due("raced");
|
||||
let resumeRead!: () => void, enteredRead!: () => void, releaseCall!: () => void;
|
||||
const readGate = new Promise<void>(resolve => { resumeRead = resolve; });
|
||||
@@ -328,6 +331,7 @@ const support = external ? { supported: true } : await getEmbeddedPostgresTestSu
|
||||
});
|
||||
return builder;
|
||||
});
|
||||
draining = false;
|
||||
const refreshing = scheduler!.tick();
|
||||
try {
|
||||
await readEntered;
|
||||
|
||||
Reference in new issue
Block a user