Skip to content

Commit 67674e0

Browse files
committed
Clean up
1 parent 3a21628 commit 67674e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: transport-interop/impl/zig/v0.0.1/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ print-cpu-info: image.json
77
docker run --rm --entrypoint /app/zig/bin/zig $$(jq -r .imageID image.json) build-exe --show-builtin
88

99
image.json:
10-
cd zig-libp2p-${commitSha} && docker build --network=host -t ${image_name} -f interop/Dockerfile .
10+
wget -O zig-libp2p-${commitSha}.zip "https://github.com/marcopolo/zig-libp2p/archive/${commitSha}.zip"
11+
unzip -o zig-libp2p-${commitSha}.zip
12+
cd zig-libp2p-${commitSha} && docker build -t ${image_name} -f interop/Dockerfile .
1113
docker image inspect ${image_name} -f "{{.Id}}" | \
1214
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
1315

Diff for: transport-interop/src/compose-runner.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { stringify } from 'yaml';
99
import { dialerStdout, dialerTimings } from './compose-stdout-helper';
1010

1111
const exec = util.promisify(execStd);
12-
const timeoutSecs = 42
12+
const timeoutSecs = 3 * 60
1313

1414
export type RunOpts = {
1515
up: {
@@ -50,9 +50,7 @@ export async function run(namespace: string, compose: ComposeSpecification, opts
5050
const controller = new AbortController();
5151
const timeoutId = setTimeout(() => controller.abort(), 1000 * timeoutSecs)
5252
const { signal } = controller;
53-
const dcPath = `docker compose -f ${path.join(dir, "compose.yaml")} up ${upFlags.join(" ")}`
54-
console.warn(dcPath)
55-
const { stdout, stderr } = await exec(dcPath, { signal })
53+
const { stdout, stderr } = await exec(`docker compose -f ${path.join(dir, "compose.yaml")} up ${upFlags.join(" ")}`, { signal })
5654
clearTimeout(timeoutId)
5755
try {
5856
const testResultsParsed = dialerTimings(dialerStdout(stdout))

0 commit comments

Comments
 (0)