From c36f89b485bf8c0d4d3ffc7d82f9d89b1653b198 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Fri, 8 Mar 2024 14:16:46 -0800 Subject: [PATCH] pathogen-repo-build: use `tee -a build.log`` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was confused that the CI workflow¹ did not have an AWS Batch Job summary even though the tests have included an aws-batch runtime since dab7abcb3145adaf4e81ad85ff94c274a23b46ce. The build.log from the build-output-aws-batch artifact² was incomplete and did not include the AWS Batch Job ID. The build.log only includes the last part of the build logs, so I suspect it's somehow overwriting itself. ¹ https://github.com/nextstrain/.github/actions/runs/8209158885?pr=76 ² https://github.com/nextstrain/.github/actions/runs/8209158885/artifacts/1310654964 --- .github/workflows/pathogen-repo-build.yaml | 2 +- .github/workflows/pathogen-repo-build.yaml.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pathogen-repo-build.yaml b/.github/workflows/pathogen-repo-build.yaml index c6b2da1..4f57bbb 100644 --- a/.github/workflows/pathogen-repo-build.yaml +++ b/.github/workflows/pathogen-repo-build.yaml @@ -276,7 +276,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee -a build.log # Attempt to get the AWS Batch ID even if the run build command failed # as long as the runtime is `aws-batch` and the `build.log` file exists - if: ${{ always() && inputs.runtime == 'aws-batch' && hashFiles('build.log') != '' }} diff --git a/.github/workflows/pathogen-repo-build.yaml.in b/.github/workflows/pathogen-repo-build.yaml.in index 54f548a..d218586 100644 --- a/.github/workflows/pathogen-repo-build.yaml.in +++ b/.github/workflows/pathogen-repo-build.yaml.in @@ -243,7 +243,7 @@ jobs: # shellcheck disable=SC2154 set -x - eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee build.log + eval "unbuffer $NEXTSTRAIN_BUILD_COMMAND" |& tee -a build.log # Attempt to get the AWS Batch ID even if the run build command failed # as long as the runtime is `aws-batch` and the `build.log` file exists