Skip to content

[main]: Merge pull request #1276 from github/get-gh-database-id #270

[main]: Merge pull request #1276 from github/get-gh-database-id

[main]: Merge pull request #1276 from github/get-gh-database-id #270

GitHub Actions / Integration Test Results - Ghes failed Oct 17, 2024 in 0s

1 fail in 7m 6s

1 tests   0 ✅  7m 6s ⏱️
1 suites  0 💤
1 files    1 ❌

Results for commit 68ec53e.

Annotations

Check warning on line 0 in OctoshiftCLI.IntegrationTests.GhesToGithub

See this annotation in the file changed.

@github-actions github-actions / Integration Test Results - Ghes

Basic (OctoshiftCLI.IntegrationTests.GhesToGithub) failed

src/OctoshiftCLI.IntegrationTests/integration-tests.xml [took 7m 6s]
Raw output
System.Net.Http.HttpRequestException : GitHub API error: {"message":"The 'Fabrikam EMU' enterprise forbids access via a personal access tokens (classic) if the token's lifetime is greater than 90 days. Please adjust your token's lifetime at the following URL: https://github.com/settings/tokens/1808581166","documentation_url":"https://docs.github.com/rest/repos/repos#list-organization-repositories","status":"403"}
---- System.Net.Http.HttpRequestException : Response status code does not indicate success: 403 (Forbidden).
at OctoshiftCLI.Services.GithubClient.SendAsync(HttpMethod httpMethod, String url, Object body, HttpStatusCode expectedStatus, Dictionary`2 customHeaders) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 200
   at OctoshiftCLI.Services.GithubClient.<>c__DisplayClass18_0.<<GetWithRetry>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 149
--- 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 149
   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 66
   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 97
   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__DisplayClass15_0.<<Basic>b__0>d.MoveNext() in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 79
--- 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() in /home/runner/work/gh-gei/gh-gei/src/OctoshiftCLI.IntegrationTests/GhesToGithub.cs:line 74
--- End of stack trace from previous location ---
----- 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) in /home/runner/work/gh-gei/gh-gei/src/Octoshift/Services/GithubClient.cs:line 196

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Integration Test Results - Ghes

1 test found

There is 1 test, see "Raw output" for the name of the test.
Raw output
OctoshiftCLI.IntegrationTests.GhesToGithub ‑ Basic