From 6c05e09cb8b0854775edaba871695963a62bfeef Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:27:27 +0200 Subject: [PATCH] buildx(history): wait for build records to be finalized Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/history.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/buildx/history.ts b/src/buildx/history.ts index 1f4fec5..4898e9d 100644 --- a/src/buildx/history.ts +++ b/src/buildx/history.ts @@ -84,6 +84,9 @@ export class History { core.info(`exporting build record to ${outDir}`); fs.mkdirSync(outDir, {recursive: true}); + // wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109 + await new Promise(resolve => setTimeout(resolve, 3000)); + const buildxInFifoPath = Context.tmpName({ template: 'buildx-in-XXXXXX.fifo', tmpdir: Context.tmpDir()