feat: reconcile generated docs on explicit registry pull
This commit is contained in:
@@ -646,11 +646,16 @@ test("real bootstrap create, curator push/pull, list, and read preserve a comple
|
||||
expect(status.statusCode).toBe(200);
|
||||
expect(create.statusCode).toBe(200);
|
||||
expect(pull.statusCode).toBe(200);
|
||||
expect(pull.json().head).toBe(remoteCommit);
|
||||
// Explicit pull may produce a deterministic docs-only follow-up commit on top of the curator
|
||||
// commit; the active descriptor must always be the curator's bytes.
|
||||
const pulledHead = pull.json().head;
|
||||
const pulledDiff = pulledHead === remoteCommit ? [] : (await realGit(join(fixture.registryRoot, "repo"), ["diff", "--name-only", `${remoteCommit}..${pulledHead}`])).split(/\s+/).filter(Boolean);
|
||||
expect(pulledHead).toMatch(/^[0-9a-f]{40}$/);
|
||||
expect(pulledDiff.every((path) => path.startsWith("workspace-docs/"))).toBe(true);
|
||||
expect(list.statusCode).toBe(200);
|
||||
const summary = list.json().find(({ id }: { id: string }) => id === "research-clinical");
|
||||
expect(summary.configurationState).toBe("ready");
|
||||
expect(summary.revision.commit).toBe(remoteCommit);
|
||||
expect(summary.revision.commit).toBe(pulledHead);
|
||||
expect(read.statusCode).toBe(200);
|
||||
expect(read.json().workspace).toEqual(remotelyEdited);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user