Skip to content

Conversation

@jdpedrie
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 30, 2020
@@ -0,0 +1,150 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh yeah, got some tests!

Is there a plan to add integration/end-to-end tests in the future? Mocking the database for a database usage sample only gets you so far.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bshaffer what's the standard course here?

Copy link
Contributor

Choose a reason for hiding this comment

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

The Cloud SQL DPEs have an OKR around e2e testing for every sample next quarter.

Copy link
Contributor

Choose a reason for hiding this comment

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

please don't forget this one!!

Copy link
Contributor

@kurtisvg kurtisvg left a comment

Choose a reason for hiding this comment

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

I know very little about PHP, so I'll defer to @shubha-rajan and @grayside to provide a more throughout review. This is OK with me as long as it's consistent with the MySQL and SQLServer samples going forward.


```bash
$ gcloud app deploy
$ gcloud beta app deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this really need to be beta?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got that from here and given that the app.yaml has a beta_settings section in it, assumed that beta was required in the command.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is still a beta setting for flex, but not standard: https://cloud.google.com/sql/docs/mysql/connect-app-engine#flexible

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I tested this using gcloud app deploy (no beta flag) for flex and it worked as expected with no discernible differences.

Copy link
Contributor

Choose a reason for hiding this comment

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

I removed beta_settings and the app failed. But it seems that using beta does not make a difference.

@shubha-rajan shubha-rajan 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. and removed kokoro:run Add this label to force Kokoro to re-run the tests. labels May 7, 2020
@shubha-rajan
Copy link
Contributor

@jdpedrie it looks like there's a merge conflict in the README. do you mind fixing that and updating the PR?

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 7, 2020
@shubha-rajan shubha-rajan added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 7, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 7, 2020
Copy link
Contributor

@shubha-rajan shubha-rajan left a comment

Choose a reason for hiding this comment

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

LGTM since most of this looks similar to the other two samples. PTAL at my comment about the timeout region tag.


```bash
$ gcloud app deploy
$ gcloud beta app deploy
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is still a beta setting for flex, but not standard: https://cloud.google.com/sql/docs/mysql/connect-app-engine#flexible

@shubha-rajan shubha-rajan requested a review from bshaffer May 13, 2020 16:39
@jdpedrie jdpedrie requested a review from a team as a code owner May 14, 2020 15:13
@shubha-rajan shubha-rajan added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 14, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 14, 2020
@shubha-rajan
Copy link
Contributor

@GoogleCloudPlatform/php-admins ping for codeowner review

@shubha-rajan
Copy link
Contributor

@jdpedrie just a few more minor changes before we can merge this. PTAL at the review comments

@jdpedrie
Copy link
Contributor Author

@bshaffer @shubha-rajan done

@shubha-rajan shubha-rajan requested a review from bshaffer May 28, 2020 00:02
@shubha-rajan shubha-rajan added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 28, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 28, 2020
@shubha-rajan
Copy link
Contributor

@bshaffer ping for review

Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

Seems like a lot of dependencies for a microframework, but if that's what is required then it's fine by me.

@shubha-rajan shubha-rajan requested a review from bshaffer June 10, 2020 16:56
@shubha-rajan shubha-rajan added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jun 15, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jun 15, 2020
@shubha-rajan
Copy link
Contributor

@bshaffer good to merge?

@SaketramDurbha
Copy link
Contributor

I've created PR #1130 that depends on the changes made in this pull request. @bshaffer, if you could review the new changes to this PR at your convenience, I would greatly appreciate it.

@kurtisvg kurtisvg added cla: yes This human has signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Jul 6, 2020
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to
# run a long-running PHP script as a worker process (e.g. "php worker.php").
#
# entrypoint: serve index.php
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this comment is only valid for app engine standard, and not for app engine flex

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

I tested this and found some very strange behavior:

  1. entrypoint: serve index.php => entrypoint1: serve index.php - throws error "unexpected attribute entrypoint2"
  2. entrypoint: serve index.php => entrypoint: serve index1.php - does not throw error, application works as expected, even though index1.php doesn't exist.
  3. entrypoint: serve1 index.php => entrypoint: serve index1.php - does not throw error, application works as expected, even though serve1 doesn't exist.

My theory is that this attribute has been deprecated and while is "valid" is no longer being used in App Engine Flex.

Adding @tmatsuo for comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Just realized I've been using gcloud app deploy instead of gcloud beta app deploy. I'll test everything again with the beta command.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, done. The beta command had no effect.

@shubha-rajan shubha-rajan requested a review from bshaffer July 6, 2020 22:20
@kurtisvg kurtisvg added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 6, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 6, 2020
@shubha-rajan shubha-rajan merged commit 39a13e2 into GoogleCloudPlatform:master Jul 6, 2020
@jdpedrie jdpedrie deleted the cloudsql/postgres branch July 7, 2020 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants