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

[Go SDK] Don't depend on the go 1.21 standard lib yet #30120

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

lostluck
Copy link
Contributor

Beam is currently using go 1.20, but was accidentally depending on the go 1.21 standard libary versions of "maps" and "slices". This changes them to be the compatibility packages.

While beam advocates using the latest release (go 1.21) of Go when using it (which avoids problems when compiling those targets), the occasionally subtle dependency semantics allowed for that mismatch, leading to the compiler error. (IIRC this is not a problem past 1.21, which has better tooling awareness, but won't cause regressions for packages authored before those semantics...)

Going to cherry pick this into the 2.54.0 release to restore the compatibility with go 1.20.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@lostluck lostluck added this to the 2.54.0 Release milestone Jan 25, 2024
@lostluck
Copy link
Contributor Author

R: @zechenj18

@github-actions github-actions bot added the go label Jan 25, 2024
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3ae8518) 38.42% compared to head (35159c5) 38.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #30120      +/-   ##
==========================================
- Coverage   38.42%   38.41%   -0.01%     
==========================================
  Files         697      697              
  Lines      102214   102214              
==========================================
- Hits        39272    39263       -9     
- Misses      61315    61322       +7     
- Partials     1627     1629       +2     
Flag Coverage Δ
go 54.15% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lostluck lostluck merged commit 6b6fc98 into apache:master Jan 26, 2024
9 checks passed
@lostluck lostluck deleted the expfix branch January 26, 2024 00:44
lance added a commit to securesign/trillian that referenced this pull request Jan 31, 2024
The cachi2 binary cannot handle go 1.21 yet. The apache/beam project
recently reverted the use of 1.21 language features in
apache/beam#30120 which should make it possible
to run prefetched dependencies in the pipeline.

Signed-off-by: Lance Ball <[email protected]>
lance added a commit to securesign/trillian that referenced this pull request Jan 31, 2024
)

* chore: add prefetched dependencies and hermetic

Updates the redis pipeline to use cachi2 and hermetic builds.

Signed-off-by: Lance Ball <[email protected]>

* chore: remove unit tests and simplify prefetch

Removes unit tests from the redis pipeline as that is not required for changes
to the Dockerfile.

Simplifies prefetch since we don't need to actually fetch anything.

Signed-off-by: Lance Ball <[email protected]>

* deps: update apache/beam to the latest sha

The cachi2 binary cannot handle go 1.21 yet. The apache/beam project
recently reverted the use of 1.21 language features in
apache/beam#30120 which should make it possible
to run prefetched dependencies in the pipeline.

Signed-off-by: Lance Ball <[email protected]>

---------

Signed-off-by: Lance Ball <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants