Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
flcl42 committed Feb 21, 2024
1 parent 3a21628 commit 04950cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion transport-interop/impl/zig/v0.0.1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ print-cpu-info: image.json
docker run --rm --entrypoint /app/zig/bin/zig $$(jq -r .imageID image.json) build-exe --show-builtin

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

Expand Down
6 changes: 2 additions & 4 deletions transport-interop/src/compose-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { stringify } from 'yaml';
import { dialerStdout, dialerTimings } from './compose-stdout-helper';

const exec = util.promisify(execStd);
const timeoutSecs = 42
const timeoutSecs = 3 * 60;

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

0 comments on commit 04950cb

Please sign in to comment.