Skip to content

Commit b77d5b3

Browse files
[chore] Ensure "update-otel workflow failed" issues have logs from all job steps (#44583)
#### Description When the `update-otel` workflow fails, an issue titled "update-otel workflow failed" is created, containing the last 100 lines of the CI's log output to help diagnose the problem. However, we've recently seen failures in steps that aren't covered by this log capture, which makes the output useless. (Example: #44580, where the failure was while creating the PR) This PR ensures we capture logs from all steps in the `update-otel` job.
1 parent e3474d7 commit b77d5b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-otel.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ jobs:
5050
max_attempts: 2
5151
retry_on: error
5252
command: |
53+
exec > >(tee -a log.out) 2>&1
5354
cd opentelemetry-collector-contrib
5455
make update-otel OTEL_STABLE_VERSION=${{ env.LAST_COMMIT }} OTEL_VERSION=${{ env.LAST_COMMIT }}
5556
- name: Push and create PR
56-
run: |
57+
run: |
58+
exec > >(tee -a log.out) 2>&1
5759
cd opentelemetry-collector-contrib
5860
git push --set-upstream origin ${{ env.BRANCH_NAME }}
5961
gh pr create --base main --title "[chore] Update core dependencies" --body "This PR updates the opentelemetry-collector modules to open-telemetry/opentelemetry-collector@${{ env.LAST_COMMIT }}" --draft

0 commit comments

Comments
 (0)