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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to