github-action-wait-for-status
github-action-wait-for-status copied to clipboard
[Question] - GHE support
I couldn't find anything in src but I wanted to check to see if this works for GHE?
Hmmm good point, I'll look into picking up the API base URL from environment variables. Or by making it configurable.
@WyriHaximus can you please help addressing this issue for GHE. this is a very good action to have it working on GHE
Working on it in #124
Just released v1.7.0. Please let me know if this makes it work on GHE for you.
Still ended up with a similar issue as before
Uncaught Throwable ApiClients\Tools\Psr7\HttpStatusExceptions\UnauthorizedException: "Unauthorized" at /workdir/vendor/api-clients/psr7-http-status-exceptions/src/UnauthorizedException.php line 12
[2022-09-23 14:18:03.300124] wait.DEBUG: Error reason: {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
Still ended up with a similar issue as before
Will double check some things later, but what was the error you got before?
Right so #124 made it use GITHUB_API_URL to get the API URL. Confirmed it uses that during development, and I just did that again to be absolutely sure it does use that. It should solve your issues as I'm unaware of any other differences between Public GitHub.com and GHE.
@sdevineni Have you tried using @v1.7.0 to force it to that version?
yes we tried pulling in the code and pointing to it. will try using it directly from this repo
[2022-09-23 16:26:23.997513] wait.ERROR: Uncaught Throwable RuntimeException: "Connection to tls://github.infra.xxx.com:443 failed during DNS lookup. Last error for IPv6: DNS query for github.infra.xxx.com (AAAA) returned an error response (Non-Existent Domain / NXDOMAIN). Previous error for IPv4: DNS query for github.infra.xxx.com (A) returned an error response (Non-Existent Domain / NXDOMAIN)" at /workdir/vendor/react/socket/src/SecureConnector.php line 76 [2022-09-23 16:26:23.997599] wait.INFO: Final status: error
Ow hmmm I might know
Yup found it, will put together a fix tonight
Thanks a lot @WyriHaximus
Thank you for the errors @sdevineni :+1:
[2022-09-23 16:26:23.997513] wait.ERROR: Uncaught Throwable RuntimeException: "Connection to tls://github.infra.xxx.com:443 failed during DNS lookup. Last error for IPv6: DNS query for github.infra.xxx.com (AAAA) returned an error response (Non-Existent Domain / NXDOMAIN). Previous error for IPv4: DNS query for github.infra.xxx.com (A) returned an error response (Non-Existent Domain / NXDOMAIN)" at /workdir/vendor/react/socket/src/SecureConnector.php line 76 [2022-09-23 16:26:23.997599] wait.INFO: Final status: error
@sdevineni Just tagged v1.7.1 that should fix that error
Will try it out. Please allow me some time.
Keep me posted, it's 2158 here, so the next time I can have a look is Saturday morning
[2022-09-25 15:33:22.431628] wait.ERROR: Uncaught Throwable ApiClients\Tools\Psr7\HttpStatusExceptions\NotAcceptableException: "Not Acceptable" at /workdir/vendor/api-clients/psr7-http-status-exceptions/src/NotAcceptableException.php line 12
@WyriHaximus we found the above issue, @swathida-byte is from my team.
@swathida-byte What are the lines above it?
@sdevineni Cool, I'm out of the country for work this week. But I'll see to improve debugging at which step this happens. Also, which version of GHE are you on?
we are on 3.4.5
Wanted to confirm that the "NotAcceptableException" is present on 3.6.2 as well
Edit:
Specifically it is failing on the first call to look up the owner and does not continue to look up the repo
Specifically it is failing on the first call to look up the owner and does not continue to look up the repo
Well if it can't look that up due to an API error it can't be sure to reach the repo either. But that might work differently in GHE 🤔 . I'll reach out to see if I can get access to a GHE instance somewhere and test this out myself directly.