Skip to content

Integration test of builders #155

Integration test of builders

Integration test of builders #155

Triggered via pull request October 15, 2024 19:50
Status Failure
Total duration 1m 5s
Artifacts

cli.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
test/builder/diretory.test.ts > directory_builder > empty directory: apps/cli/test/builder/diretory.test.ts#L31
AssertionError: expected [Function] to throw error including 'too few blocks' but got 'ENOENT: no such file or directory, ls…' Expected: "too few blocks" Received: "ENOENT: no such file or directory, lstat '/home/runner/work/cli/cli/apps/cli/test/builder/data/empty'" ❯ test/builder/diretory.test.ts:31:9
test/builder/diretory.test.ts > directory_builder > success: apps/cli/src/exec.ts#L63
ExecaError: Command failed with exit code 1: docker run --volume '/home/runner/work/cli/cli/apps/cli/test/builder/output/directory_builder:/work' --workdir /work --interactive --tty --user '1001:127' 'cartesi/sdk:0.11.0' xgenext2fs --block-size 4096 --faketime --root 1350150584_0_3 --readjustment '+0' 1350150584_0_3.ext2 the input device is not a TTY ❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4 ❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17 ❯ Module.execaDockerFallback src/exec.ts:63:20 ❯ Module.build src/builder/directory.ts:46:21 ❯ test/builder/diretory.test.ts:58:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/directory_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --root 1350150584_0_3 --readjustment \'+0\' 1350150584_0_3.ext2', command: 'docker run --volume /home/runner/work/cli/cli/apps/cli/test/builder/output/directory_builder:/work --workdir /work --interactive --tty --user 1001:127 cartesi/sdk:0.11.0 xgenext2fs --block-size 4096 --faketime --root 1350150584_0_3 --readjustment +0 1350150584_0_3.ext2', escapedCommand: 'docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/directory_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --root 1350150584_0_3 --readjustment \'+0\' 1350150584_0_3.ext2', cwd: '/home/runner/work/cli/cli/apps/cli/test/builder/output/directory_builder', durationMs: 127.609052, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'the input device is not a TTY', stdio: [ undefined, '', 'the input device is not a TTY' ], ipcOutput: [], pipedFrom: [] }
test/builder/docker.test.ts > docker_builder > should not build a non-riscv image: apps/cli/test/builder/docker.test.ts#L44
AssertionError: expected [Function] to throw error including 'Invalid image Architecture: arm64. Ex…' but got 'Invalid image Architecture: amd64. Ex…' Expected: "Invalid image Architecture: arm64. Expected riscv64" Received: "Invalid image Architecture: amd64. Expected riscv64" ❯ test/builder/docker.test.ts:44:9
test/builder/docker.test.ts > docker_builder > should build a docker drive: apps/cli/src/exec.ts#L63
ExecaError: Command failed with exit code 1: docker run --volume '/home/runner/work/cli/cli/apps/cli/test/builder/output/docker_builder:/work' --workdir /work --interactive --tty --user '1001:127' 'cartesi/sdk:0.11.0' xgenext2fs --block-size 4096 --faketime --readjustment '+0' --tarball 292656798_0_2.tar 292656798_0_2.ext2 the input device is not a TTY ❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4 ❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17 ❯ Module.execaDockerFallback src/exec.ts:63:20 ❯ Module.build src/builder/docker.ts:874:11 ❯ test/builder/docker.test.ts:61:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/docker_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --readjustment \'+0\' --tarball 292656798_0_2.tar 292656798_0_2.ext2', command: 'docker run --volume /home/runner/work/cli/cli/apps/cli/test/builder/output/docker_builder:/work --workdir /work --interactive --tty --user 1001:127 cartesi/sdk:0.11.0 xgenext2fs --block-size 4096 --faketime --readjustment +0 --tarball 292656798_0_2.tar 292656798_0_2.ext2', escapedCommand: 'docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/docker_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --readjustment \'+0\' --tarball 292656798_0_2.tar 292656798_0_2.ext2', cwd: '/home/runner/work/cli/cli/apps/cli/test/builder/output/docker_builder', durationMs: 18.471608, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'the input device is not a TTY', stdio: [ undefined, '', 'the input device is not a TTY' ], ipcOutput: [], pipedFrom: [] }
test/builder/empty.test.ts > empty_builder > invalid size: apps/cli/test/builder/empty.test.ts#L22
AssertionError: expected [Function] to throw error including 'too few blocks' but got 'Command failed with exit code 1: dock…' - Expected + Received - too few blocks + Command failed with exit code 1: docker run --volume '/home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder:/work' --workdir /work --interactive --tty --user '1001:127' 'cartesi/sdk:0.11.0' xgenext2fs --block-size 4096 --faketime --size-in-blocks 0 389563529_0_0.ext2 + + the input device is not a TTY ❯ test/builder/empty.test.ts:22:9
test/builder/empty.test.ts > empty_builder > success: apps/cli/src/exec.ts#L63
ExecaError: Command failed with exit code 1: docker run --volume '/home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder:/work' --workdir /work --interactive --tty --user '1001:127' 'cartesi/sdk:0.11.0' xgenext2fs --block-size 4096 --faketime --size-in-blocks 256 389563529_0_1.ext2 the input device is not a TTY ❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4 ❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17 ❯ Module.execaDockerFallback src/exec.ts:63:20 ❯ Module.build src/builder/empty.ts:33:19 ❯ test/builder/empty.test.ts:35:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --size-in-blocks 256 389563529_0_1.ext2', command: 'docker run --volume /home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder:/work --workdir /work --interactive --tty --user 1001:127 cartesi/sdk:0.11.0 xgenext2fs --block-size 4096 --faketime --size-in-blocks 256 389563529_0_1.ext2', escapedCommand: 'docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --size-in-blocks 256 389563529_0_1.ext2', cwd: '/home/runner/work/cli/cli/apps/cli/test/builder/output/empty_builder', durationMs: 30.131904, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'the input device is not a TTY', stdio: [ undefined, '', 'the input device is not a TTY' ], ipcOutput: [], pipedFrom: [] }
test/builder/tar.test.ts > tar_builder > should build a tar drive: apps/cli/src/exec.ts#L63
ExecaError: Command failed with exit code 1: docker run --volume '/home/runner/work/cli/cli/apps/cli/test/builder/output/tar_builder:/work' --workdir /work --interactive --tty --user '1001:127' 'cartesi/sdk:0.11.0' xgenext2fs --block-size 4096 --faketime --readjustment '+0' --tarball 725683873_0_1.tar 725683873_0_1.ext2 the input device is not a TTY ❯ getFinalError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:167:4 ❯ handlePromise ../../node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:150:17 ❯ Module.execaDockerFallback src/exec.ts:63:20 ❯ Module.build src/builder/tar.ts:31:17 ❯ test/builder/tar.test.ts:31:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/tar_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --readjustment \'+0\' --tarball 725683873_0_1.tar 725683873_0_1.ext2', command: 'docker run --volume /home/runner/work/cli/cli/apps/cli/test/builder/output/tar_builder:/work --workdir /work --interactive --tty --user 1001:127 cartesi/sdk:0.11.0 xgenext2fs --block-size 4096 --faketime --readjustment +0 --tarball 725683873_0_1.tar 725683873_0_1.ext2', escapedCommand: 'docker run --volume \'/home/runner/work/cli/cli/apps/cli/test/builder/output/tar_builder:/work\' --workdir /work --interactive --tty --user \'1001:127\' \'cartesi/sdk:0.11.0\' xgenext2fs --block-size 4096 --faketime --readjustment \'+0\' --tarball 725683873_0_1.tar 725683873_0_1.ext2', cwd: '/home/runner/work/cli/cli/apps/cli/test/builder/output/tar_builder', durationMs: 22.409149, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'the input device is not a TTY', stdio: [ undefined, '', 'the input device is not a TTY' ], ipcOutput: [], pipedFrom: [] }
build
Process completed with exit code 1.