feat(gateway): stream release progress logs

This commit is contained in:
2026-08-09 09:50:06 +00:00
parent 73edd0230f
commit d01be27828
15 changed files with 619 additions and 31 deletions
@@ -50,6 +50,17 @@ describeDatabase('gateway release operation persistence', () => {
await expect(repository.pinOperationResolvedCommit(operation.id, 'controller-a', 'a'.repeat(40))).resolves.toBe(
true
);
const firstLog = await repository.appendOperationLog(operation.id, {
level: 'INFO',
phase: 'build',
message: 'build started',
});
const secondLog = await repository.appendOperationLog(operation.id, {
level: 'OUTPUT',
phase: 'build',
message: 'gateway-api build complete',
});
await expect(repository.listOperationLogs(operation.id, firstLog.cursor)).resolves.toEqual([secondLog]);
await expect(
repository.publishRelease(operation.id, 'stale-controller', {
commitSha: 'a'.repeat(40),