google-cloud-eclipse icon indicating copy to clipboard operation
google-cloud-eclipse copied to clipboard

Collecting error messages does not work for App Engine staging failure

Open chanseokoh opened this issue 7 years ago • 5 comments

I should have created this as a new issue back then: https://github.com/GoogleCloudPlatform/google-cloud-eclipse/pull/1219#discussion_r95827603

The same issue with #527 but for staging failure.

image

The cause: we look for the prefix ERROR: in gcloud output and collect such lines as error messages, but staging failure error messages don't have the prefix.

To reproduce staging failure, change appengine-web.xml to be a malformed XML. (You may need to turn off auto-build.)

chanseokoh avatar Jul 26 '17 15:07 chanseokoh

Should this be raised elsewhere? Some errors, like an invalid runtime (e.g., <runtime>FOO</runtime>) are properly prefixed and picked up.

screen shot 2017-07-26 at 12 49 34 pm

briandealwis avatar Jul 26 '17 16:07 briandealwis

Ah, XML validation errors are logged differently. But it should be impossible to deploy in such situations as our deploy handler refuses to run if there are any problems markers on the selected project.

briandealwis avatar Jul 26 '17 16:07 briandealwis

I think the error in your screenshot is not from the staging phase, but after that. I see "Success." and the last output line of the staging saying that the staging result has been left in some directory.

chanseokoh avatar Jul 26 '17 16:07 chanseokoh

Oops, good point!

briandealwis avatar Jul 26 '17 18:07 briandealwis

~~Also, currently, the staging output is in black, while the deploy output is in red. That's one way to distinguish the two output.~~

UPDATE: this has been fixed, and now all output is in black.

chanseokoh avatar Jul 27 '17 00:07 chanseokoh