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: integrate java-diff-util library with dummy test by xiaozhenliu-gg5 · Pull Request #290 · 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 Sep 10, 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-file-diff-infra

  1. add diffUtils which use java-diff-utils to extract diff between two strings, or string with a file content.
  2. add assertUtils to trigger the comparison and emit the diff to test-logs.
  3. integrate the assertUtils with new dummy test.

Removed part of the expected code, and the test failure looks as below:

There was 1 failure:
1) simpleLineComment(com.google.api.generator.gapic.dummy.FileDiffInfraDummyTest)
junit.framework.AssertionFailedError: Differences found: 
--- golden
+++ codegen
@@ -1,1 +1,1 @@
-// test strings.
+// test strings comparison.
There was 1 failure:
1) classWithHeader(com.google.api.generator.gapic.dummy.FileDiffInfraDummyTest)
junit.framework.AssertionFailedError: Differences found: 
--- golden
+++ codegen
@@ -8,5 +8,5 @@
  *      https://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless applicable law or agreed to in writing, software
+ * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

The following step would be:

  1. Add bazel rules for updating golden files if the codegen is not identical with the existing goldens.
  2. Move the existing expected class string to file-diff infra.
  3. Update developer doc to include this instruction for updating goldens

Sorry, something went wrong.

Uh oh!

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

All reactions
xiaozhenliu-gg5 added 11 commits September 8, 2020 17:56
@xiaozhenliu-gg5
add fileDiffUtils
42db152
@xiaozhenliu-gg5
add new dummy unit test
7c4b6a7
@xiaozhenliu-gg5
format
f42d269
@xiaozhenliu-gg5
add assertUtils
7224b5a
@xiaozhenliu-gg5
format
62ddbe6
@xiaozhenliu-gg5
move dummy test to separate folder
d9fbb0a
@xiaozhenliu-gg5
add compare strings method in diffUtils
0e63a94
@xiaozhenliu-gg5
format
076ef47
@xiaozhenliu-gg5
Merge branch 'dummy_test' of github.com:googleapis/gapic-generator-ja…
760b0a9
…va into java_diff_util
@xiaozhenliu-gg5
dummy test pass
25ce9ec
@xiaozhenliu-gg5
reformat
6f54239
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 10, 2020
xiaozhenliu-gg5 added 4 commits September 10, 2020 15:03
@xiaozhenliu-gg5
merge
cf90743
@xiaozhenliu-gg5
add simple strings comparison
e3563b9
@xiaozhenliu-gg5
group test framework helpers together
7cc8219
@xiaozhenliu-gg5
merge master
0e0bf67
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested review from miraleung and summer-ji-eng September 12, 2020 03:37
summer-ji-eng
summer-ji-eng approved these changes Sep 14, 2020
View reviewed changes

@summer-ji-eng summer-ji-eng left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
miraleung
miraleung suggested changes Sep 15, 2020
View reviewed changes

@miraleung miraleung left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM with nits addressed.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/test/java/com/google/api/generator/gapic/dummy/FileDiffInfraDummyTest.java Resolved

Uh oh!

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

Comment thread src/test/java/com/google/api/generator/test/framework/Assert.java Resolved

Uh oh!

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

Comment thread src/test/java/com/google/api/generator/test/framework/Differ.java Resolved

Uh oh!

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

Comment thread src/test/java/com/google/api/generator/test/framework/Differ.java Resolved

Uh oh!

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

xiaozhenliu-gg5 added 2 commits September 14, 2020 17:43
@xiaozhenliu-gg5
feedback
ac1893d
@xiaozhenliu-gg5
cleanup
5b2ef17
@xiaozhenliu-gg5
xiaozhenliu-gg5 requested a review from miraleung September 15, 2020 01:00
miraleung
miraleung approved these changes Sep 15, 2020
View reviewed changes
Comment thread src/test/java/com/google/api/generator/gapic/dummy/FileDiffInfraDummyTest.java Resolved

Uh oh!

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

@xiaozhenliu-gg5
typo
8317194
@xiaozhenliu-gg5
xiaozhenliu-gg5 merged commit da3a8a4 into master Sep 16, 2020
@xiaozhenliu-gg5
xiaozhenliu-gg5 deleted the java_diff_util branch September 16, 2020 16:44
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@renovate-bot
deps: update dependency io.grpc:grpc-bom to v1.43.2 (#290)
ae0566c
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@renovate-bot
deps: update dependency io.grpc:grpc-protobuf to v1.44.1 (#290)
c7713a0
[![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.44.0` -> `1.44.1` | [![age](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.44.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.44.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.44.1/compatibility-slim/1.44.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/io.grpc:grpc-protobuf/1.44.1/confidence-slim/1.44.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

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

##### **Bug Fixes**

-   xds: fix the validation code to accept new-style CertificateProviderPluginInstance wherever used ([#&#8203;8901](https://togithub.com/grpc/grpc-java/issues/8901) fixes [#&#8203;8885](https://togithub.com/grpc/grpc-java/issues/8885))
-   binder: Fix a ServiceConnection leak ([#&#8203;8861](https://togithub.com/grpc/grpc-java/issues/8861) closes [#&#8203;8726](https://togithub.com/grpc/grpc-java/issues/8726))
-   android: fix for app coming to foreground ([#&#8203;8904](https://togithub.com/grpc/grpc-java/issues/8904) closes [#&#8203;8850](https://togithub.com/grpc/grpc-java/issues/8850))

</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-iam).
suztomo pushed a commit that referenced this pull request Dec 16, 2022
@release-please
chore(main): release 1.2.6 (#295)
07ae444
🤖 I have created a release *beep* *boop*
---


### [1.2.6](googleapis/java-iam@v1.2.5...v1.2.6) (2022-03-01)


### Dependencies

* update dependency io.grpc:grpc-protobuf to v1.44.1 ([#290](googleapis/java-iam#290)) ([c7713a0](googleapis/java-iam@c7713a0))
* update dependency io.grpc:grpc-stub to v1.44.1 ([#291](googleapis/java-iam#291)) ([c0cb638](googleapis/java-iam@c0cb638))

---
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
build(deps): update dependency com.google.cloud:google-cloud-shared-c…
c213be6
…onfig to v0.11.0 (#290)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@miraleung miraleung miraleung approved these changes
@summer-ji-eng summer-ji-eng summer-ji-eng 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 @summer-ji-eng
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.