Skip to content

Preparing v0.32.0 release#3146

Merged
linzhp merged 3 commits into
bazel-contrib:masterfrom
linzhp:deps
May 11, 2022
Merged

Preparing v0.32.0 release#3146
linzhp merged 3 commits into
bazel-contrib:masterfrom
linzhp:deps

Conversation

@linzhp

@linzhp linzhp commented May 10, 2022

Copy link
Copy Markdown
Contributor

This release brings many exciting changes

New features

Bug fixes

Deprecations

go_embed_data and bindata will be deprecated in rules_go 0.35.0. Users are encourage to migrate to go:embed and embedsrcs.

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_protobuf updated to v1.28.0
  • org_golang_x_sys, org_golang_x_xerrors, org_golang_google_genproto and go_googleapis updated to master, as of 2022-05-09

@linzhp linzhp requested review from achew22 and robfig May 10, 2022 04:13

@robfig robfig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work! Looks like a big release.

@linzhp

linzhp commented May 10, 2022

Copy link
Copy Markdown
Contributor Author

Many tests in Uber's Go monorepo failed due to #3117. I will hold this release.

@fmeum

fmeum commented May 10, 2022

Copy link
Copy Markdown
Member

Many tests in Uber's Go monorepo failed due to #3117. I will hold this release.

@linzhp Can you share details about the failure? If I remember correctly, the tests passed on the branch, which is weird.

@linzhp

linzhp commented May 10, 2022

Copy link
Copy Markdown
Contributor Author

Many tests in Uber use this pattern to mock a subprocess call from a Go program. #3117 made test panic when there is os.Exit() call in a test function:

panic: unexpected call to os.Exit(0) during test [recovered]
	panic: unexpected call to os.Exit(0) during test

@fmeum

fmeum commented May 10, 2022

Copy link
Copy Markdown
Member

A hack defeats a hack, I guess. :-)
I think we could override the SetPanicOnExit function to not actually enable the feature, but still get the callback to be called. But then the feature is also quite useful, if it weren't for this trick.

@fmeum

fmeum commented May 11, 2022

Copy link
Copy Markdown
Member

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 go_test?

@linzhp

linzhp commented May 11, 2022

Copy link
Copy Markdown
Contributor Author

I am preparing a PR to restore panic on exit0 after we call lcovAtExitHook()

@ok32

ok32 commented May 11, 2022

Copy link
Copy Markdown

What about go1.18 support for editor?

@linzhp

linzhp commented May 11, 2022

Copy link
Copy Markdown
Contributor Author

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

@linzhp linzhp merged commit cfd9381 into bazel-contrib:master May 11, 2022
@linzhp linzhp deleted the deps branch May 11, 2022 20:57
copybaranaut pushed a commit to pixie-io/pixie that referenced this pull request Oct 5, 2022
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
entlein pushed a commit to k8sstormcenter/pixie that referenced this pull request Jun 2, 2026
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
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

Successfully merging this pull request may close these issues.

4 participants