Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger: e2e test #867

Merged
merged 14 commits into from
Jan 30, 2018
Merged

Debugger: e2e test #867

merged 14 commits into from
Jan 30, 2018

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Jan 23, 2018

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2018

public static function createComposerJson()
{
$branch = exec('git rev-parse --abbrev-ref HEAD');

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

});
}

private function setBreakpoint($file, $line)

This comment was marked as spam.

* then makes a request to the app that should trigger the breakpoint. We then
* ensure that the breakpoint has been fulfilled.
*
* @group debugger

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

I have yet to have success with the tests passing. Trying to figure out if it is a local issue or not.

$branch = exec('git rev-parse --abbrev-ref HEAD');
$origin = exec('git remote get-url origin');
$repo = 'GoogleCloudPlatform/google-cloud-php';
if (preg_match('/[:\/](.+\/[^\/\.]+)(\.git)?/', $origin, $matches)) {

This comment was marked as spam.

public static function createComposerJson()
{
$branch = exec('git rev-parse --abbrev-ref HEAD');
$origin = exec('git remote get-url origin');

This comment was marked as spam.

This comment was marked as spam.

@dwsupplee
Copy link
Contributor

@chingor13 are there any other steps I should take outside of enabling the debugger API in order for the tests to pass?

@chingor13
Copy link
Contributor Author

chingor13 commented Jan 26, 2018

It should only require debugger api (and your test service account having access to debugger) and the ability to deploy to app engine. There's an additional GOOGLE_KEEP_DEPLOYMENT=true option to keep the app engine instance running to try and figure out what's going on in the instance.

@dwsupplee
Copy link
Contributor

I will play around with GOOGLE_KEEP_DEPLOYMENT=true, thanks!

@chingor13
Copy link
Contributor Author

@dwsupplee Ah, the line number is invalid that I was setting the breakpoint on. The number changed after I added the license header.

@chingor13 chingor13 requested a review from tmatsuo as a code owner January 29, 2018 20:53
@chingor13
Copy link
Contributor Author

@dwsupplee The test should be fixed now.

@dwsupplee
Copy link
Contributor

The tests are now passing for me as well, thanks.

@dwsupplee dwsupplee merged commit 3eead5e into googleapis:master Jan 30, 2018
@chingor13 chingor13 deleted the debugger-e2e-test branch January 30, 2018 17:14
@jdpedrie jdpedrie mentioned this pull request Feb 1, 2018
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.

3 participants