github-action-wait-for-status icon indicating copy to clipboard operation
github-action-wait-for-status copied to clipboard

[Question] - GHE support

Open codezninja opened this issue 3 years ago • 23 comments

I couldn't find anything in src but I wanted to check to see if this works for GHE?

codezninja avatar Jan 14 '22 14:01 codezninja

Hmmm good point, I'll look into picking up the API base URL from environment variables. Or by making it configurable.

WyriHaximus avatar Jan 14 '22 17:01 WyriHaximus

@WyriHaximus can you please help addressing this issue for GHE. this is a very good action to have it working on GHE

sdevineni avatar Sep 22 '22 05:09 sdevineni

Working on it in #124

WyriHaximus avatar Sep 23 '22 08:09 WyriHaximus

Just released v1.7.0. Please let me know if this makes it work on GHE for you.

WyriHaximus avatar Sep 23 '22 10:09 WyriHaximus

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"}

sdevineni avatar Sep 23 '22 14:09 sdevineni

Still ended up with a similar issue as before

Will double check some things later, but what was the error you got before?

WyriHaximus avatar Sep 23 '22 14:09 WyriHaximus

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.

WyriHaximus avatar Sep 23 '22 15:09 WyriHaximus

@sdevineni Have you tried using @v1.7.0 to force it to that version?

WyriHaximus avatar Sep 23 '22 15:09 WyriHaximus

yes we tried pulling in the code and pointing to it. will try using it directly from this repo

sdevineni avatar Sep 23 '22 16:09 sdevineni

[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 avatar Sep 23 '22 16:09 sdevineni

Ow hmmm I might know

WyriHaximus avatar Sep 23 '22 17:09 WyriHaximus

Yup found it, will put together a fix tonight

WyriHaximus avatar Sep 23 '22 17:09 WyriHaximus

Thanks a lot @WyriHaximus

sdevineni avatar Sep 23 '22 17:09 sdevineni

Thank you for the errors @sdevineni :+1:

WyriHaximus avatar Sep 23 '22 17:09 WyriHaximus

[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

WyriHaximus avatar Sep 23 '22 19:09 WyriHaximus

Will try it out. Please allow me some time.

sdevineni avatar Sep 23 '22 19:09 sdevineni

Keep me posted, it's 2158 here, so the next time I can have a look is Saturday morning

WyriHaximus avatar Sep 23 '22 19:09 WyriHaximus

[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

swathida-byte avatar Sep 26 '22 03:09 swathida-byte

@WyriHaximus we found the above issue, @swathida-byte is from my team.

sdevineni avatar Sep 26 '22 17:09 sdevineni

@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?

WyriHaximus avatar Sep 26 '22 17:09 WyriHaximus

we are on 3.4.5

sdevineni avatar Sep 26 '22 18:09 sdevineni

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

Zyian avatar Oct 11 '22 19:10 Zyian

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.

WyriHaximus avatar Oct 12 '22 18:10 WyriHaximus