Automated plugin release failing on 'check interesting categories' step

88 views
Skip to first unread message

José Lamas Ríos

unread,
Feb 24, 2022, 4:52:46 PM2/24/22
to Jenkins Developers
Hi, 

I'm having problems with the automated release workflow for genexus-plugin.


After the successful build it gets to create the release draft, but then seems to fail at finding it with an interesting category, so the release is not fired.

The draft release was created at https://github.com/jenkinsci/genexus-plugin/releases/tag/untagged-1934fa52b049ad8ace3d and running these commands on my terminal does seem to work:

McJLR:~jlr$ RESULT=$(gh api /repos/jenkinsci/genexus-plugin/releases | jq -e -r '.[] | select(.draft == true and .name == "next") | .body' | egrep "$INTERESTING_CATEGORIES" || echo 'failed')

McJLR:~ jlr$ echo $RESULT

## 🐛 Bug fixes


Any ideas?

Thanks in advance,





José Lamas Ríos

unread,
Feb 24, 2022, 5:05:39 PM2/24/22
to Jenkins Developers
Maybe unrelated but I've just noticed that the release draft that was just created and is listed as the most recent one but shows a Dec 10 2021 date...

There is in fact another release on that date that is not in draft state but (probably due to some error on my part) got published while keeping the 'next' tag / name.

I'll later try renaming or deleting the old release and check if that fixes the problem. 

Tim Jacomb

unread,
Feb 24, 2022, 5:18:30 PM2/24/22
to jenkin...@googlegroups.com
We were just discussing this here:
By using a manual trigger to bypass the interesting category check and publishing the release notes myself I was able to get the release out

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c742b7c1-e2e2-456a-a6ab-d2a56f76fb36n%40googlegroups.com.

Alex

unread,
Feb 24, 2022, 5:57:39 PM2/24/22
to Jenkins Developers
To amend my comment on the dark-theme-plugin PR, I got the action somewhat of working by wiping the additional drafts and keeping one that covers all.
I'm using release-drafter via GitHub actions outside of Jenkins too and have repositories with several drafts with different entries, so I'm not sure whether that is an actual issue with CD or GH actions/release-drafter itself.
However, I didn't make it as far as Tim, because the "release" step fails with a 403 on deployment for me. That failure creates a new draft and we're basically back at step one.

Alex

unread,
Feb 24, 2022, 6:37:19 PM2/24/22
to Jenkins Developers
I got it working by exchanging the GitHub token in the workflow with a PAT: https://github.com/jenkinsci/purge-build-queue-plugin/commit/3e0e709bf62ec15a84d5bf4e2e81a98ace7b79bf

I guess, GitHub either changed or broke something (both I'm currently unaware of), because the regular GH token suffices and grants read/write perms to all scopes, unless you change the workflow permission to read only for content, but that doesn't apply here. 

Tim Jacomb

unread,
Feb 25, 2022, 3:36:38 AM2/25/22
to Jenkins Developers
Weirdly if I run all the steps locally from the GitHub action I'm getting the right results =/


Alex

unread,
Feb 25, 2022, 4:05:29 AM2/25/22
to Jenkins Developers
Looks like others had the same idea like me and got it working with a PAT: https://github.com/release-drafter/release-drafter/issues/1081#issuecomment-1050099868 
Or locally like it does work for you.

José Lamas Ríos

unread,
Feb 25, 2022, 1:02:44 PM2/25/22
to jenkin...@googlegroups.com
Thank you all for your comments and help.

tl;dr: seems to be working now (last PR merge resulted in a new release)

FTR: some notes about what I did:
  1. Last night I manually ran the workflow to see if it made any difference that there was already a release draft. 
    1. It created an additional release draft https://github.com/jenkinsci/genexus-plugin/releases/tag/untagged-1934fa52b049ad8ace3d in addition to the previous one at https://github.com/jenkinsci/genexus-plugin/releases/tag/untagged-7aa3d1fa5d120e7a8b1a. Both are shown as created Dec 10 2021, though it might simply be a problem with the web site logic fetching the date for release with that 'next' name and getting the data for the old one (name is not unique). 
  2. Then this morning tried:
  3. Later:
  4. Last:


You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/110lPg1O2u0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/de8037a9-c7fe-4142-885d-7ccb8b52eb1bn%40googlegroups.com.

Alex

unread,
Feb 25, 2022, 4:27:20 PM2/25/22
to jenkin...@googlegroups.com
I had a chat with a GitHub staff member earlier:

Hi Alex,

Thank you for your patience with this issue.

Our team verified today that a releases feature flag that was enabled yesterday caused the experienced behavior with accessing draft releases from API calls authenticated with GITHUB_TOKEN.

This flag was disabled earlier today, so accessing draft releases via API should work as expected again. This flag will remain disabled until our engineering team investigates and addresses the impact it had on using GITHUB_TOKEN.

Please let us know if there is anything else we can help out with. Thank you again for writing in about this behavior!

I can verify it works again, however, if you have several release drafts, you should get rid of them nevertheless. Only the newest entry is edited, as supposed to be.

~Alex
 

Reply all
Reply to author
Forward
0 new messages