SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The Road to Database CI


The Road to Database CI

Author
Message
Steve Thompson
Steve Thompson
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1119 Visits: 2230
Comments posted to this topic are about the item The Road to Database CI
gbritton1
gbritton1
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2547 Visits: 897
Steve Thompson-454462 - Tuesday, May 16, 2017 10:52 PM
Comments posted to this topic are about the item The Road to Database CI

Thanks for the article! Just wondering if you also use SSIS/SSAS/SSRS and have to integrate those into your CI workflow? If so, how's it going?

Steve Thompson
Steve Thompson
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1119 Visits: 2230
gbritton1 - Wednesday, May 17, 2017 8:55 AM
Steve Thompson-454462 - Tuesday, May 16, 2017 10:52 PM
Comments posted to this topic are about the item The Road to Database CI

Thanks for the article! Just wondering if you also use SSIS/SSAS/SSRS and have to integrate those into your CI workflow? If so, how's it going?

Thanks for reading and really good question. I'm sorry to say that the short answer is no: even though we do use SSIS quite a bit, we didn't dedicate the resources needed to operationalize those deploys to the same degree that we did db schema. We've started putting our greenfield projects into Git, but haven't done anything about automating deploys through Bamboo. There were a coupe of reasons, including the fact that we really only have one SSIS engineer right now, so there weren't many issues with tracking changes; and that our roadmap has us pivoting away from encapsulating ETL logic within SSIS. With that said, I do think that any shop that's serious about CI and has SSIS (or SSRS/SSAS) dependencies should most definitely look into building a process around them.

Data Wrangler
Data Wrangler
Valued Member
Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)

Group: General Forum Members
Points: 58 Visits: 334
This is a great view into how you approach database CI. Thank you!

How do you manage code reviews after code is deployed to the Development environment?
Steve Thompson
Steve Thompson
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1119 Visits: 2230
Data Wrangler - Thursday, May 18, 2017 5:29 PM
This is a great view into how you approach database CI. Thank you!

How do you manage code reviews after code is deployed to the Development environment?

Thanks, Data Wrangler! I'm glad you liked it.

Generally, the engineer will generate a Pull Request for his/her feature branch against the Test branch; our definition of done for Test says that you need at least one approval before you can merge (Bitbucket can be set up to enforce this). This is a bit of a departure from standard GitFlow where you'd promote Dev in its entirety. But because our dbs are shared across several apps, and our Product Owners don't always approve an entire Sprint's worth of work for immediate release, we need to promote at a feature granularity.

Data Wrangler
Data Wrangler
Valued Member
Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)Valued Member (58 reputation)

Group: General Forum Members
Points: 58 Visits: 334
Steve Thompson-454462 - Thursday, May 18, 2017 5:54 PM
Data Wrangler - Thursday, May 18, 2017 5:29 PM
This is a great view into how you approach database CI. Thank you!

How do you manage code reviews after code is deployed to the Development environment?

Thanks, Data Wrangler! I'm glad you liked it.

Generally, the engineer will generate a Pull Request for his/her feature branch against the Test branch; our definition of done for Test says that you need at least one approval before you can merge (Bitbucket can be set up to enforce this). This is a bit of a departure from standard GitFlow where you'd promote Dev in its entirety. But because our dbs are shared across several apps, and our Product Owners don't always approve an entire Sprint's worth of work for immediate release, we need to promote at a feature granularity.



That sounds like just the approach we should use, and we happen to have Bitbucket Server. We too, have databases shared by multiple applications, so we'll probably go with feature branches. Now if only we can get our hands on Red Gate SQL Source Control--it's been a struggle budget-wise recently.
Steve Thompson
Steve Thompson
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1119 Visits: 2230
Data Wrangler - Thursday, May 18, 2017 7:00 PM

That sounds like just the approach we should use, and we happen to have Bitbucket Server. We too, have databases shared by multiple applications, so we'll probably go with feature branches. Now if only we can get our hands on Red Gate SQL Source Control--it's been a struggle budget-wise recently.

I feel you on the budget issues. Highly recommend the Redgate tools if you can swing it, but if you can't you could look into Flyway. It's migration-based instead of state-based which I feel takes a bit of getting used to, but it is open sourced (we use it for our Postgres repos).

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search