Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

test: E2E test for time encoding#941

Merged
stephaniewang526 merged 80 commits intogoogleapis:masterfrom
JacobStocklass:jstocklass-time-encode-e2e
Mar 24, 2021
Merged

test: E2E test for time encoding#941
stephaniewang526 merged 80 commits intogoogleapis:masterfrom
JacobStocklass:jstocklass-time-encode-e2e

Conversation

@JacobStocklass
Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

JacobStocklass and others added 30 commits February 19, 2021 22:40
…omplex-schema

test(Java): Jstocklass stress testing complex schema
@JacobStocklass JacobStocklass force-pushed the jstocklass-time-encode-e2e branch from ddc7eb0 to 6bc03d1 Compare March 19, 2021 19:19
Copy link
Copy Markdown
Contributor

@stephaniewang526 stephaniewang526 left a comment

Choose a reason for hiding this comment

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

Hi!

  1. There are IT failures: https://source.cloud.google.com/results/invocations/a6ec1f57-d8d3-4ad4-8574-146b4604c560/targets ptal.
  2. This branch is not up-to-date against master. Please check out master, git pull. check out this branch, git merge -- resolve any merge conflict if needed and then git push.

yoshi-automation and others added 6 commits March 22, 2021 15:30
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-03-18 22:45:20,095 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-bigquerystorage/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-03-18 22:45:21,018 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/93099bcc-ab35-48d5-ab7a-79fbfbcb0bba/targets

- [ ] To automatically regenerate this PR, check this box.
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-03-22 15:32:14,816 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-bigquerystorage/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-03-22 15:32:15,852 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/9be4b08c-65bc-4ddb-81cf-9402bf4f1a1b/targets

- [ ] To automatically regenerate this PR, check this box.
@JacobStocklass
Copy link
Copy Markdown
Contributor Author

@stephaniewang526 I've taken care of the IT errors for the time being and I'm not sure why the integration test is failing to build. It appears that files in the proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/ are having a hard time finding symbols. I'm not sure if that is related to the changes made here.

I've also rebased the branch against master.

Copy link
Copy Markdown
Contributor

@yirutang yirutang left a comment

Choose a reason for hiding this comment

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

Overall looks good, but please cleanup the extra diffs. It seems your branch is somehow newer than the current master?

Copy link
Copy Markdown
Contributor

@yirutang yirutang left a comment

Choose a reason for hiding this comment

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

Just make sure to cleanup extra diffs.

Comment on lines +147 to +148
assertEquals("23:59:59.999999", currentRow.get(1).getRepeatedValue().get(1).getStringValue());
assertEquals("00:00:00", currentRow.get(1).getRepeatedValue().get(2).getStringValue());
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.

Just to verify: Is the precision difference here deterministic? Or could these tests fail later due to a precision change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe it is deterministic. The time is checked that truncating to micros is equivalent to it's original time so it should return an intentional illegal argument if the precision change were to cause a problem.

@stephaniewang526 stephaniewang526 merged commit 4442583 into googleapis:master Mar 24, 2021
@JacobStocklass JacobStocklass deleted the jstocklass-time-encode-e2e branch March 29, 2021 18:27
shubhwip pushed a commit to shubhwip/java-bigquerystorage that referenced this pull request Oct 7, 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).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants