Skip to content
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

When releasing a version CI on GitHub fails when closing the milestone #150

Open
nils-a opened this issue Jul 5, 2024 · 3 comments
Open
Assignees

Comments

@nils-a
Copy link
Contributor

nils-a commented Jul 5, 2024

Expected Behavior

After pushing a release the milestone should be closed.

Current Behavior

The milestone is not closed. The error is:

Executing: "D:/a/Cake.Coveralls/Cake.Coveralls/tools/dotnet-gitreleasemanager.exe" close --token "[REDACTED]" -o "***" -r "Cake.Coveralls" -m "2.0.0"

   ____ _ _   ____      _                     __  __
  / ___(_) |_|  _ \ ___| | ___  __ _ ___  ___|  \/  | __ _ _ __   __ _  __ _  ___ _ __
 | |  _| | __| |_) / _ \ |/ _ \/ _` / __|/ _ \ |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|
 | |_| | | |_|  _ <  __/ |  __/ (_| \__ \  __/ |  | | (_| | | | | (_| | (_| |  __/ |
  \____|_|\__|_| \_\___|_|\___|\__,_|___/\___|_|  |_|\__,_|_| |_|\__,_|\__, |\___|_|
                                                                       |___/
                                                                                 0.17.0

Using GitHub as VCS Provider
Closing milestone 2.0.0
Adding release comment for Issue #147
[FTL] Value was either too large or too small for an Int32.
GitReleaseManager.Core.Exceptions.ApiException: Value was either too large or too small for an Int32.
 ---> System.OverflowException: Value was either too large or too small for an Int32.
   at System.Convert.ThrowInt32OverflowException()
   at System.Convert.ToInt32(Int64 value)
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Octokit.PocoJsonSerializerStrategy.DeserializeObject(Object value, Type type) in /_/Octokit/SimpleJson.cs:line 1528
   at Octokit.Internal.SimpleJsonSerializer.GitHubSerializerStrategy.DeserializeObject(Object value, Type type) in /_/Octokit/Http/SimpleJsonSerializer.cs:line 183
   at Octokit.PocoJsonSerializerStrategy.DeserializeObject(Object value, Type type) in /_/Octokit/SimpleJson.cs:line 1528
   at Octokit.Internal.SimpleJsonSerializer.GitHubSerializerStrategy.DeserializeObject(Object value, Type type) in /_/Octokit/Http/SimpleJsonSerializer.cs:line 183
   at Octokit.SimpleJson.DeserializeObject(String json, Type type, IJsonSerializerStrategy jsonSerializerStrategy) in /_/Octokit/SimpleJson.cs:line 584
   at Octokit.SimpleJson.DeserializeObject[T](String json, IJsonSerializerStrategy jsonSerializerStrategy) in /_/Octokit/SimpleJson.cs:line 596
   at Octokit.Internal.SimpleJsonSerializer.Deserialize[T](String json) in /_/Octokit/Http/SimpleJsonSerializer.cs:line 22
   at Octokit.Internal.JsonHttpPipeline.DeserializeResponse[T](IResponse response) in /_/Octokit/Http/JsonHttpPipeline.cs:line 62
   at Octokit.Connection.Run[T](IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 752
   at Octokit.ApiConnection.Post[T](Uri uri, Object data, String accepts, String contentType, CancellationToken cancellationToken) in /_/Octokit/Http/ApiConnection.cs:line 331
   at GitReleaseManager.Core.Provider.GitHubProvider.<>c__DisplayClass9_0.<<CreateIssueCommentAsync>b__0>d.MoveNext() in /_/src/GitReleaseManager.Core/Provider/GitHubProvider.cs:line 92
--- End of stack trace from previous location ---
   at GitReleaseManager.Core.Provider.GitHubProvider.ExecuteAsync(Func`1 action) in /_/src/GitReleaseManager.Core/Provider/GitHubProvider.cs:line 363
   --- End of inner exception stack trace ---
   at GitReleaseManager.Core.Provider.GitHubProvider.ExecuteAsync(Func`1 action) in /_/src/GitReleaseManager.Core/Provider/GitHubProvider.cs:line 375
   at GitReleaseManager.Core.VcsService.AddIssueCommentsAsync(String owner, String repository, Milestone milestone) in /_/src/GitReleaseManager.Core/VcsService.cs:line 399
   at GitReleaseManager.Core.VcsService.CloseMilestoneAsync(String owner, String repository, String milestoneTitle) in /_/src/GitReleaseManager.Core/VcsService.cs:line 262
   at GitReleaseManager.Core.Commands.CloseCommand.ExecuteAsync(CloseSubOptions options) in /_/src/GitReleaseManager.Core/Commands/CloseCommand.cs:line 21
   at GitReleaseManager.Cli.Program.Main(String[] args) in /_/src/GitReleaseManager.Cli/Program.cs:line 36
An error occurred when executing task 'Publish-GitHub-Release'.
GitReleaseManager: Process returned an error (exit code 1).
Publish-GitHub-Release Task failed, but continuing with next Task...

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Addin version used:
  • Cake Version used:
  • Operating System:
@nils-a nils-a self-assigned this Jul 5, 2024
@nils-a nils-a added the Build label Jul 5, 2024
@nils-a nils-a modified the milestone: 3.0.0 Jul 5, 2024
@nils-a nils-a removed the Build label Jul 5, 2024
@nils-a
Copy link
Contributor Author

nils-a commented Jul 5, 2024

Not sure, where the error came from, but everything worked perfect.

@nils-a nils-a closed this as completed Jul 5, 2024
@nils-a
Copy link
Contributor Author

nils-a commented Jul 16, 2024

Resurrecting this, as the error is still present.

@nils-a nils-a reopened this Jul 16, 2024
@nils-a
Copy link
Contributor Author

nils-a commented Jul 16, 2024

GitReleaseManager v0.18.0 uses Octokit v12.0.0 where this is fixed.

So, bumping GRM to 0.18.0 will fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant