ceph-csi/actions/retest
Niels de Vos e8c0e75e04 ci: check more reviews in retest action
It seems PullRequests.ListReviews() returns 30 reviews by default. This
is practical for pagination, but not so much for a GitHub action. There
is the rare occasion that the number of reviews if higher than 30. If
that is the case, the retest action does not capture the latest reviews,
which is where the APPROVED status is set.

By increasing the number of results to 100 per page, we should have
sufficient space for many more reviews and automated retest-ing.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2022-06-06 04:39:37 +00:00
..
vendor ci: update action go.mod to 1.17 2021-12-13 07:32:54 +00:00
action.yaml ci: add retest github action 2021-11-16 12:03:36 +00:00
Dockerfile build: use golang:1.16 as runtime container for retest action 2021-11-17 14:36:13 +00:00
go.mod ci: update action go.mod to 1.17 2021-12-13 07:32:54 +00:00
go.sum ci: add retest github action 2021-11-16 12:03:36 +00:00
main.go ci: check more reviews in retest action 2022-06-06 04:39:37 +00:00
README.md ci: add retest github action 2021-11-16 12:03:36 +00:00

retest-action

This is a github action built using the golang and the github api. The main idea behind this one is to retest the failed tests on the approved PR's to avoid burden on the maintainer's/author's to retest all the failed tests.

  • List the pull requests from the github organization.
  • Check PR is open and have required approvals.
  • Check PR as the required label to continue to retest.
  • Pulls the failed test details.
  • Check failed test has reached the maximum limit.
  • If the limit has not reached the action will post the retest command on the PR with log location for further debugging.
  • If the limit has reached the Pull Request will be skipped.