[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-08 Thread 'Elliott (Cloud Platform Support)' via Google App Engine
Hello,
>
>
Google Groups is meant for general discussions about Google products. It 
seems you want to get help with something that is not working as you 
expect. In this case, I recommend using Google Issue Tracker 
, where the request 
could become private so that you can share project information.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fe430047-558b-4496-9e85-bd453e4b4939o%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-05 Thread DFB
@Olu

I also saw references to gcloudMode on their Github project.

I don't use AppCfg or gcloud directly for builds. I use the 
appengine-maven-plugin and invoke 'mvn package appengine:deploy' to build 
and deploy the app. Can someone explain to me what is causing the deployed 
application size to increase when I change the plugin from v1.3.2 to v2.2.0?


On Friday, June 5, 2020 at 8:43:27 PM UTC+8, Olu wrote:
>
> @DFB, where did you get the information that appengine-maven-plugin uses 
> gcloud internally? Did you see that on any article? This GCP doc[1] has no 
> such information. 
>
> AFAIK, as per this comment, there is "gcloud beta" which has been 
> implemented within the Maven App Engine plugin, which can be used by 
> replacing the following code in the pom.xml file:
>
> 
>   com.google.cloud.tools
>   appengine-maven-plugin
>   2.1.0
>   
> beta
>  ...
>   
> 
>  
>
> Is this what you are doing? I have no information suggesting that the 
> appengine-maven-plugin uses gcloud under the hood. 
>
>
> [1]https://cloud.google.com/appengine/docs/standard/java/maven-reference
> [2]https://issuetracker.google.com/131254119#comment4
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b8162293-7388-487e-aaac-69cdb7c731bdo%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-05 Thread 'Olu' via Google App Engine
@DFB, where did you get the information that appengine-maven-plugin uses 
gcloud internally? Did you see that on any article? This GCP doc[1] has no 
such information. 

AFAIK, as per this comment, there is "gcloud beta" which has been 
implemented within the Maven App Engine plugin, which can be used by 
replacing the following code in the pom.xml file:


  com.google.cloud.tools
  appengine-maven-plugin
  2.1.0
  
beta
 ...
  

 

Is this what you are doing? I have no information suggesting that the 
appengine-maven-plugin uses gcloud under the hood. 


[1]https://cloud.google.com/appengine/docs/standard/java/maven-reference
[2]https://issuetracker.google.com/131254119#comment4

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7907476d-d64b-4398-b026-98086935a17do%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-04 Thread DFB
My builds are done using aappengine-maven-plugin, which internally uses 
gcloud.



On Thursday, June 4, 2020 at 11:44:47 PM UTC+8, Aref Amiri (Cloud Platform 
Support) wrote:
>
> AppCfg is deprecated now 
> 
>  and 
> it is recommended to use gcloud command 
> line
>  
> which uses Cloud Build to build the app into a container and deploy the 
> container to the runtime.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1ff18216-74a9-4ea3-8bed-809385e26ae3%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-04 Thread 'Aref Amiri (Cloud Platform Support)' via Google App Engine
AppCfg is deprecated now 
 
and 
it is recommended to use gcloud command 
line
 
which uses Cloud Build to build the app into a container and deploy the 
container to the runtime.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bfd4abef-f343-430f-9ec2-c4599eb593e7%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-03 Thread DFB
Thank you, Aref. It makes sense.

I noticed that when I go from maven-app-engine plugin v1.3.2 to v2.2.0, 
that's when the size increases. So has the plugin switched from using 
AppCfg to Cloud Build?

On Wednesday, June 3, 2020 at 11:35:16 PM UTC+8, Aref Amiri (Cloud Platform 
Support) wrote:
>
> Based on a discussion with an App Engine Specialist, the difference in 
> size comes from the way each tool works. Cloud SDK uses Cloud Build in the 
> background and containerizes the deployment along with the runtime selected 
> ( i.e Java8 ), making the deployment itself bigger. On the other hand, 
> AppCfg deploys the code and then uses the desired runtime directly from the 
> repository, therefore making the deployment smaller.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a34fd9db-a370-40d8-be72-8a49ed4f70ec%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-06-03 Thread 'Aref Amiri (Cloud Platform Support)' via Google App Engine
Based on a discussion with an App Engine Specialist, the difference in size 
comes from the way each tool works. Cloud SDK uses Cloud Build in the 
background and containerizes the deployment along with the runtime selected 
( i.e Java8 ), making the deployment itself bigger. On the other hand, 
AppCfg deploys the code and then uses the desired runtime directly from the 
repository, therefore making the deployment smaller.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/65102003-04d7-47c8-942a-bd98669948bc%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-05-30 Thread DFB
Diego, 
>
>
What was the conclusion? I'm seeing a similar issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f7462b0e-2658-4c0f-9304-c1fb911ba417%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-02-03 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Thanks!

I'll share with the forum conclusions.

Regards,
Diego

On Monday, February 3, 2020 at 5:43:55 PM UTC+1, noverlyjoseph wrote:
>
> Hi Diogo,
>
> I can see the support case you’ve opened is already being investigated. If 
> you do have more general questions regarding this, you can follow up on 
> here, otherwise communication will continue on the support case you’ve 
> opened.
>
>
> On Friday, January 31, 2020 at 2:41:53 AM UTC-5, DIEGO GARCIA TEBA wrote:
>>
>> Thanks Olu!
>>
>> I'll do it.
>>
>> Regards,
>> Diego
>>
>> On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:
>>>
>>> Hi, Diego
>>>
>>> There are a number of reasons that could account for the change in the 
>>> Application size. In fact, there was a similar report in the past where the 
>>> size of the application version using the Maven CloudSDK plugin actually 
>>> was found to be lesser compared to the version from AppCfg. To evaluate 
>>> specifically your version, I suggest you open an issue[1], with which a 
>>> Support Engineer would be able to review your project and evaluate the 
>>> specific App Engine versions to determine exactly what may be causing the 
>>> difference in sizes for your application.
>>>
>>> [1]https://developers.google.com/issue-tracker/#public_users
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/811938a0-e22f-4c5d-9d18-700c2a86d65d%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-02-03 Thread 'noverlyjoseph' via Google App Engine


Hi Diogo,

I can see the support case you’ve opened is already being investigated. If 
you do have more general questions regarding this, you can follow up on 
here, otherwise communication will continue on the support case you’ve 
opened.


On Friday, January 31, 2020 at 2:41:53 AM UTC-5, DIEGO GARCIA TEBA wrote:
>
> Thanks Olu!
>
> I'll do it.
>
> Regards,
> Diego
>
> On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:
>>
>> Hi, Diego
>>
>> There are a number of reasons that could account for the change in the 
>> Application size. In fact, there was a similar report in the past where the 
>> size of the application version using the Maven CloudSDK plugin actually 
>> was found to be lesser compared to the version from AppCfg. To evaluate 
>> specifically your version, I suggest you open an issue[1], with which a 
>> Support Engineer would be able to review your project and evaluate the 
>> specific App Engine versions to determine exactly what may be causing the 
>> difference in sizes for your application.
>>
>> [1]https://developers.google.com/issue-tracker/#public_users
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3e50e20e-96e5-4eec-bffa-693ca3509268%40googlegroups.com.


Re: [google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-02-02 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Hi Ludo,

Thanks for your response. One of my project where you can see this 
behaviour is "dev-bbva-gnameindexer-sp".

 - Version "1-4-5" is deployed with AppCfg (12.9 MB)
 - Version "1-4-6" is deployed with Apache Maven Cloud SDK based plugin 
(30.5 MB)

I've opened a support case (22030568) in order to investigate this 
behaviour.

Thanks!

Regards,
Diego

On Friday, January 31, 2020 at 7:03:45 PM UTC+1, Ludovic Champenois wrote:
>
> There is only 1 staging logic, inside appcfg tooling, which is used (as 
> is) in the cloud SDK, so staging is technically the same.
>
> In appcfg, it uses a temporary directory (deleted at the end unless you 
> use a flag to retain the upload dir).
>
> In cloud SDK and new plugins, the default location is visible to the 
> customer (appengine-staging) and can be overwritten via a flag.
>
> There is no reason at all I understand about why app size would differ 
> based on the tooling. Maybe different default flags in compilers?
>
> If you have a specific project that shows this behavior, I am all ears.
>
> Ludo
> On 1/30/20 11:41 PM, 'DIEGO GARCIA TEBA' via Google App Engine wrote:
>
> Thanks Olu! 
>
> I'll do it.
>
> Regards,
> Diego
>
> On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote: 
>>
>> Hi, Diego
>>
>> There are a number of reasons that could account for the change in the 
>> Application size. In fact, there was a similar report in the past where the 
>> size of the application version using the Maven CloudSDK plugin actually 
>> was found to be lesser compared to the version from AppCfg. To evaluate 
>> specifically your version, I suggest you open an issue[1], with which a 
>> Support Engineer would be able to review your project and evaluate the 
>> specific App Engine versions to determine exactly what may be causing the 
>> difference in sizes for your application.
>>
>> [1]https://developers.google.com/issue-tracker/#public_users
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-a...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8a3f4610-94a6-430a-ba99-3ec0bc53566e%40googlegroups.com.


Re: [google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-31 Thread 'Ludovic Champenois' via Google App Engine
There is only 1 staging logic, inside appcfg tooling, which is used (as 
is) in the cloud SDK, so staging is technically the same.


In appcfg, it uses a temporary directory (deleted at the end unless you 
use a flag to retain the upload dir).


In cloud SDK and new plugins, the default location is visible to the 
customer (appengine-staging) and can be overwritten via a flag.


There is no reason at all I understand about why app size would differ 
based on the tooling. Maybe different default flags in compilers?


If you have a specific project that shows this behavior, I am all ears.

Ludo

On 1/30/20 11:41 PM, 'DIEGO GARCIA TEBA' via Google App Engine wrote:

Thanks Olu!

I'll do it.

Regards,
Diego

On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:

Hi, Diego

There are a number of reasons that could account for the change in
the Application size. In fact, there was a similar report in the
past where the size of the application version using the Maven
CloudSDK plugin actually was found to be lesser compared to the
version from AppCfg. To evaluate specifically your version, I
suggest you open an issue[1], with which a Support Engineer would
be able to review your project and evaluate the specific App
Engine versions to determine exactly what may be causing the
difference in sizes for your application.

[1]https://developers.google.com/issue-tracker/#public_users


--
You received this message because you are subscribed to the Google 
Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to google-appengine+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Google 
App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3eea20e3-c4a7-fe0f-7467-ea315acc6cdd%40google.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-30 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Thanks Olu!

I'll do it.

Regards,
Diego

On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:
>
> Hi, Diego
>
> There are a number of reasons that could account for the change in the 
> Application size. In fact, there was a similar report in the past where the 
> size of the application version using the Maven CloudSDK plugin actually 
> was found to be lesser compared to the version from AppCfg. To evaluate 
> specifically your version, I suggest you open an issue[1], with which a 
> Support Engineer would be able to review your project and evaluate the 
> specific App Engine versions to determine exactly what may be causing the 
> difference in sizes for your application.
>
> [1]https://developers.google.com/issue-tracker/#public_users
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-30 Thread 'Olu' via Google App Engine
Hi, Diego

There are a number of reasons that could account for the change in the 
Application size. In fact, there was a similar report in the past where the 
size of the application version using the Maven CloudSDK plugin actually 
was found to be lesser compared to the version from AppCfg. To evaluate 
specifically your version, I suggest you open an issue[1], with which a 
Support Engineer would be able to review your project and evaluate the 
specific App Engine versions to determine exactly what may be causing the 
difference in sizes for your application.

[1]https://developers.google.com/issue-tracker/#public_users

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/78e23cb9-efe0-4255-bfe4-c28040486648%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-29 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Hi George,

I've updated from the deprecated AppCfg to Apache Maven Cloud SDK based 
plugin. When I did it, the same app with the same dependencies have a 
different size. I'm attaching a screenshoot.

Any idea?

Regards,
Diego

On Wednesday, January 29, 2020 at 5:35:58 PM UTC+1, George (Cloud Platform 
Support) wrote:
>
> Hello Diego, 
>
> The directory called "appengine-staging" is required, and created by 
> default. You are able to modify its location using the stagingDirectory 
> parameter of the appengine:deploy goal. It is the directory to which to 
> stage the application. Default is 
> ${project.build.directory}/appengine-staging. Related details are to be 
> found on the "App Engine Maven Plugin Goals and Parameters" documentation 
> page 
> 
> . 
>
> How did you determine that the Maven plugin generates bigger apps? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/db61de65-d6c4-4004-9f45-befb7de6edb5%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-29 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Diego, 

The directory called "appengine-staging" is required, and created by 
default. You are able to modify its location using the stagingDirectory 
parameter of the appengine:deploy goal. It is the directory to which to 
stage the application. Default is 
${project.build.directory}/appengine-staging. Related details are to be 
found on the "App Engine Maven Plugin Goals and Parameters" documentation 
page 
. 

How did you determine that the Maven plugin generates bigger apps? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/40044c48-d137-4b83-b4cb-a783c123832f%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-28 Thread Blaine Garrett
I am not familiar with the plugin, but is there an intermediate build 
additionally going on as part of CI/CD? You might be deploying the files 
needed for the build as well as the built files. 

With my production node applications, I do a two step build and deploy to 
ensure unit tests pass before deploying. This triggers a cloud build 
independent of the cloud build for deploying (this might be node specific). 
Initially, I was deploying both the final build files as well as the src 
files needed to build in the first place. To get around this, I copied a 
separate deploy specific gcloudignore file in place upon successful run of 
tests right before deploying. This then skipped all src files that were 
otherwise needed to do the initial test build.








On Tuesday, January 28, 2020 at 12:14:05 PM UTC-6, DIEGO GARCIA TEBA wrote:
>
> Hi,
>
> I'm experiencing that deploying with Cloud SDK Maven Plugin 
> 
>  
> is generating bigger apps than deploying with AppCfg. I've seen that inside 
> target directory, a folder named "appengine-staging" is generated. I don't 
> know if this is the cause of the file increment. 
>
> Anyone has the same behaviour?
>
> Thanks in advance!
>
> Regards,
> Diego
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b568d093-6aad-4693-9526-5d618c7cbec9%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-28 Thread Thomas Becker
I am experiencing the same behavior. Everything seems to work well both 
ways, and yet, it would be nice to know what causes the difference.

Thomas

On Tuesday, January 28, 2020 at 11:14:05 AM UTC-7, DIEGO GARCIA TEBA wrote:
>
> Hi,
>
> I'm experiencing that deploying with Cloud SDK Maven Plugin 
> 
>  
> is generating bigger apps than deploying with AppCfg. I've seen that inside 
> target directory, a folder named "appengine-staging" is generated. I don't 
> know if this is the cause of the file increment. 
>
> Anyone has the same behaviour?
>
> Thanks in advance!
>
> Regards,
> Diego
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dd670645-b4bf-46cb-8528-2d99e812c0a0%40googlegroups.com.