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

Large changelog cause crash #186

Open
snakajima-cogility opened this issue Jan 7, 2025 · 1 comment
Open

Large changelog cause crash #186

snakajima-cogility opened this issue Jan 7, 2025 · 1 comment

Comments

@snakajima-cogility
Copy link

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 [email protected]
[go-semantic-release]: provider plugin: [email protected]
[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: [email protected]
[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: [email protected]
[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/[email protected]/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc00017bb08)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/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?

@christophwitzko
Copy link
Member

Hi @snakajima-cogility, thanks for reporting this!

It seems https://pkg.go.dev/google.golang.org/grpc#MaxCallRecvMsgSize is, by default, set to 4MB.

I will try to prepare a fix in the next days 👍

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

2 participants