Preparing v0.32.0 release#3146
Conversation
robfig
left a comment
There was a problem hiding this comment.
Nice work! Looks like a big release.
|
Many tests in Uber's Go monorepo failed due to #3117. I will hold this release. |
|
Many tests in Uber use this pattern to mock a subprocess call from a Go program. #3117 made test panic when there is |
|
A hack defeats a hack, I guess. :-) |
|
We should be able to disable the "panic on os.Exit(0)" feature, but still keep the hook, by removing this line: https://github.com/bazelbuild/rules_go/blob/fee2095e0a8219c93206be0b5adecfce6f32eac0/go/tools/bzltestutil/lcov.go#L174 @linzhp How would you feel about defaulting the feature to "on", as it is with the non-Bazel Go toolchain, and offering a knob to disable it, either globally via a config setting or an attribute on |
|
I am preparing a PR to restore panic on exit0 after we call |
|
What about go1.18 support for editor? |
|
Our team at Uber is planning to work on that this incoming sprint, but it won't make it to this release, which is already packed with features and fixes |
Summary: rules_go reports coverage in LCOV format by default as of version 0.32.0 See bazel-contrib/rules_go#3146 and bazel-contrib/rules_go#3117 So the coverage script was no longer doing the correct thing. This fixes the script. Test Plan: Ran the coverage script locally, generated an HTML report. Ensured that we see cpp, go and js coverage. Reviewers: zasgar, michelle Reviewed By: zasgar Signed-off-by: Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D12345 GitOrigin-RevId: 6f4ff98f66fedd68e44f04954688c3efa95616b4
Summary: rules_go reports coverage in LCOV format by default as of version 0.32.0 See bazel-contrib/rules_go#3146 and bazel-contrib/rules_go#3117 So the coverage script was no longer doing the correct thing. This fixes the script. Test Plan: Ran the coverage script locally, generated an HTML report. Ensured that we see cpp, go and js coverage. Reviewers: zasgar, michelle Reviewed By: zasgar Signed-off-by: Vihang Mehta <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D12345 GitOrigin-RevId: 6f4ff98f66fedd68e44f04954688c3efa95616b4
This release brings many exciting changes
New features
gomockrule is officially supported in rules_go (doc), replacing the original jmhodges/bazel_gomock repository. Thanks to @jmhodges for the original implementation.--combined_report=lcov. To generate reports in the oldgo tool coverformat, please use--//go/config:cover_format=go_cover. Thanks to @fmeumanalyzer_flagsto nogo config #3082), thanks to @navneethjayendranBug fixes
x_defson test execution #3135), thanks to @bozarolinkmode#3143) thanks to @fmeumDeprecations
go_embed_dataandbindatawill be deprecated in rules_go 0.35.0. Users are encourage to migrate togo:embedandembedsrcs.Other changes
Updated dependencies
As always, you can use higher versions of rules_go's dependencies by declaring
them in WORKSPACE before calling go_rules_dependencies. Lower versions may
work but are not supported.
org_golang_google_protobufupdated to v1.28.0org_golang_x_sys,org_golang_x_xerrors,org_golang_google_genprotoandgo_googleapisupdated tomaster, as of 2022-05-09