Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 162 to 163

Compare

+14 −0 in 2 places
Lines 285–297 at 163 (were 285–292 at 162)
285285 throw Error("empty test repository");
286286 });
287287 let pushed = 0;
288+ let failPush = true;
288289 let remoteFiles: MemoryFS | undefined;
289290 t.mock.method(git, "push", async (options: Parameters<typeof git.push>[0]) => {
291+ if (failPush) {
292+ failPush = false;
293+ throw Error("injected Artifacts transport failure");
294+ }
290295 const oid = await git.resolveRef({ fs: options.fs, dir: options.dir, ref: "main" });
291296 const commit = await git.readCommit({ fs: options.fs, dir: options.dir, oid });
292297 assert.match(commit.commit.message, /abso-version: 2/);
Lines 309–325 at 163 (were 304–311 at 162)
304309 }),
305310 };
306311 const bound = () => new ProjectObject(context as never, { ABSO_DISK_FIRST: "on", ARTIFACTS: artifacts } as never);
312+ // Deliver the pending alarm: the fake storage must clear it as the host does.
313+ alarm = null;
307314 await bound().alarm();
315+ assert.equal(pushed, 0);
316+ assert.equal(values.get("pushed"), undefined, "failed transport must not acknowledge a push");
317+ assert.match(JSON.stringify(values.get("pushError")), /injected Artifacts transport failure/);
318+ assert.deepEqual(rows(), stable, "failed remote transport leaves canonical state unchanged");
319+ assert.ok(alarm !== null && alarm > Date.now(), "failed transport schedules a retry");
320+ await bound().alarm();
308321 assert.equal(pushed, 1);
322+ assert.equal(values.get("pushError"), undefined, "cold retry clears the transport error");
309323 assert.equal((await bound().out()).pushed?.version, 2);
310324 assert.deepEqual(rows(), stable, "pushing shared does not mutate canonical project state");
311325 await bound().alarm();
MCP
compare on this site's /mcp
CLI
abso diff 162 163 server/test/project-object-disk-first.test.ts --json
JSON
/christopher/abso-core/compare/162..163?file=server%2Ftest%2Fproject-object-disk-first.test.ts&format=json