You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "mykaul (via GitHub)" <gi...@apache.org> on 2026/03/31 14:03:43 UTC

[PR] ci: fix resolve-cassandra-version GitHub API rate limit (403 error) [cassandra-gocql-driver]

mykaul opened a new pull request, #1940:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1940

   ## Summary
   
   - Use `gh` CLI with authenticated GitHub API access for Cassandra version resolution in CI, avoiding the 60 req/hr unauthenticated rate limit that causes 403 errors on shared GitHub Actions runner IPs
   - Fall back to the existing `get-version` tool for environments without `gh` CLI or a GitHub token (e.g., developer laptops)
   - Set `GH_TOKEN` in the `test-integration-cassandra` workflow job
   
   ## Problem
   
   `make resolve-cassandra-version` fails in CI because the `get-version` tool (`scylladb-actions/get-version` v0.4.3) makes **unauthenticated** requests to `https://api.github.com/repos/apache/cassandra/tags`. The unauthenticated rate limit is 60 requests/hour per IP, and GitHub-hosted runners share IPs, so the limit is frequently hit. The tool has exponential backoff retry, but cannot recover when the rate window hasn't reset.
   
   The `get-version` tool has no `--token` flag or `GITHUB_TOKEN` env var support ([source](https://github.com/scylladb-actions/get-version/blob/main/sources/github/github.go#L63-L66)), so the fix must be done on the caller side.
   
   ## Solution
   
   When `gh` CLI is available and `GH_TOKEN`/`GITHUB_TOKEN` is set (always true in GitHub Actions), use `gh api --paginate` for authenticated tag fetching (5000 req/hr). Otherwise, fall back to `get-version` as before.
   
   Fixes #794


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] ci: fix resolve-cassandra-version GitHub API rate limit (403 error) [cassandra-gocql-driver]

Posted by "mykaul (via GitHub)" <gi...@apache.org>.
mykaul closed pull request #1940: ci: fix resolve-cassandra-version GitHub API rate limit (403 error)
URL: https://github.com/apache/cassandra-gocql-driver/pull/1940


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org