GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [ggj][infra][2/5] feat: bazel rules support for integration test by xiaozhenliu-gg5 · Pull Request #393 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@xiaozhenliu-gg5

@xiaozhenliu-gg5 xiaozhenliu-gg5 commented Oct 13, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Find more details in design doc: go/java-micro-integration-test-infra

Support bazel rules to run integration test against Redis API, which includes 1) code generation by micro-generator 2) compare codegen with goldens in test/integration/goldens/redis.

Run the below command to trigger the integration test, and the test failure (diff between codegen and goldens) can be found directly in test.log

bazel test //test/integration:redis

FAIL: //test/integration:redis (see /usr/local/google/home/xiaozhenliu/.cache/bazel/_bazel_xiaozhenliu/96b19089c047889e0621b0e06e850da1/execroot/gapic_generator_java/bazel-out/k8-fastbuild/testlogs/test/integration/redis/test.log)
Target //test/integration:redis up-to-date:
  bazel-bin/test/integration/diff_output.txt
  bazel-bin/test/integration/check_diff_script.sh
INFO: Elapsed time: 155.658s, Critical Path: 64.83s
INFO: 487 processes: 35 internal, 375 linux-sandbox, 77 worker.
INFO: Build completed, 1 test FAILED, 487 total actions
//test/integration:redis                                                 FAILED in 0.1s
  /usr/local/google/home/xiaozhenliu/.cache/bazel/_bazel_xiaozhenliu/96b19089c047889e0621b0e06e850da1/execroot/gapic_generator_java/bazel-out/k8-fastbuild/testlogs/test/integration/redis/test.log



============= test.log ===============
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //test/integration:redis
-----------------------------------------------------------------------------
diff codegen_tmp/CloudRedisClient.java test/integration/goldens/redis/CloudRedisClient.java
17,18d16
< package com.google.cloud.redis.v1;
<

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
xiaozhenliu-gg5 added 18 commits October 8, 2020 21:20
@xiaozhenliu-gg5
add goldens files for redis client lib
9ad33d2
@xiaozhenliu-gg5
add bazel file
20a548a
@xiaozhenliu-gg5
format
cad27bb
@xiaozhenliu-gg5
Merge branch 'master' into add_redis_goldens
0b740d5
@xiaozhenliu-gg5
Merge branch 'master' of github.com:googleapis/gapic-generator-java i…
589841a
…nto add_redis_goldens
@xiaozhenliu-gg5
add todo comment for Redis client lib goldens
8e1edfb
@xiaozhenliu-gg5
Merge branch 'add_redis_goldens' of github.com:googleapis/gapic-gener…
59d9eb1
…ator-java into add_redis_goldens
@xiaozhenliu-gg5
add README to integration test goldens folder
5477463
@xiaozhenliu-gg5
Merge branch 'master' into add_redis_goldens
5de4d5a
@xiaozhenliu-gg5
Merge branch 'master' into add_redis_goldens
3ec0803
@xiaozhenliu-gg5
Merge branch 'master' into add_redis_goldens
8ef95c7
@xiaozhenliu-gg5
Merge branch 'master' into add_redis_goldens
a7659fb
@xiaozhenliu-gg5
update redis goldens using micro
d36f040
@xiaozhenliu-gg5
Merge branch 'add_redis_goldens' of github.com:googleapis/gapic-gener…
bc3f47e
…ator-java into add_redis_goldens
@xiaozhenliu-gg5
add bazel rules
b38559a
@xiaozhenliu-gg5
remove package-info
62bdbc9
@xiaozhenliu-gg5
add bazel rules for integration test
bc43026
@xiaozhenliu-gg5
take api name as arg
4ae798d
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested review from miraleung and summer-ji-eng as code owners October 13, 2020 05:55
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 13, 2020
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested a review from vam-google October 13, 2020 05:55
xiaozhenliu-gg5
xiaozhenliu-gg5 commented Oct 13, 2020
View reviewed changes
Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

@xiaozhenliu-gg5
Merge branch 'master' of github.com:googleapis/gapic-generator-java i…
8b97ac2
…nto redis_integration_test
vam-google
vam-google reviewed Oct 13, 2020
View reviewed changes
Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

@xiaozhenliu-gg5

xiaozhenliu-gg5 commented Oct 13, 2020

Copy link
Copy Markdown
Contributor Author

When the BUILD_WORKSPACE_DIRECTORY env variable is not present, in which context do you run your command: bazel build, bazel run, bazel test? I believe BUILD_WORKSPACE_DIRECTORY is there only for bazel run.

we use bazel test //test/integration: redis to trigger the integration test of Redis API. More info is in description. Thanks! @vam-google If BUILD_WORKSPACE_DIRECTORY is only for bazel run, then is there an equivalent env that can enable us to have access to the generated diff_output folder?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

xiaozhenliu-gg5 added 3 commits October 13, 2020 15:41
@xiaozhenliu-gg5
feedback
5e65c2d
@xiaozhenliu-gg5
Merge branch 'master' into redis_integration_test
c799270
@xiaozhenliu-gg5
Merge branch 'master' of github.com:googleapis/gapic-generator-java i…
c23d309
…nto redis_integration_test
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested a review from vam-google October 13, 2020 15:50
miraleung
miraleung suggested changes Oct 14, 2020
View reviewed changes
Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread rules_bazel/java/java_integration_test.bzl Resolved

Uh oh!

There was an error while loading. Please reload this page.

xiaozhenliu-gg5 added 5 commits October 14, 2020 17:41
@xiaozhenliu-gg5
work
658f4b7
@xiaozhenliu-gg5
Merge branch 'redis_integration_test' of github.com:googleapis/gapic-…
8b79f53
…generator-java into redis_integration_test
@xiaozhenliu-gg5
emit diff to test.log
cfde217
@xiaozhenliu-gg5
fix diff command
23154f1
@xiaozhenliu-gg5
rename
9cf077e
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested a review from miraleung October 20, 2020 19:38
xiaozhenliu-gg5 added 2 commits October 20, 2020 19:58
@xiaozhenliu-gg5
add api name to outputs
d59b426
@xiaozhenliu-gg5
Merge branch 'master' into redis_integration_test
a574038
miraleung
miraleung approved these changes Oct 21, 2020
View reviewed changes
@xiaozhenliu-gg5
xiaozhenliu-gg5 merged commit 8992786 into master Oct 21, 2020
@xiaozhenliu-gg5
xiaozhenliu-gg5 deleted the redis_integration_test branch October 21, 2020 17:37
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@renovate-bot
deps: update dependency com.google.protobuf:protobuf-bom to v3.21.3 (#…
de7de86
…393)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.protobuf:protobuf-bom](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.2` -> `3.21.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-bom/3.21.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-bom/3.21.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-bom/3.21.3/compatibility-slim/3.21.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-bom/3.21.3/confidence-slim/3.21.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>protocolbuffers/protobuf</summary>

### [`v3.21.3`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.2...v3.21.3)

[Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.2...v3.21.3)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-common-protos).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMjIuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEyMi4xIn0=-->
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@renovate-bot
deps: update dependency com.google.protobuf:protobuf-java to v3.21.4 (#…
6a19610
…393)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.protobuf:protobuf-java](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.3` -> `3.21.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java/3.21.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java/3.21.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java/3.21.4/compatibility-slim/3.21.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java/3.21.4/confidence-slim/3.21.3)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-iam).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMjcuNCIsInVwZGF0ZWRJblZlciI6IjMyLjEyNy40In0=-->
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@release-please
chore(main): release 2.9.3 (#408)
d3b0360
🤖 I have created a release *beep* *boop*
---


## [2.9.3](googleapis/java-common-protos@v2.9.2...v2.9.3) (2022-09-20)


### Dependencies

* Update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#393](googleapis/java-common-protos#393)) ([de7de86](googleapis/java-common-protos@de7de86))
* Update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#397](googleapis/java-common-protos#397)) ([95e3497](googleapis/java-common-protos@95e3497))
* Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#402](googleapis/java-common-protos#402)) ([5b13645](googleapis/java-common-protos@5b13645))
* Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#410](googleapis/java-common-protos#410)) ([3cdbc62](googleapis/java-common-protos@3cdbc62))
* Update dependency com.google.protobuf:protobuf-java to v3.21.3 ([#394](googleapis/java-common-protos#394)) ([e540549](googleapis/java-common-protos@e540549))
* Update dependency com.google.protobuf:protobuf-java to v3.21.4 ([#398](googleapis/java-common-protos#398)) ([31d57c9](googleapis/java-common-protos@31d57c9))
* Update dependency com.google.protobuf:protobuf-java to v3.21.5 ([#403](googleapis/java-common-protos#403)) ([9c8995c](googleapis/java-common-protos@9c8995c))
* Update dependency com.google.protobuf:protobuf-java to v3.21.6 ([#411](googleapis/java-common-protos#411)) ([915c1e0](googleapis/java-common-protos@915c1e0))
* Update dependency io.grpc:grpc-bom to v1.49.0 and guava to 31.1-android ([#390](googleapis/java-common-protos#390)) ([6f662e3](googleapis/java-common-protos@6f662e3))
* Update dependency io.grpc:grpc-bom to v1.49.1 ([#412](googleapis/java-common-protos#412)) ([43dd173](googleapis/java-common-protos@43dd173))
* Update dependency io.grpc:grpc-protobuf to v1.48.0 ([#391](googleapis/java-common-protos#391)) ([ce3b0b5](googleapis/java-common-protos@ce3b0b5))
* Update dependency io.grpc:grpc-protobuf to v1.48.1 ([#400](googleapis/java-common-protos#400)) ([41f45f3](googleapis/java-common-protos@41f45f3))
* Update dependency io.grpc:grpc-protobuf to v1.49.0 ([#406](googleapis/java-common-protos#406)) ([ccb0014](googleapis/java-common-protos@ccb0014))
* Update dependency io.grpc:grpc-protobuf to v1.49.1 ([#413](googleapis/java-common-protos#413)) ([b644b48](googleapis/java-common-protos@b644b48))
* Update dependency io.grpc:grpc-stub to v1.48.0 ([#392](googleapis/java-common-protos#392)) ([9a1cc88](googleapis/java-common-protos@9a1cc88))
* Update dependency io.grpc:grpc-stub to v1.48.1 ([#401](googleapis/java-common-protos#401)) ([db49496](googleapis/java-common-protos@db49496))
* Update dependency io.grpc:grpc-stub to v1.49.0 ([#407](googleapis/java-common-protos#407)) ([ec7a046](googleapis/java-common-protos@ec7a046))
* Update dependency io.grpc:grpc-stub to v1.49.1 ([#414](googleapis/java-common-protos#414)) ([5a0b64b](googleapis/java-common-protos@5a0b64b))

---
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
@renovate-bot
deps: update google.core.version to v1.95.4 (#393)
828c3f3
suztomo pushed a commit that referenced this pull request Mar 21, 2023
@release-please
chore: release 1.4.0 (#380)
dd14208
🤖 I have created a release \*beep\* \*boop\*
---
## [1.4.0](https://www.github.com/googleapis/java-shared-dependencies/compare/1.3.0...v1.4.0) (2021-06-30)


### Features

* add grpc-gcp to dependencyManagement ([#389](https://www.github.com/googleapis/java-shared-dependencies/issues/389)) ([475cbde](https://www.github.com/googleapis/java-shared-dependencies/commit/475cbdea7c4a729335156ab7ae13f18a1b0967c1))


### Bug Fixes

* Add `shopt -s nullglob` to dependencies script ([#392](https://www.github.com/googleapis/java-shared-dependencies/issues/392)) ([3a9e25c](https://www.github.com/googleapis/java-shared-dependencies/commit/3a9e25c6ff77d227ec28c46a4cfdf20e982305d3))
* Add common httpclient and oauth dependencies ([#391](https://www.github.com/googleapis/java-shared-dependencies/issues/391)) ([5b24d61](https://www.github.com/googleapis/java-shared-dependencies/commit/5b24d613a3a5d32889b7eaea802d9f04494fc387))
* Update dependencies.sh to not break on mac ([#384](https://www.github.com/googleapis/java-shared-dependencies/issues/384)) ([a82e138](https://www.github.com/googleapis/java-shared-dependencies/commit/a82e1388be76274d6fcec75823db956b3873da73))


### Dependencies

* update dependency com.google.api-client:google-api-client-bom to v1.32.1 ([#390](https://www.github.com/googleapis/java-shared-dependencies/issues/390)) ([031c550](https://www.github.com/googleapis/java-shared-dependencies/commit/031c5508eb045b77f0743cbae33a636bf10f827c))
* update dependency com.google.api:api-common to v1.10.4 ([#385](https://www.github.com/googleapis/java-shared-dependencies/issues/385)) ([a1e60b0](https://www.github.com/googleapis/java-shared-dependencies/commit/a1e60b0a8a5829a20063bc21c5c5e5bccf50f1f2))
* update dependency com.google.api:gax-grpc to v1.65.1 ([#382](https://www.github.com/googleapis/java-shared-dependencies/issues/382)) ([8e93aa5](https://www.github.com/googleapis/java-shared-dependencies/commit/8e93aa55d2bf329d1eeaef76d805e1584834d8bb))
* update dependency com.google.protobuf:protobuf-bom to v3.17.3 ([#379](https://www.github.com/googleapis/java-shared-dependencies/issues/379)) ([44a8182](https://www.github.com/googleapis/java-shared-dependencies/commit/44a8182e7b5003714261e0837486212a738111a6))
* update dependency io.grpc:grpc-bom to v1.38.1 ([#386](https://www.github.com/googleapis/java-shared-dependencies/issues/386)) ([e3065d7](https://www.github.com/googleapis/java-shared-dependencies/commit/e3065d795f8be6b8caadad630a558f3ddb9fc667))
* update dependency io.grpc:grpc-bom to v1.39.0 ([#394](https://www.github.com/googleapis/java-shared-dependencies/issues/394)) ([3e82270](https://www.github.com/googleapis/java-shared-dependencies/commit/3e82270634ade1542cc15c699c5c35939f688ffa))
* update gax.version to v1.66.0 ([#395](https://www.github.com/googleapis/java-shared-dependencies/issues/395)) ([5ecc525](https://www.github.com/googleapis/java-shared-dependencies/commit/5ecc52509b4fd9828e735f894a31a6be96074f93))
* update google.core.version to v1.95.1 ([#381](https://www.github.com/googleapis/java-shared-dependencies/issues/381)) ([9feadaf](https://www.github.com/googleapis/java-shared-dependencies/commit/9feadaf24d8e9856b9273cd96c3a0621eb0fe79c))
* update google.core.version to v1.95.2 ([#383](https://www.github.com/googleapis/java-shared-dependencies/issues/383)) ([91dfd6b](https://www.github.com/googleapis/java-shared-dependencies/commit/91dfd6bb81c2d3061401699eef5be206cca2a6a1))
* update google.core.version to v1.95.3 ([#388](https://www.github.com/googleapis/java-shared-dependencies/issues/388)) ([427879e](https://www.github.com/googleapis/java-shared-dependencies/commit/427879ee174a20c1b842e03e7248ee798ef295ab))
* update google.core.version to v1.95.4 ([#393](https://www.github.com/googleapis/java-shared-dependencies/issues/393)) ([828c3f3](https://www.github.com/googleapis/java-shared-dependencies/commit/828c3f35aabcdbbd7fd8ce9949b8da073aa0dc35))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@summer-ji-eng summer-ji-eng Awaiting requested review from summer-ji-eng
@vam-google vam-google Awaiting requested review from vam-google
1 more reviewer
@miraleung miraleung miraleung approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@xiaozhenliu-gg5 @miraleung @vam-google
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.