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 — Add integration tests and remote test helper for Datastore by mziccard · Pull Request #1226 · googleapis/google-cloud-java

Conversation

@mziccard

@mziccard mziccard commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mziccard mziccard added api: datastore Issues related to the Datastore API. testing labels Sep 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 6, 2016
@coveralls

coveralls commented Sep 6, 2016

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 85.142% when pulling e23ddbf on mziccard:datastore-its into 8cf6a66 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mziccard
mziccard force-pushed the datastore-its branch from e23ddbf to 72e0d3a Compare September 13, 2016 12:44
@coveralls

coveralls commented Sep 13, 2016

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 84.824% when pulling 72e0d3a on mziccard:datastore-its into 9c840d6 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mziccard

mziccard commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

/cc @lesv

All reactions

Sorry, something went wrong.

Uh oh!

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

@lesv

lesv commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

LGTM - However, while in practice, this shouldn't happen, if you were to run this against the Datastore Emulator, you would find that datastore can be flakey. (as consistency is by default 0.9) I don't know if you'd want to put in code to address this, but I thought I'd mention it. (Note - I have seen this in production as well, but it's been a while).

All reactions

Sorry, something went wrong.

Uh oh!

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

@mziccard

mziccard commented Sep 14, 2016

Copy link
Copy Markdown
Contributor Author

you would find that datastore can be flakey

This is a good point. Queries can be eventually consistent in datastore, I'll add some come to handle such cases.

All reactions

Sorry, something went wrong.

Uh oh!

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

mziccard added 2 commits September 26, 2016 14:56
@mziccard
Add integration tests and remote test helper for Datastore
cfc0035
@mziccard
Add retry logic to integration tests for eventual consistent datastor…
199bd61
…e queries
@mziccard
mziccard force-pushed the datastore-its branch from 72e0d3a to 199bd61 Compare September 26, 2016 13:16
@mziccard

mziccard commented Sep 26, 2016

Copy link
Copy Markdown
Contributor Author

/cc @lesv I updated tests to handle query's eventual consistency.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coveralls

coveralls commented Sep 26, 2016

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 84.545% when pulling 199bd61 on mziccard:datastore-its into f50a31f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

lesv
lesv suggested changes Sep 26, 2016
View reviewed changes

@lesv lesv 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.

Timeouts for tests of eventual consistency seems like a good idea, 65 or 129 seconds seems good for our purposes. (Though I've heard, but can't find documentation for longer times).

My ask to move the asserts probably isn't required for this scenario as crashing is a good thing here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
assertNull(list.get(0));
assertEquals(entity2, list.get(1));
assertEquals(ENTITY3, list.get(2));
assertEquals(3, list.size());

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
}

try {
transaction.rollback();

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java Outdated
transaction.commit();
fail("Expecting a failure");
} catch (DatastoreException ex) {
// expected to fail

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java Outdated
transaction.rollback();
fail("Expecting a failure");
} catch (DatastoreException ex) {
// expected to fail

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
}
}

@Test

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
assertEquals(entity4, entities.get(3));
assertEquals(entity5, entities.get(4));
assertEquals(entity6, entities.get(5));
assertEquals(6, entities.size());

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
assertEquals(6, entities.size());
}

@Test

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
assertFalse(keyProjectionResult.hasNext());
}

@Test

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/ITDatastoreTest.java
assertFalse(results3.hasNext());
}

@Test

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@lesv

lesv commented Sep 26, 2016

Copy link
Copy Markdown
Contributor

PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

@mziccard
Add timeout to Datastore ITs and verify exceptions
0ee880f
@coveralls

coveralls commented Sep 27, 2016

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 84.547% when pulling 0ee880f on mziccard:datastore-its into f50a31f on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

lesv
lesv approved these changes Sep 27, 2016
View reviewed changes
@lesv

lesv commented Sep 27, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@mziccard
mziccard merged commit 0e61bd3 into googleapis:master Sep 28, 2016
github-actions Bot pushed a commit that referenced this pull request Aug 25, 2022
@release-please
chore(main): release 2.3.7-SNAPSHOT (#1226)
a5d85be
🤖 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).
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
@release-please
chore(main): release 3.13.7-SNAPSHOT (#1226)
82a91b9
🤖 I have created a release *beep* *boop*
---


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

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
ad538d3
…28.0 (#1226)

* chore(deps): update dependency com.google.cloud:libraries-bom to v26.28.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
970ac96
…cies to v3.19.0 (#1226)
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
@gcf-owl-bot
chore: Update dependabot.yml (#1814) (#1226)
b081ebb
* chore: Update dependabot.yml
Source-Link: https://togithub.com/googleapis/synthtool/commit/9ad18b66e75ca08d6a7779f56c7ee0595d3e1203
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:c33bd13e1eab022b0499a3afbfb4b93ae10cb8ad89d8203a6343a88b1b78400f
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 11, 2026
@release-please
chore(main): release 3.13.7-SNAPSHOT (googleapis#1226)
c70d1e0
🤖 I have created a release *beep* *boop*
---


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

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
@gcf-owl-bot
chore: Update dependabot.yml (#1814) (#1226)
a34a86c
* chore: Update dependabot.yml
Source-Link: https://togithub.com/googleapis/synthtool/commit/9ad18b66e75ca08d6a7779f56c7ee0595d3e1203
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:c33bd13e1eab022b0499a3afbfb4b93ae10cb8ad89d8203a6343a88b1b78400f
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
f42e782
…14.0 (googleapis#1226)
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@dependabot @gcf-owl-bot
build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /.kokoro (#1226)
a3e5545
* build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /.kokoro

Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](certifi/python-certifi@2023.05.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@dependabot @gcf-owl-bot
build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /.kokoro (#1226)
d8f79d2
* build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /.kokoro

Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
- [Commits](certifi/python-certifi@2023.05.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@renovate-bot @gcf-owl-bot
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
8fab566
…cies to v3.0.1 (#1226)

* deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@release-please
chore(main): release 1.120.9 (#1228)
694f0f3
🤖 I have created a release *beep* *boop*
---


## [1.120.9](googleapis/java-pubsub@v1.120.8...v1.120.9) (2022-08-03)


### Dependencies

* update dependency com.google.cloud:google-cloud-core to v2.8.7 ([#1227](googleapis/java-pubsub#1227)) ([e967b2c](googleapis/java-pubsub@e967b2c))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#1226](googleapis/java-pubsub#1226)) ([8fab566](googleapis/java-pubsub@8fab566))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request May 1, 2026
@renovate-bot @gcf-owl-bot
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
9be14bf
…cies to v3.0.1 (#1226)

* deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
@release-please
chore(main): release 1.120.9 (#1228)
df2730b
🤖 I have created a release *beep* *boop*
---


## [1.120.9](googleapis/java-pubsub@v1.120.8...v1.120.9) (2022-08-03)


### Dependencies

* update dependency com.google.cloud:google-cloud-core to v2.8.7 ([#1227](googleapis/java-pubsub#1227)) ([52fe226](googleapis/java-pubsub@52fe226))
* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#1226](googleapis/java-pubsub#1226)) ([9be14bf](googleapis/java-pubsub@9be14bf))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@prash-mi
feat: next release from main branch is v2.6.2 (googleapis#1226)
50d2920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@lesv lesv lesv 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

api: datastore Issues related to the Datastore API. 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.

4 participants

@mziccard @coveralls @lesv @googlebot
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.