Skip to content

Commit dbbefbb

Browse files
authored
[chore] Set more reasonable update-otel retry parameters (open-telemetry#41337)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Follows open-telemetry#41272. This job typically takes 20-30 minutes, so we need to put a much higher timeout
1 parent b7f52de commit dbbefbb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/update-otel.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,17 @@ jobs:
3535
echo "LAST_COMMIT=$LAST_COMMIT" >> $GITHUB_ENV
3636
echo "BRANCH_NAME=$branch" >> $GITHUB_ENV
3737
env:
38-
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
39-
38+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
4039
- name: Gets packages from links with retries
4140
uses: nick-fields/retry@v3
4241
with:
43-
retry_wait_seconds: 5
44-
timeout_minutes: 15
42+
retry_wait_seconds: 500
43+
timeout_minutes: 120
4544
max_attempts: 3
4645
retry_on: error
4746
command: |
4847
cd opentelemetry-collector-contrib
4948
make update-otel OTEL_STABLE_VERSION=${{ env.LAST_COMMIT }} OTEL_VERSION=${{ env.LAST_COMMIT }}
50-
5149
- name: Push and create PR
5250
run: |
5351
cd opentelemetry-collector-contrib
@@ -74,4 +72,4 @@ jobs:
7472
body="$(printf "$template" "$job_url" "$(tail -n100 log.out | tail -c63K)")"
7573
gh issue create -R ${{ github.repository }} -t 'update-otel workflow failed' -b "$body" -l 'ci-cd'
7674
env:
77-
GH_TOKEN: ${{ github.token }}
75+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)