-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Test report publishing step errors on 3.3.0 #640
Comments
This looks to be pointing to a permission issue possibly: octokit/rest.js#37 ? |
Given that the related |
That explains the behaviour I see: I'm doing a PR from a fork, and the passing runs don't. However, the behaviour was slightly different in 3.2.0: it would print an error (and not fail the check) instead of crashing as it does here. Also, if |
Sorry, looks like I've misinterpreted what happens. I agree there's a permissions issue, but the behaviour is different compared with 3.2.0. In 3.2.0, an error message "Failed to create checks using the provided token" is printed, but the step passes overall. In 3.3.0, that error message is not printed, the stack trace appears, and the step is marked as a failure. This implies that the error is not being caught? |
Going by the assumption that the error log shows the actual call order the crash occurs. If I interpret the error log correctly, the error is logged in the The |
Yes that is surely strange. 🤔. Both annotation calls are being wrapped in a Not sure why it would not catch it |
Ah.
|
@midgleyc 😮. You are absolutely right. I wished javascript would warn about that |
I have used https://typescript-eslint.io/rules/no-floating-promises/. It's not exactly the right use-case, but it is the closest I've found. |
Thanks for the prompt fix / discussion! |
Appreciate working through this with you! and thanks for the link to the |
The crash mostly appears in the logs after the "Publish results" step is skipped, but seems like it happens asynchronously (e.g. on https://github.com/kolmafia/kolmafia/runs/7930092463 it appears after "Retrieved 1 reports to process.").
Here is a failing run: https://github.com/kolmafia/kolmafia/runs/7930011115
It worked on 3.3.0, at least some of the time: https://github.com/kolmafia/kolmafia/actions/runs/2885651235. It would sometimes not create the report on 3.2.0, but it wouldn't crash.
The text was updated successfully, but these errors were encountered: