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

Preparing v0.32.0 release #3146

Merged
merged 3 commits into from
May 11, 2022
Merged

Preparing v0.32.0 release #3146

merged 3 commits into from
May 11, 2022

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented May 10, 2022

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 robfig and achew22 May 10, 2022 04:13
Copy link
Contributor

@robfig robfig left a comment

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
Copy link
Contributor Author

linzhp commented May 10, 2022

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

@fmeum
Copy link
Collaborator

fmeum commented May 10, 2022

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
Copy link
Contributor Author

linzhp commented May 10, 2022

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
Copy link
Collaborator

fmeum commented May 10, 2022

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
Copy link
Collaborator

fmeum commented May 11, 2022

We should be able to disable the "panic on os.Exit(0)" feature, but still keep the hook, by removing this line:

ltd.TestDeps.SetPanicOnExit0(panicOnExit)

@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
Copy link
Contributor Author

linzhp commented May 11, 2022

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

@ok32
Copy link

ok32 commented May 11, 2022

What about go1.18 support for editor?

@linzhp
Copy link
Contributor Author

linzhp commented May 11, 2022

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 bazelbuild: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 bazelbuild/rules_go#3146 and bazelbuild/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.

None yet

4 participants