-
Notifications
You must be signed in to change notification settings - Fork 58
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
After migration from v1 to v2 silently fails #174
Comments
We are having the same issue here, no errors or warnings in the logs. |
As far as I'm aware, the only significant change in Are you using a GitHub-provided runner, or a custom runner? If there are no errors or warnings, can you describe what "silently fails" looks like? Screenshots or links to runs would be very helpful. Is there anything more you can share that might help us determine the underlying cause? |
We have been suffering from sporadic failures of this action ever since I upgraded it to |
This is how it looks like in the Actions UI. There's no output at all. The action is marked as failed and the build stops. |
Thanks for the further info. Can you please try to enable GitHub Actions debugging and see if that provides more clues? Also, why are you setting |
@TWiStErRob (or anyone else) : can you confirm that |
I believe those are set by |
I tried re-running the previously failed job a few times with debug logs and the action worked every time. But I may have been lucky because it only failed 1 time out of 10 before. |
V2 works intermittently, we have 2 separate Gradle steps in the same workflow. The second one fails more frequently. |
Ah, got it. The image you shared is Github describing the full environment, not the actual config you entered. I'm guessing there's something different in Node 20 that causes the process to return with a non-zero exit value. I just don't have any idea what that might be. |
I think it works for me2 emails in thread means PR opened and auto-merged. This is from last night. Almost all my repos use this reusable workflow (and version): and it's a required check on branch protection rules. |
Just tried with debugging enabled and saw it fail multiple times with exit code 1
nothing about any failure or error in the logs |
Adding the repository variable |
Every run locally runs (with node versions 20.x, I haven't tested patch releases though), on GitHub runners and also on self hosted runners it seems to fail and debug doesn't show anything, trying to investigate still... |
I had a quick look at the code and this stood out: wrapper-validation-action/src/main.ts Line 29 in 56b90f2
@bigdaz I have a feeling message can be easily e.g. |
Refining further (above just to let you know that I'm working on it ;) |
Ok, seems like this is just your ordinary timeout error, only hidden away...
|
@deejay1 @TWiStErRob Thanks for investigating. I'm not very familiar with the code in this action, but I agree with your assessments. My understanding from your analysis is that this isn't a new failure, but that the old ETIMEDOUT failure now results in a silent failure with no reported error message. I guess that something changed from Node 16 -> Node 20 with the way this exception is thrown. The fix might be as simple as replicating this error handling in the setup-gradle action. https://github.com/gradle/actions/blob/main/sources/src/setup-gradle/main.ts#L26-L31. I'm on vacation this week, so any assistance finding a fix will be greatly appreciated. |
As far as I managed to found some information NodeJS 17 switched to using the addresses as the DNS resolvers gives them out, so we get IPv6 addresses before/between/first the IPv4 ones (see nodejs/node#39987). Of course now as I set up better logging then every run is good :/ |
This should be fixed in |
Ok, another cause for the issue at all may be described here nodejs/node#48145 Edit: and nodejs/node#51045 and nodejs/node#47822 Isn't backported to v20 yet :/ |
That's it, nothing helpful for troubleshooting
The text was updated successfully, but these errors were encountered: