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

[ggj][bazel][goldens] fix: refactor and fix bazel golden_update rules #363

Merged
merged 3 commits into from
Oct 6, 2020

Conversation

miraleung
Copy link
Contributor

Fixes the following issues:

  • bazel run testTarget_update did not work when starting from a clean cache. This refactoring ensures that all the dependent targets are built when the former is run.
  • Removes all the Bazel direct-import warnings.
  • Separates per-test targets from the test runner binary, so that we don't need to glob all sources and all goldens into a single java_binary target.
  • Fixes file-update errors for tests that use multiple goldens.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2020
srcs = srcs,
data = data,
main_class = "com.google.api.generator.test.framework.SingleJUnitTestRunner",
deps = ["//src/test/java/com/google/api/generator/test/framework:junit_runner"] + deps,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain a little bit why the def junit_output_zip is replaced by the native.java_binary and it will make the build running before running overwrite_golden? Thanks

Base automatically changed from gp/g0 to master October 6, 2020 00:15
@miraleung miraleung merged commit 6e9b4a5 into master Oct 6, 2020
@miraleung miraleung deleted the gp/g1 branch October 6, 2020 01:04
summer-ji-eng pushed a commit that referenced this pull request Oct 7, 2020
…#363)

* fix: use imperative bazel rule names

* fix: refactor and fix bazel golden_update rules
suztomo pushed a commit that referenced this pull request Dec 16, 2022
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [io.grpc:grpc-protobuf](https://togithub.com/grpc/grpc-java) | `1.45.1` -> `1.46.0` | [![age](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.46.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.46.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.46.0/compatibility-slim/1.45.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.46.0/confidence-slim/1.45.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>grpc/grpc-java</summary>

### [`v1.46.0`](https://togithub.com/grpc/grpc-java/releases/v1.46.0)

##### Bug Fixes

-   netty: Fixed incompatibility with Netty 4.1.75.Final that caused COMPRESSION_ERROR ([#&#8203;9004](https://togithub.com/grpc/grpc-java/issues/9004))
-   xds: Fix LBs blindly propagating control plane errors ([#&#8203;9012](https://togithub.com/grpc/grpc-java/issues/9012)). This change forces the use of UNAVAILABLE for any xDS communication failures, which otherwise could greatly confuse an application. This is essentially a continuation of the fix in 1.45.0 for XdsNameResolver, but for other similar cases
-   xds: Fix ring_hash reconnecting behavior. Previously a TRANSIENT_FAILURE subchannel would remain failed forever
-   xds: Fix ring_hash defeating priority’s failover connection timeout. [grpc/proposal#&#8203;296](https://togithub.com/grpc/proposal/issues/296)
-   binder: Work around an Android Intent bug for consistent AndroidComponentAndress hashCode() and equals() ([#&#8203;9061](https://togithub.com/grpc/grpc-java/issues/9061))
-   binder: Fix deadlock when using process-local Binder ([#&#8203;8987](https://togithub.com/grpc/grpc-java/issues/8987)). Process-local binder has a different threading model than normal FLAG_ONEWAY, so this case is now detected and the FLAG_ONEWAY threading model is emulated
-   okhttp: Removed dead code in io.grpc.okhttp.internal.Util. This should have no impact except for static code analysis. This code was never used and was from the process of forking okhttp. It calculated things like MD5 which can trigger security scanners ([#&#8203;9071](https://togithub.com/grpc/grpc-java/issues/9071))

##### Behavior Changes

-   java_grpc_library.bzl: Pass use_default_shell_env = True for protoc ([#&#8203;8984](https://togithub.com/grpc/grpc-java/issues/8984)). This allows using MinGW on Windows
-   xds: Unconditionally apply backoff on ADS and LDS stream recreation. Previously if a message had been received on the stream no backoff wait would be performed. This limits QPS to a buggy server to 1 QPS, instead of a closed loop
-   xds: Skip Routes within VirtualHosts whose RouteAction has no cluster_specifier. This probably means the control plane is using a cluster_specifier field unknown/unsupported by gRPC. The control plane can repeat the Route with a different cluster_specifier for compatibility with older clients
-   xds: Support `xds.config.resource-in-sotw` client capability. Resources wrapped in a `io.envoyproxy.envoy.service.discovery.v3.Resource` message are now supported ([#&#8203;8997](https://togithub.com/grpc/grpc-java/issues/8997))

##### New Features

-   gcp-observability: A new experimental module for improving visibility into gRPC workloads. Initially supports logging RPCs to Google Cloud Logging
-   grpclb: Support setting initial fallback timeout by service config ([#&#8203;8980](https://togithub.com/grpc/grpc-java/issues/8980))

##### Dependencies

-   PerfMark bumped to 0.25.0 ([#&#8203;8948](https://togithub.com/grpc/grpc-java/issues/8948))
-   okhttp: the okhttp dependency is now compile only ([#&#8203;8971](https://togithub.com/grpc/grpc-java/issues/8971)). Okhttp’s internal HTTP/2 implementation was forked inside grpc-okhttp a long time ago, but there had been a few stray internal classes that had not been forked but should have been. That has now been fixed in preparation for OkHttp 3/4 support. Compile-only may cause a runtime failure for code using reflection on OkHttpChannelBuilder; add a dependency on okhttp 2.7.4 to resolve
-   bom: Removed protoc-gen-grpc-java from the BOM, as the classifier was confusing and it provided no value ([#&#8203;9020](https://togithub.com/grpc/grpc-java/issues/9020))

##### Acknowledgements

[@&#8203;jesseschalken](https://togithub.com/jesseschalken)
[@&#8203;kluever](https://togithub.com/kluever)
[@&#8203;beatrausch](https://togithub.com/beatrausch)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-common-protos).
suztomo pushed a commit that referenced this pull request Dec 16, 2022
🤖 I have created a release *beep* *boop*
---


## [2.9.0](googleapis/java-common-protos@v2.8.3...v2.9.0) (2022-06-06)


### Features

* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-common-protos/issues/1440)) ([#368](googleapis/java-common-protos#368)) ([676eaf3](googleapis/java-common-protos@676eaf3))
* next release from main branch is 2.9.0 ([#354](googleapis/java-common-protos#354)) ([d0fd16b](googleapis/java-common-protos@d0fd16b))


### Dependencies

* update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#360](googleapis/java-common-protos#360)) ([741354f](googleapis/java-common-protos@741354f))
* update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#369](googleapis/java-common-protos#369)) ([dd454e3](googleapis/java-common-protos@dd454e3))
* update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#371](googleapis/java-common-protos#371)) ([25ca684](googleapis/java-common-protos@25ca684))
* update dependency com.google.protobuf:protobuf-java to v3.20.1 ([#361](googleapis/java-common-protos#361)) ([9f20508](googleapis/java-common-protos@9f20508))
* update dependency com.google.protobuf:protobuf-java to v3.21.0 ([#370](googleapis/java-common-protos#370)) ([40648c5](googleapis/java-common-protos@40648c5))
* update dependency com.google.protobuf:protobuf-java to v3.21.1 ([#372](googleapis/java-common-protos#372)) ([c54d334](googleapis/java-common-protos@c54d334))
* update dependency io.grpc:grpc-bom to v1.46.0 ([#362](googleapis/java-common-protos#362)) ([7deb7ad](googleapis/java-common-protos@7deb7ad))
* update dependency io.grpc:grpc-bom to v1.47.0 ([#373](googleapis/java-common-protos#373)) ([133b95b](googleapis/java-common-protos@133b95b))
* update dependency io.grpc:grpc-protobuf to v1.46.0 ([#363](googleapis/java-common-protos#363)) ([bfede07](googleapis/java-common-protos@bfede07))
* update dependency io.grpc:grpc-protobuf to v1.47.0 ([#374](googleapis/java-common-protos#374)) ([20baac5](googleapis/java-common-protos@20baac5))
* update dependency io.grpc:grpc-stub to v1.46.0 ([#364](googleapis/java-common-protos#364)) ([09d49b4](googleapis/java-common-protos@09d49b4))
* update dependency io.grpc:grpc-stub to v1.47.0 ([#375](googleapis/java-common-protos#375)) ([6074436](googleapis/java-common-protos@6074436))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Dec 16, 2022
suztomo pushed a commit that referenced this pull request Dec 16, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
🤖 I have created a release \*beep\* \*boop\*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants