Skip to content

mdbooth/gerrit-recheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gerrit-recheck

A tool to automatically recheck a change in OpenStack CI if it fails.

This tool should not exist, but it does and it's useful. Make of that what you will.

Gerrit authentication

The tool uses Gerrit's REST api, which on opendev uses HTTP basic authentication. To get an HTTP password you need to generate one. When logged in to Gerrit, go to Settings->HTTP Credentials, and click GENERATE NEW PASSWORD.

The tool reads the password from stdin when invoked. If you store your gerrit credentials locally, please store them carefully, for example using a keystore with a master password. Alternatively generate a new password from the gerrit web UI for each invocation.

Building

make

Usage

To automatically recheck change https://review.opendev.org/c/openstack/openstacksdk/+/763121/, do:

./gerrit-recheck -u MatthewBooth 763121

To do the same, but automatically passing a password from pass:

pass review.opendev.org/http | ./gerrit-recheck -u MatthewBooth 763121

Behaviour

The tool looks for a negative Verified vote from Zuul. If it finds one, it looks for a recheck comment dated later than the negative vote. If it doesn't find one, it adds one.

The tool polls gerrit every 30 minutes.

The tool exits when Zuul gives a +2 Verified vote.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published