summaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorElizabeth <me@liz.coffee>2025-06-02 19:27:15 -0700
committerElizabeth <me@liz.coffee>2025-06-02 19:27:15 -0700
commit2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae (patch)
tree8db4b1ac04da35bed464cc8e4678f90b9eb6bda2 /worker
parenta16fbd3eaa165b3226a3b0ed9848b51718aaeafa (diff)
downloadci-2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae.tar.gz
ci-2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae.zip
Fixes when getStdout would throw early
Diffstat (limited to 'worker')
-rw-r--r--worker/jobs/ci_pipeline.run4
-rwxr-xr-xworker/scripts/ansible_playbook2
2 files changed, 3 insertions, 3 deletions
diff --git a/worker/jobs/ci_pipeline.run b/worker/jobs/ci_pipeline.run
index 46237f6..66b02ed 100644
--- a/worker/jobs/ci_pipeline.run
+++ b/worker/jobs/ci_pipeline.run
@@ -48,7 +48,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob)
},
};
return Either.fromFailableAsync<Error, CheckoutCiJob>(
- Deno.mkdir(wd).then(() => Deno.chdir(wd))
+ () => Deno.mkdir(wd).then(() => Deno.chdir(wd))
.then(() => tEitherJob.move(fetchPackageJob).map(executeJob).get())
.then(() => ciJob),
);
@@ -58,7 +58,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob)
tEitherCiJob.get().then((eitherCiJob) =>
eitherCiJob.flatMapAsync<{ cmd: Command; job: CheckoutCiJob }>((ciJob) =>
Either.fromFailableAsync<Error, string>(
- Deno.readTextFile(
+ () => Deno.readTextFile(
`${getSrcDirectoryForCiJob(ciJob)}/${CI_WORKFLOW_FILE}`,
),
).then((eitherWorkflowJson) =>
diff --git a/worker/scripts/ansible_playbook b/worker/scripts/ansible_playbook
index 026f892..fe2810b 100755
--- a/worker/scripts/ansible_playbook
+++ b/worker/scripts/ansible_playbook
@@ -104,7 +104,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob).bimap(TraceUtil.withMetricTrace
const saveToTempFile = (text: string): Promise<IEither<Error, string>> =>
Either.fromFailableAsync(
- Deno.makeTempDir({ dir: Deno.cwd() })
+ () => Deno.makeTempDir({ dir: Deno.cwd() })
.then((dir) => Deno.makeTempFile({ dir }))
.then(async (f) => {
await Deno.writeTextFile(f, text);