How to automatically deploy a feature branch on GAE?

52 views
Skip to first unread message

Bilal Haidar

unread,
May 22, 2021, 4:45:13 PM5/22/21
to Google App Engine

Hello,
As part of implementing GitFlow in my project, I would like to know how can I deploy a feature branch on Google App Engine so that QA can do the testing on the feature branch?

Thanks

C Mos

unread,
May 23, 2021, 4:37:35 PM5/23/21
to Google App Engine
What are your intentions with a feature branch? Like adding a new feature to production, hence deploying a new version? Or you want to launch an alternate modified service with an additional feature just for testing purposes. 

GAE has the microservice concept as its core. I'd like to think you could exploit this to your advantage, for example, deploying the same code under two different service "versions", one of them being your feature branch. You could do traffic migration, if it works for you. In fact, you can deploy a new version of your service and still ensure the traffic goes 100% to the old version. It is fair to say it really depends on your scenario and setup. What have you tried? 

Are you using development and production environments? If not, review this:

 



Bilal Haidar

unread,
May 25, 2021, 8:21:50 AM5/25/21
to google-a...@googlegroups.com
Thanks for your reply! 

Currently I have two versions of the same service. Prod and Staging.

When Prod branch deploys it promotes the version with 100% traffic.

When Staging deploys it de-promotes staging env and splits traffic 80/20.

I did my research and it seems I can grab the branch name inside cloud-build and deploy a version based on the feature branch name. This way I can get every feature to deploy. However, I can make those feature env with “no-promote”. But what about traffic? Shall I keep it 0 or what? 

Thanks

On 23 May 2021, at 11:37 PM, C Mos <advanced.develo...@gmail.com> wrote:

What are your intentions with a feature branch? Like adding a new feature to production, hence deploying a new version? Or you want to launch an alternate modified service with an additional feature just for testing purposes. 
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/xnWjFh_bZ54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/5e2a8ecf-760d-4548-8b19-698fdc481d18n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages