Repository navigation
It is too slow testing Datastore locally when use LocalDatastoreHelper #1300
Copy link
Copy link
Closed
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.
Description
Activity
@pauloleitemoreira thanks for the report.
You are right, there are 2 problems here:- The version we specify in
GCD_VERSIONis the minimum required to successfully run the tests. We allow using an already installed version of the emulator but only if the version is an exact match (we don't check if the installed version is more recent yet). This is something we need to fix. - It's odd that the emulator is re-downloaded with every test case.
LocalDatastoreHelpershould reuse previously downloaded emulators. This is a bug that you spotted, we did not update the value ofMD5_CHECKSUMto match version1.2.0, hence the emulator is always re-downloaded.
I can fix 2. right away. I'll need some more time to start working on 1.
- The version we specify in
- addedapi: datastoreIssues related to the Datastore API.Issues related to the Datastore API.
on Sep 30, 2016 - added a commit that references this issue
on Aug 18, 2022 - added a commit that references this issue
on Sep 16, 2022 - added a commit that references this issue
on Dec 22, 2025 - added a commit that references this issue
on Jan 6, 2026 - added a commit that references this issue
on Jan 22, 2026 - added a commit that references this issue
on Mar 30, 2026 - added a commit that references this issue
on Apr 1, 2026
Metadata
Metadata
Assignees
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.
It is too slow testing Datastore locally when we use
com.google.cloud.datastore.testing.LocalDatastoreHelperingoogle-cloud-0.4.0withcloud-datastore-emulator 1.2.1.I figure out
LocalDatastoreHelperdefineprivate static final String GCD_VERSION = "1.2.0";and lastest gcloud datastore version iscloud-datastore-emulator 1.2.1(gcloud-toolscurrent version is128.0.0). So, when we test by using LocalDatastoreHelper, it cannot find thecloud-datastore-emulator 1.2.0version in gcloud path, and as result, it ends up making download ofcloud-datastore-emulator 1.2.1for each test case.To solve this problem, I had to downgrade the
gcloud-toolsto125.0.0.