Skip to main content

Branching strategy for a demo

In this post we will talk about source control merging when a demo needs to be prepared.

I expect that all of us knows what a branch is. To be sure that we are talking about the same thing, let's see the definition from Wikipedia:
Branching, in revision control and software configuration management, is the duplication of an object under revision control (such as a source code file or a directory tree) so that modifications can happen in parallel along both branches.
I don't want to enter in the different strategies of branching topic. There are multiple ways to do it in different phases of a project.
Usually, during the development of a project we will have multiple branches in parallel or in different moment in time. For example:
  • Main
  • Development
  • Testing
  • Integration
  • Production
, on top of this if we have multiple versions of a product supported in parallel that we will have for each version another group of branches. And this is not all, based on the team needs or what kind of feature they are developing, they may require and need custom branches where they can implement and play with the code or freeze the code at a specific version.

Now, to simplify the problem, let's assume that we have only one branch - main. At the end of the sprint, the client requires a demo. After the demo you need to be able to provide that specific version to the client and even make small fixes of that code if any issues are requires. This could be required if the client wants to go with the demo to senior executive for example.
In parallel with this, the team will continue to develop new features and go further with the next sprint.
In this moment there are two different options on the table:
  • Create a branch for the demo
Or
  • Create a branch for the next sprint (features that will be develop by the team) and use the main as branch demo.

(yes, the main branch is not the best name, it should be called Development, but for this example we went with main)

To be able to decide what is the best solution we need to take into account what branch needs to exists long after the demo is done. If we are creating a branch for the next sprint, then the development team may be blocked on the secondary branch until the demo is done and client say that he doesn't needs that demo anymore. This can be a week, a month or even more.
On the other hand, we can see the demo as a small release, that should be managed separately, with his own versioning and life. Fixes in the demo branch will need to be merged in the man branch because we don't want to lose them.

I imagine another branching solution for this problem:
  • Main
  • DevSprintX
  • DemoSprintX
At the end of each sprint the DevSprintX is merged in the main if the sprint success. The DemoSprintX is created at the end of each sprint and is kept until the client confirms that he doesn't need anymore the demo.

Of course, we don't discuss what is happening after release. This is another story. Or if we have a testing team.

We can have different branching strategies, based on our needs and setup. As a rule, don't complicate your life if you don't need it.  

Comments

Popular posts from this blog

How to check in AngularJS if a service was register or not

There are cases when you need to check in a service or a controller was register in AngularJS.
For example a valid use case is when you have the same implementation running on multiple application. In this case, you may want to intercept the HTTP provider and add a custom step there. This step don’t needs to run on all the application, only in the one where the service exist and register.
A solution for this case would be to have a flag in the configuration that specify this. In the core you would have an IF that would check the value of this flag.
Another solution is to check if a specific service was register in AngularJS or not. If the service was register that you would execute your own logic.
To check if a service was register or not in AngularJS container you need to call the ‘has’ method of ‘inhector’. It will return TRUE if the service was register.
if ($injector.has('httpInterceptorService')) { $httpProvider.interceptors.push('httpInterceptorService&#…

ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded

Today blog post will be started with the following error when running DB tests on the CI machine:
threw exception: System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. at System.Data.Entity.Infrastructure.DependencyResolution.ProviderServicesFactory.GetInstance(String providerTypeName, String providerInvariantName) This error happened only on the Continuous Integration machine. On the devs machines, everything has fine. The classic problem – on my machine it’s working. The CI has the following configuration:

TeamCity.NET 4.51EF 6.0.2VS2013
It seems that there …

Run native .NET application in Docker (.NET Framework 4.6.2)

Scope
The main scope of this post is to see how we can run a legacy application written in .NET Framework in Docker.

Context
First of all, let’s define what is a legacy application in our context. By a legacy application we understand an application that runs .NET Framework 3.5 or higher in a production environment where we don’t have any more the people or documentation that would help us to understand what is happening behind the scene.
In this scenarios, you might want to migrate the current solution from a standard environment to Docker. There are many advantages for such a migration, like:

Continuous DeploymentTestingIsolationSecurity at container levelVersioning ControlEnvironment Standardization
Until now, we didn’t had the possibility to run a .NET application in Docker. With .NET Core, there was support for .NET Core in Docker, but migration from a full .NET framework to .NET Core can be costly and even impossible. Not only because of lack of features, but also because once you…