Skip to content

go: bump version to 1.25#37436

Merged
dsa0x merged 3 commits intomainfrom
go-version-bump-1.25
Aug 18, 2025
Merged

go: bump version to 1.25#37436
dsa0x merged 3 commits intomainfrom
go-version-bump-1.25

Conversation

@dsa0x
Copy link
Copy Markdown
Member

@dsa0x dsa0x commented Aug 13, 2025

Release notes: https://go.dev/doc/go1.25

Changes that may affect terraform:

Target Release

1.14.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@dsa0x dsa0x marked this pull request as ready for review August 14, 2025 17:30
@dsa0x dsa0x requested review from a team as code owners August 14, 2025 17:30
radeksimko
radeksimko previously approved these changes Aug 18, 2025
@@ -0,0 +1,5 @@
kind: UPGRADE NOTES
body: 'Container-aware gomaxprocs: The parallelism of terraform operations within container runtimes may change depending on the CPU Limit setting.'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my own understanding of the Go changelog, it can only go down, rather than up (as a container cannot possibly have more CPU available than the host) - correct me if I'm wrong.

Also we are not changing anything about users' chosen parallelism (when they explicitly pass parallelism flag), right?

So shall we tune the wording here to say e.g.

The _default_ parallelism of Terraform operations within container runtimes may be _reduced_ depending on the CPU bandwidth limit setting.

Copy link
Copy Markdown
Member Author

@dsa0x dsa0x Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we are not changing anything about users' chosen parallelism (when they explicitly pass parallelism flag), right?

I think if they set the parallelism to a quite high value, the go runtime may still not be able to offer them that level of parallelism if it is higher than the number of goroutines the runtime can execute concurrently.

The only thing I would remove from your suggested wording then is the default part.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if they set the parallelism to a quite high value, the go runtime may still not be able to offer them that level of parallelism if it is higher than the number of goroutines the runtime can execute concurrently.

Yes, but that was always true and it comes with the design of Go routines that itself has not changed, AFAICT. The additional go routines will end up blocked/queued and the user then achieves concurrency but not parallelism.

That being said I don't feel particularly strongly about this - I think it would just make the wording a tiny bit more helpful for end users. No big deal if we just go with the current wording. 😄

@radeksimko
Copy link
Copy Markdown
Member

I wonder if we should create an alpha entry here so we can stage the upgrade guide changes as well? 🤔

The upside is we don't forget, the downside is that we may forget to cherry-pick other changes from 1.13 as we don't have a backporting automation active there.

@dsa0x dsa0x merged commit 9f01530 into main Aug 18, 2025
11 checks passed
@dsa0x dsa0x deleted the go-version-bump-1.25 branch August 18, 2025 10:18
SarahFrench pushed a commit that referenced this pull request Aug 26, 2025
@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants