You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/13 06:20:46 UTC
[GitHub] [pulsar-test-infra] lhotari opened a new pull request #20: Fix retries when there are more than 30 check runs
lhotari opened a new pull request #20:
URL: https://github.com/apache/pulsar-test-infra/pull/20
### Motivation
Pulsarbot doesn't currently retry all check runs. When investigating the problem, it was noticed that the API call returns 30 check runs by default. By appending `?per_page=100` to the url, it's possible to return up to 100 check runs.
command line example:
```bash
$ curl -s -L 'https://api.github.com/repos/apache/pulsar/commits/3a838f1b4af194d7b39fbd7ebec06852aafa88b0/check-runs' | jq '.check_runs[].id' | wc -l
30
$ curl -s -L 'https://api.github.com/repos/apache/pulsar/commits/3a838f1b4af194d7b39fbd7ebec06852aafa88b0/check-runs?per_page=100' | jq '.check_runs[].id' | wc -l
31
```
### Modifications
Append `?per_page=100` to the url of the API call that lists check runs for a commit.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-test-infra] eolivelli merged pull request #20: Fix retries when there are more than 30 check runs
Posted by GitBox <gi...@apache.org>.
eolivelli merged pull request #20:
URL: https://github.com/apache/pulsar-test-infra/pull/20
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org