Exercises¶
We provide here a set of exercises for anyone willing to practice the procedures. Log-in on GitLab.com (if you do not have an account yet, just register), and go to the biogitflow template. Fork the project into your personal GitLab.com account with the dedicated button:
Assuming that your log-in on GitLab.com is mypseudo, clone your personal repository on your computer as follows:
git clone https://gitlab.com/mypseudo/biogitflow-template.git
cd biogitflow-template
If needed, add new members to your repository if your want to test the procedure with other persons in your team.
The exercices are split in two sections:
the Software development section is dedicated to the persons with the (D+UD) User roles and permissions
the Deployment in the valid and prod environments is dedicated to the persons with the (M+UVP) User roles and permissions
Software development¶
Ex1: Step 1 - software development with the nominal procedure¶
In this exercise, the person has the (D+UD) User roles and permissions. The person must perform the actions is allowed to from the Nominal procedure detailed in the Technical procedure.
The developer implements a new feature by creating a ‘Hello World’ script (in any preferred language)
The developer sends the script to remote repository
The developer deploys the new code in the dev environment to test it
Ex2: Step 3 - check the installation process and new testing with development of correction with the nominal procedure¶
In this exercise, the person has the (D+UD) User roles and permissions. The person must perform the actions is allowed to from the Nominal procedure detailed in the Technical procedure.
Let’s assume that the (M+UVP) user has deployed the code in the valid environment but there is a bug during the Test the version deployed in the valid environment step:
The developer (D+UD) must correct the bug on the code he developed
The developer (D+UD) must test and validate the correction
The developer submits the correction to the (M+UVP) user
Then the user (M+UVP) must deploy the corrected code in the valid and prod environments (according to the Deployment in the valid environment and Deployment in the prod environment).
Ex3: Step 1 - software development and Step 2 - acceptance testing with the hotfix procedure¶
In this exercise, the person has the (D+UD) User roles and permissions. The person must perform the actions is allowed to from the Hotfix procedure detailed in the Technical procedure.
Let’s assume that a bug occurred in the pipeline that is deployed in the prod environment.
The developer (D+UD) must correct the code
The developer (D+UD) must test and validate the correction
The developer submits the correction to the (M+UVP) user
Then the user (M+UVP) must deploy the corrected code in the valid and prod environments (according to the Deployment in the valid environment and Deployment in the prod environment).
Deployment in the valid and prod environments¶
Ex1: Step 2 - acceptance testing and Step 3 - check the installation process and new testing with the nominal procedure¶
In this exercise, the person has the (M+UVP) User roles and permissions. The person must perform the actions form the Nominal procedure detailed in the Technical procedure. The person must:
update the CHANGELOG file
bring the code from the devel branch to the release branch
deploy the code in the valid environment
perform the validation of the code
Ex2: Step 3 - check the installation process and new testing with developement of correction with the nominal procedure¶
In this exercise, the person has the (M+UVP) User roles and permissions. The person must perform the actions form the Nominal procedure detailed in the Technical procedure.
Let’s assume that the (M+UVP) user has deployed the code in the valid environment but there is a bug during the Test the version deployed in the valid environment. The developer (D+UD) implemented and submit the correction to the (M+UVP) user who has to:
take care of the Merge Request created by the developer (D+UD)
follow the remaining actions in the Step 3 - check the installation process and new testing
Ex3: Step 4 - production deployment with the nominal procedure¶
In this exercise, the person has the (M+UVP) User roles and permissions. The person must perform the actions form the Nominal procedure detailed in the Technical procedure. The user has to:
deploy the code in the prod environment
perform the required validation
bring the code from the release branch to the main, hotfix and devel branches
Ex4: Step 3 - check the installation process and new testing and Step 4 - production deployment with the hotfix procedure¶
In this exercise, the person has the (M+UVP) User roles and permissions. The person must perform the actions form the Hotfix procedure detailed in the Technical procedure.
Let’s assume that a bug occurred in the pipeline that is deployed in the prod environment. The developer (D+UD) implemented and submitted the correction to the (M+UVP) user who has to:
take care of the Merge Request created by the developer (D+UD)
follow the remaining actions in the Step 3 - check the installation process and new testing and Step 4 - production deployment