Skip to content

Conversation

@juan-rael
Copy link

No description provided.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@juan-rael
Copy link
Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

Copy link
Member

@billyjacobson billyjacobson left a comment

Choose a reason for hiding this comment

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

Hey Juan,

The code is generally looking pretty clear. There are some format differences that match our standard example. I've commented a bunch of them on the instanceadmin sample, so please apply those changes everywhere.

Also, for PHP we keep each code snippet in its own file for readability and simplicity (see https://github.com/GoogleCloudPlatform/php-docs-samples/tree/dec932a96652fc365c6a4b5ba756427890d9ac89/bigquery/api) For example, the directory structure here will look like
php-docs-samples/bigtable/src/bigtable_check_instance_exists.php
php-docs-samples/bigtable/src/bigtable_create_prod_instance.php
... etc.
Follow one of the files for how to take the CLI args as well (this one contains some CLI args https://github.com/GoogleCloudPlatform/php-docs-samples/blob/dec932a96652fc365c6a4b5ba756427890d9ac89/bigquery/api/src/browse_table.php)

Then the tests can still put each flow into a file as you've done already. But should be places under
bigtable/test/

Please let me know if you have any questions or need clarification on this. I will continue to review the rest of the PR in the meantime as most of this will still be the same once it is moved to individual files.

@billyjacobson billyjacobson self-assigned this Oct 30, 2018
Copy link
Member

@billyjacobson billyjacobson left a comment

Choose a reason for hiding this comment

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

These are looking really good Juan! Mainly a few cleanups and unused variables. I need to take a look at the tests still, but we should be able to get this submitted soon.

@sduskis
Copy link

sduskis commented Nov 9, 2018

@juan-rael and @billyjacobson is this ready to go?

@billyjacobson
Copy link
Member

billyjacobson commented Nov 9, 2018 via email

@billyjacobson billyjacobson added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Nov 12, 2018
@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018

Running locally on a single project I am still getting quota errors. Is there a way you could conceivably reduce the number of calls?

@juan-rael
Copy link
Author

juan-rael commented Dec 5, 2018 via email

@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018 via email

@juan-rael
Copy link
Author

juan-rael commented Dec 5, 2018 via email

@sduskis
Copy link

sduskis commented Dec 5, 2018

@bshaffer: there are table admin constraints on the Cloud Bigtable side on multi-cluster instances. We ran into problems using a single instance. We need to use a different instance for instance admin and table admin to avoid those constraints.

@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018

@sduskis ok, I understand. But have you not ran into quota limits with your other tests?

The Quota UI does not have a way to apply for a higher quota yet.

@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018

Added #774 to hopefully address this issue (by providing unique credentials for each CI build).

@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018

Also getting this error now

1) Google\Cloud\Samples\BigTable\Tests\BigTableTest::testCreateCluster
Google\ApiCore\ApiException: {
    "message": "Cannot create multiple clusters in the same zone.",
    "code": 9,
    "status": "FAILED_PRECONDITION",
    "details": []
}

@juan-rael
Copy link
Author

I set another region cluster for that test.

@bshaffer bshaffer mentioned this pull request Dec 5, 2018
@bshaffer
Copy link
Contributor

bshaffer commented Dec 5, 2018

I've created a PR that has fixes for these tests (#775), so I'm closing this one

@bshaffer bshaffer closed this Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants