Skip to content

decide_if_reproduce fails: uses expired GitLab API token

decide_if_reproduce's job is to tell whether the branch is for a "Needs validation" issue, in which case it'll trigger an attempt to rebuild reproducibly. At the moment it seems this script never concludes that it's worth doing that.

I've tried to run a modified version the script on jenkins@isoworker6 with some print-debugging added, like this, on a branch for an issue that is indeed in "Needs validation" state:

JOB_NAME=build_Tails_ISO_18655-zstd-squashfs-simple TAILS_TICKET=18655 ./decide_if_reproduce --apikey_file /etc/jenkins/gitlab_apikey --reproduce_file /tmp/repro

And requests.get(API_URL.format(ticket), headers=headers).json() returned this:

{'error': 'invalid_token', 'error_description': 'Token is expired. You can either do re-authorization or token refresh.'}

Please renew the token and consider either making the new one never expire, or tracking its expiration somehow. Thanks in advance!

cc @anonym and @boyska for awareness