Skip to content

Fix further CI issues - #10496

Merged
dbeck merged 1 commit into
mainfrom
dbeck/ci_apt_github
Aug 25, 2026
Merged

Fix further CI issues#10496
dbeck merged 1 commit into
mainfrom
dbeck/ci_apt_github

Conversation

@dbeck

@dbeck dbeck commented Aug 25, 2026

Copy link
Copy Markdown
Member

Occasionally, we can't get the latest version from GitHub, causing intermittent CI errors. The culprit is this URL: api.github.com/repos/timescale/timescaledb/releases/latest. I added better reporting in the CI workflows so it is more obvious when this happens, and I also added more retries and error handling to 'wget'.

The 'keyserver.ubuntu.com' also started failing requests, so I added a fallback to 'keys.openpgp.org' for the code-style/clang-tidy tests.

Disable-check: force-changelog-file

@github-actions

Copy link
Copy Markdown

@svenklemm, @akuzm: please review this pull request.

Powered by pull-review

@dbeck
dbeck force-pushed the dbeck/ci_apt_github branch 2 times, most recently from 0ff5ec2 to 8f9d1c7 Compare August 25, 2026 10:51
Comment thread .github/workflows/apt-installcheck.yaml Outdated
version=$(wget -q --tries=6 --waitretry=15 https://api.github.com/repos/timescale/timescaledb/releases/latest -O - | jq -r .tag_name)
echo "version=${version}"
echo "version=${version}" >>$GITHUB_OUTPUT
version=$(wget -q --tries=9 --waitretry=20 --retry-connrefused --retry-on-http-error=503 https://api.github.com/repos/timescale/timescaledb/releases/latest -O - | jq -r .tag_name)

@akuzm akuzm Aug 25, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's hitting rate limits. Maybe we should replace it with gh api call that runs outside of container with the standard actions github token, in some previous step?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will try a more graceful retry strategy first

@akuzm akuzm Aug 25, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  - name: Get version of latest release
    id: versions
    env:
      GH_TOKEN: ${{ github.token }}
    run: |
      version=$(gh api repos/${{ github.repository }}/releases/latest --jq .tag_name)
      echo "version=${version}" >>$GITHUB_OUTPUT                                                                                                                                     

The thing I have in mind is something like this. Maybe it can run inside container too, not sure. It looks kind of weird that we're working around unauthenticated API access from inside a github action. You can pass the token to wget too if you wish, it goes somewhere into the http header.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm happy to try this. I'm still concerned that the rate limiting was not the only cause of the frequent github issues we have seen. There were too many problems with github infra in the past year.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The image doesn't have the gh tool and it needs other fragile things, like getting the keyring, adding another repo and then insalling from it. I will stick to wget and add the auth token.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we could fall back to previous_version in version.config

@dbeck
dbeck force-pushed the dbeck/ci_apt_github branch from 8f9d1c7 to e933500 Compare August 25, 2026 11:00
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@dbeck
dbeck force-pushed the dbeck/ci_apt_github branch 2 times, most recently from 8ce612e to 450cbce Compare August 25, 2026 11:49
@dbeck
dbeck force-pushed the dbeck/ci_apt_github branch 7 times, most recently from 2664b5b to ffc43a4 Compare August 25, 2026 12:44
Occasionally, we can't get the latest version from GitHub, causing
intermittent CI errors. The culprit is this URL:
`api.github.com/repos/timescale/timescaledb/releases/latest`. I added better
reporting in the CI workflows so it is more obvious when this happens, and
I also added more retries and error handling to 'wget'.

The 'keyserver.ubuntu.com' also started failing requests, so I added a fallback
to 'keys.openpgp.org' for the code-style/clang-tidy tests.

Disable-check: force-changelog-file
@dbeck
dbeck force-pushed the dbeck/ci_apt_github branch from ffc43a4 to 625a881 Compare August 25, 2026 12:47
@dbeck
dbeck merged commit f619357 into main Aug 25, 2026
145 checks passed
@dbeck
dbeck deleted the dbeck/ci_apt_github branch August 25, 2026 14:47
@timescale-automation timescale-automation added the released-2.30.0 Released in 2.30.0 label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released-2.30.0 Released in 2.30.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants