Skip source GHES version check when the source host ends in ghe.com
#1530
+27
−0
GitHub Actions / Integration Test Results - Ghes
failed
Mar 20, 2026 in 0s
2 fail in 2m 6s
2 tests 0 ✅ 2m 6s ⏱️
1 suites 0 💤
1 files 2 ❌
Results for commit be4741a.
Annotations
Check warning on line 0 in OctoshiftCLI.IntegrationTests.GhesToGithub
github-actions / Integration Test Results - Ghes
Basic(useGithubStorage: True) (OctoshiftCLI.IntegrationTests.GhesToGithub) failed
src/OctoshiftCLI.IntegrationTests/integration-tests.xml [took 1m 3s]
Raw output
OctoshiftCLI.OctoshiftCliException : Unauthorized. Please check your token and try again
---- System.Net.Http.HttpRequestException : GitHub API error: {
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest",
"status": "401"
}
-------- System.Net.Http.HttpRequestException : Response status code does not indicate success: 401 (Unauthorized).
at OctoshiftCLI.RetryPolicy.<CreateRetryPolicyForException>b__8_1[TException](Exception ex, TimeSpan ts, Context ctx) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 57
at Polly.AsyncRetrySyntax.<>c__DisplayClass22_0.<<WaitAndRetryAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at OctoshiftCLI.RetryPolicy.Retry[T](Func`1 func) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 45
at OctoshiftCLI.Services.GithubClient.GetWithRetry(String url, Dictionary`2 customHeaders, HttpStatusCode expectedStatus) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 157
at OctoshiftCLI.Services.GithubClient.GetAllAsync(String url, Func`2 resultCollectionSelector, Dictionary`2 customHeaders)+MoveNext() in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 68
at OctoshiftCLI.Services.GithubClient.GetAllAsync(String url, Func`2 resultCollectionSelector, Dictionary`2 customHeaders)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:line 221
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 70
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 75
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|424_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|424_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at OctoshiftCLI.Services.GithubApi.GetRepos(String org) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubApi.cs:line 118
at OctoshiftCLI.IntegrationTests.TestHelper.ResetGithubTestEnvironment(String githubOrg) in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/TestHelper.cs:line 139
at OctoshiftCLI.IntegrationTests.GhesToGithub.<>c__DisplayClass18_0.<<Basic>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 94
--- End of stack trace from previous location ---
at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at OctoshiftCLI.RetryPolicy.Retry(Func`1 func) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 43
at OctoshiftCLI.IntegrationTests.GhesToGithub.Basic(Boolean useGithubStorage) in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 86
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at OctoshiftCLI.Services.GithubClient.SendAsync(HttpMethod httpMethod, String url, Object body, HttpStatusCode expectedStatus, Dictionary`2 customHeaders, Int32 retryCount) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 223
at OctoshiftCLI.Services.GithubClient.<>c__DisplayClass22_0.<<GetWithRetry>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 157
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
----- Inner Stack Trace -----
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at OctoshiftCLI.Services.GithubClient.SendAsync(HttpMethod httpMethod, String url, Object body, HttpStatusCode expectedStatus, Dictionary`2 customHeaders, Int32 retryCount) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 219
Check warning on line 0 in OctoshiftCLI.IntegrationTests.GhesToGithub
github-actions / Integration Test Results - Ghes
Basic(useGithubStorage: False) (OctoshiftCLI.IntegrationTests.GhesToGithub) failed
src/OctoshiftCLI.IntegrationTests/integration-tests.xml [took 1m 3s]
Raw output
OctoshiftCLI.OctoshiftCliException : Unauthorized. Please check your token and try again
---- System.Net.Http.HttpRequestException : GitHub API error: {
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest",
"status": "401"
}
-------- System.Net.Http.HttpRequestException : Response status code does not indicate success: 401 (Unauthorized).
at OctoshiftCLI.RetryPolicy.<CreateRetryPolicyForException>b__8_1[TException](Exception ex, TimeSpan ts, Context ctx) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 57
at Polly.AsyncRetrySyntax.<>c__DisplayClass22_0.<<WaitAndRetryAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at OctoshiftCLI.RetryPolicy.Retry[T](Func`1 func) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 45
at OctoshiftCLI.Services.GithubClient.GetWithRetry(String url, Dictionary`2 customHeaders, HttpStatusCode expectedStatus) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 157
at OctoshiftCLI.Services.GithubClient.GetAllAsync(String url, Func`2 resultCollectionSelector, Dictionary`2 customHeaders)+MoveNext() in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 68
at OctoshiftCLI.Services.GithubClient.GetAllAsync(String url, Func`2 resultCollectionSelector, Dictionary`2 customHeaders)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:line 221
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 70
at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 75
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|424_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at System.Linq.AsyncEnumerable.<ToListAsync>g__Core|424_0[TSource](IAsyncEnumerable`1 source, CancellationToken cancellationToken) in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToList.cs:line 36
at OctoshiftCLI.Services.GithubApi.GetRepos(String org) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubApi.cs:line 118
at OctoshiftCLI.IntegrationTests.TestHelper.ResetGithubTestEnvironment(String githubOrg) in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/TestHelper.cs:line 139
at OctoshiftCLI.IntegrationTests.GhesToGithub.<>c__DisplayClass18_0.<<Basic>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 94
--- End of stack trace from previous location ---
at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at OctoshiftCLI.RetryPolicy.Retry(Func`1 func) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/RetryPolicy.cs:line 43
at OctoshiftCLI.IntegrationTests.GhesToGithub.Basic(Boolean useGithubStorage) in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 86
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at OctoshiftCLI.Services.GithubClient.SendAsync(HttpMethod httpMethod, String url, Object body, HttpStatusCode expectedStatus, Dictionary`2 customHeaders, Int32 retryCount) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 223
at OctoshiftCLI.Services.GithubClient.<>c__DisplayClass22_0.<<GetWithRetry>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 157
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
----- Inner Stack Trace -----
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at OctoshiftCLI.Services.GithubClient.SendAsync(HttpMethod httpMethod, String url, Object body, HttpStatusCode expectedStatus, Dictionary`2 customHeaders, Int32 retryCount) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 219
Loading