Skip to content

Large changelog cause crash #186

@snakajima-cogility

Description

@snakajima-cogility

If changelog is too large, the binary crashes:

[go-semantic-release]: version: 2.31.0
[go-semantic-release]: trying to prefetch plugins...
[go-semantic-release]: all plugins were prefetched!
[go-semantic-release]: ci-condition plugin: GitHub Actions@1.11.0
[go-semantic-release]: provider plugin: GitHub@1.19.0
[go-semantic-release]: getting default branch...
[go-semantic-release]: found default branch: develop
[go-semantic-release]: repo is private
[go-semantic-release]: found current branch: rc
[go-semantic-release]: found current sha: 36bb9449c11e5ef3fe7ff8ff93c386691f666ee2
[go-semantic-release]: getting latest release...
[go-semantic-release]: found version: 1.104.3
[go-semantic-release]: getting commits...
[go-semantic-release]: analyzing commits...
[go-semantic-release]: commit-analyzer plugin: default@1.15.0
[go-semantic-release]: calculating new version...
[go-semantic-release]: new version: 1.105.0
[go-semantic-release]: generating changelog...
[go-semantic-release]: changelog-generator plugin: default@1.15.0
[go-semantic-release]: stopping plugins...
panic: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4597636 vs. 4194304)

 goroutine 1 [running]:
github.com/go-semantic-release/semantic-release/v2/pkg/generator.(*ChangelogGeneratorClient).Generate(0xc000f3e270, 0xc000525e60)
	/home/runner/work/semantic-release/semantic-release/pkg/generator/changelog_generator_wrapper.go:45 +0x9f
main.cliHandler(0xc00017bb08, {0xd5a8c8?, 0x7?, 0xd57e97?})
	/home/runner/work/semantic-release/semantic-release/cmd/semantic-release/main.go:263 +0x2426
github.com/spf13/cobra.(*Command).execute(0xc00017bb08, {0xc000034090, 0x7, 0x7})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc00017bb08)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
main.main()
	/home/runner/work/semantic-release/semantic-release/cmd/semantic-release/main.go:61 +0x1aa

Is there a way to configure the grpc configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions