Skip to content

Commit

Permalink
CI: retry actions/github-script for 5XX errors (#9703)
Browse files Browse the repository at this point in the history
## Problem

GitHub API can return error 500, and it fails jobs that use
`actions/github-script` action.

## Summary of changes
- Add `retry: 500` to all `actions/github-script` usage
  • Loading branch information
bayandin authored Nov 11, 2024
1 parent ceaa80f commit f510647
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/allure-report-generate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ runs:
REPORT_URL: ${{ steps.generate-report.outputs.report-url }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
with:
# Retry script for 5XX server errors: https://github.com/actions/github-script#retries
retries: 5
script: |
const { REPORT_URL, COMMIT_SHA } = process.env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ jobs:
REPORT_URL_NEW: ${{ steps.upload-coverage-report-new.outputs.report-url }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
with:
# Retry script for 5XX server errors: https://github.com/actions/github-script#retries
retries: 5
script: |
const { REPORT_URL_NEW, COMMIT_SHA } = process.env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/neon_extra_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ jobs:
REPORT_URL: ${{ steps.upload-stats.outputs.report-url }}
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
with:
# Retry script for 5XX server errors: https://github.com/actions/github-script#retries
retries: 5
script: |
const { REPORT_URL, SHA } = process.env
Expand Down

1 comment on commit f510647

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5446 tests run: 5207 passed, 7 failed, 232 skipped (full report)


Failures on Postgres 16

  • test_sharded_ingest[github-actions-selfhosted-1]: release-x86-64
  • test_download_churn[github-actions-selfhosted-1-tokio-epoll-uring-30]: release-x86-64
  • test_download_churn[github-actions-selfhosted-1-std-fs-30]: release-x86-64
  • test_download_churn[github-actions-selfhosted-10-tokio-epoll-uring-30]: release-x86-64
  • test_download_churn[github-actions-selfhosted-10-std-fs-30]: release-x86-64
  • test_download_churn[github-actions-selfhosted-100-tokio-epoll-uring-30]: release-x86-64
  • test_download_churn[github-actions-selfhosted-100-std-fs-30]: release-x86-64
# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_sharded_ingest[release-pg16-github-actions-selfhosted-1] or test_download_churn[release-pg16-github-actions-selfhosted-1-tokio-epoll-uring-30] or test_download_churn[release-pg16-github-actions-selfhosted-1-std-fs-30] or test_download_churn[release-pg16-github-actions-selfhosted-10-tokio-epoll-uring-30] or test_download_churn[release-pg16-github-actions-selfhosted-10-std-fs-30] or test_download_churn[release-pg16-github-actions-selfhosted-100-tokio-epoll-uring-30] or test_download_churn[release-pg16-github-actions-selfhosted-100-std-fs-30]"
Flaky tests (2)

Postgres 17

Postgres 14

Code coverage* (full report)

  • functions: 31.7% (7871 of 24806 functions)
  • lines: 49.4% (62275 of 126036 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f510647 at 2024-11-11T14:28:25.265Z :recycle:

Please sign in to comment.