Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github issues to automatically report CI failures #744

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

zakkak
Copy link
Collaborator

@zakkak zakkak commented Jun 3, 2024

Since mandrel-bot is no longer an "admin" of the mandrel repository,
this patch uses newly created issues by mandrel-bot itself to track
failures. This way mandrel-bot can open/close the issues without any
special permission on the repository.

This should resolve issues like in https://github.com/graalvm/mandrel/actions/runs/9326678748/job/25675521613#step:5:219:

 java.io.UncheckedIOException: org.kohsuke.github.HttpException: {"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/issues/issues#update-an-issue"}
	at Report.run(quarkus-ecosystem-issue.java:225)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1769)
	at picocli.CommandLine.access$900(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2144)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
	at picocli.CommandLine.execute(CommandLine.java:1904)
	at Report.main(quarkus-ecosystem-issue.java:364)
Caused by: org.kohsuke.github.HttpException: {"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/issues/issues#update-an-issue"}
	at org.kohsuke.github.GitHubConnectorResponseErrorHandler$1.onError(GitHubConnectorResponseErrorHandler.java:72)
	at org.kohsuke.github.GitHubClient.detectKnownErrors(GitHubClient.java:504)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:464)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:427)
	at org.kohsuke.github.Requester.send(Requester.java:70)
	at org.kohsuke.github.GHIssue.edit(GHIssue.java:288)
	at org.kohsuke.github.GHIssue.close(GHIssue.java:313)
	at Report.run(quarkus-ecosystem-issue.java:195)
	... 8 more

Since mandrel-bot is no longer an "admin" of the mandrel repository,
this patch uses newly created issues by `mandrel-bot` itself to track
failures. This way mandrel-bot can open/close the issues without any
special permission on the repository.
@zakkak zakkak added the testing CI and testing related issues and PRs label Jun 3, 2024
@zakkak zakkak requested a review from jerboaa June 3, 2024 13:48
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 3, 2024
@zakkak zakkak merged commit 7b0dc45 into graalvm:default Jun 4, 2024
352 of 364 checks passed
@zakkak zakkak deleted the update-issues branch June 4, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement. testing CI and testing related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant