GitLab Process and Other Info

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

GitLab Process and other info

Clone and set up a project

 Go to GitLab (tool where all repo, CI/CD, dev ops activities are carried out)
 Navigate to the project to be cloned
 Copy the link to ‘Clone with HTTPS'
 Now navigate to the home (root) folder of your system from finder>Go>Home
 Create/open a folder for all project repositories. e.g Repositories
 Open terminal
 Cd into the Repository folder
 Run git clone(paste copied link)
 Cd into the cloned project folder
 Check the node version using node -v
 Make sure it is v8.9.1
 if it is not, downgrade/upgrade the version using this command:
nvm use —delete-prefix v8.9.1
if this does not work, check if nvm is installed by nvm —version
if not installed, run nvm install v8.9.1 and then try again nvm use —delete-prefix
v8.9.1
 Check for npm version using npm -v
 Make sure it is v5.5.1
 Then run npm install
 Now navigate to  cd node_modules/dgad-mongo-restore/bin
 Once you’re inside bin, take the DB snapshot by running the following
(Remember to replace the targeted project name instead of the 2 instances of
‘kleber-tc’ in the below command):
node dgad-mongo-restore-cli -p lab-kleber-tc -u mongodb://localhost:27017/kleber-
tc -e preprod -c always -r https://mongo-snapshot.apps.dgadteamdev.com -a
dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm
With this command you would have cloned the mongo db instance as a connection
into your local Mongo DB workbench like Robo 3T
 Open the git cloned project on your IDE e.g. Visual Studio Code
 Add the local.js file in the config folder of the project
 Now from the visual studio code’s terminal again verify if the node version is
v8.9.1 by node -v 
 Now to run the project run npm run dev
 To view the launched website open http://localhost:8080 on the browser
_____________________________________________________________________
_____________________________________________________________________
____________________

Snapshot 

kleber-tc
node dgad-mongo-restore-cli -p lab-kleber-tc -u mongodb://localhost:27017/kleber-
tc -e preprod -c always -r https://mongo-snapshot.apps.dgadteamdev.com -a
dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm

uniroyaltires
node dgad-mongo-restore-cli -p lab-uniroyaltires -u
mongodb://localhost:27017/uniroyaltires -e preprod -c always -r https://mongo-
snapshot.apps.dgadteamdev.com -a dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm 

bfg-trucks
node dgad-mongo-restore-cli -p lab-bfg-trucks -u mongodb://localhost:27017/bfg-
trucks -e preprod -c always -r https://mongo-snapshot.apps.dgadteamdev.com -a
dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm

tier-3
node dgad-mongo-restore-cli -p lab-tier-3 -u mongodb://localhost:27017/tier-3 -e
preprod -c always -r https://mongo-snapshot.apps.dgadteamdev.com -a
dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm

BFGoodrich
Not required. The database is migrated automatically once you do a npm run dev

b2c-experience
node dgad-mongo-restore-cli -p lab-b2c-experience -u
mongodb://localhost:27017/b2c-experience -e preprod -c always -r https://mongo-
snapshot.apps.dgadteamdev.com -a dgad:KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm
_____________________________________________________________________
_____________________________________________________________________
____________________

Pick a ticket and create MR

 Navigate to the ticket/issue page


 Assign ticket to self
 Change label of ticket from ‘Dev - Ready For Analysis/Development’ to ‘Dev
- In Progress’
 Create merge request
 Assign the MR to yourself
 (Optional step coz this mostly happens automatically) Change label of MR
from ‘Dev - Ready For Analysis/Development’ to ‘Dev - In Progress’
 Open Checkout branch pop-up
 Open project in visual studio
 git branch (if not in master branch execute the next step)
 git checkout master
 git pull origin master
 git fetch origin
 git checkout -b "641-header-width-adaptation" "origin/641-header-width-
adaptation" - for e.g
 git branch
 If you’re in the desired ticket’s branch, then start coding right away

_____________________________________________________________________
_____________________________________________________________________
____________________

Preprod fixes / hot fixes

Create merge request and branch with ‘preprod’


Clone project
Confirm if you are in master branch
[If yes, checkout the newly created branch
e.g. git checkout 776-write-a-review-button-enable-for-locales-fr-nl-pl-de
git pull origin preprod]

OR
[git checkout preprod
git fetch
checkout the newly created branch
e.g. git checkout 776-write-a-review-button-enable-for-locales-fr-nl-pl-de
Now verify with git branch if in the desired branch
___________________________________________________________

___________________________________________________________

________________________________________

Launching project

npm run dev


npm run prod

To restore preprod data from DB for unit testing:


 Navigate to : kleber-tc/config/local.js
 Change - env: 'staging'
 To - env: 'preprod'
 Do a ‘npm run restore’
 Can do vice-a-versa as necessary

_____________________________________________________________________
_____________________________________________________________________
____________________

Launch links

kleber-tc
Local - http://localhost:8080/ (try http://localhost:8080/login and then use username
‘admin’ and the big pswd for authoring. Try http://nl-nl.localhost:8080/ for locale
specific website)
Review - (add local specific prefix like ‘en-gb-‘ before the link i.e. before ‘review-
lab-‘…etc)
English https://en-gb-review-lab-kleber-protaz.review.dgadteamdev.com/master
Netherland https://nl-nl-review-lab-kleber-protaz.review.dgadteamdev.com/master
France https://fr-fr-review-lab-kleber-protaz.review.dgadteamdev.com/master
Spain https://es-es-review-lab-kleber-protaz.review.dgadteamdev.com/master
Pre-Production -
UK https://en-gb-lab-kleber-tc.preprod.dgadteamdev.com/
Spain https://es-es-lab-kleber-tc.preprod.dgadteamdev.com/
Netherland https://nl-nl-lab-kleber-tc.preprod.dgadteamdev.com/
France https://fr-fr-lab-kleber-tc.preprod.dgadteamdev.com/
Production -
English https://www.kleber-tyres.com/
Netherland https://www.kleber.nl/
France https://www.kleber.fr/
Spain https://www.kleber.es/
DE https://www.kleber.de/
TR https://www.kleber.tr/
PL https://www.kleber.pl/

uniroyaltires
Local - http://en-ca.localhost:8080/
Pre-Production -
United States https://en-us-uniroyaltires.preprod.dgadteamdev.com/
Production -
Canada https://www.uniroyal.ca/
Canada https://www.fr.uniroyal.ca/
United States https://www.uniroyaltires.com/
Mexico https://www.uniroyal.com.mx/
Review - https://en-ca-review-lab-uniroy-g6h966.review.dgadteamdev.com (for
example)

bfg-trucks
Local - http://localhost:8080/
Review - 
Pre-Production - https://en-uk-bfg-trucks.preprod.dgadteamdev.com/
Production - 
Australia https://truck.bfgoodrich.com.au/
UK https://truck.bfgoodrich.co.uk/
Russia https://truck.bfgoodrich.ru/
Germany https://lkw.bfgoodrich.de/
Italy https://autocarro.bfgoodrich.it/
Spain https://camion.bfgoodrich.es/
France https://camion.bfgoodrich.fr/

tier-3
Local - http://localhost:8080/

BFGoodrich
Local - http://en-gb.localhost:8080/
Staging - https://en-gb-lab-bfgoodrich-com.staging.dgadteamdev.com/
Pre-Production -
United States
Production -
Canada
Review -
_____________________________________________________________________
_____________________________________________________________________
____________________

Credentials for draft mode

username: dgad
password: KtzDMbVpvgB6BKdfvZb3QpGPrSlW88zm

_____________________________________________________________________
_____________________________________________________________________
____________________

Push fix, Unit test, Edit MR and Review

 npm run lint:css


 npm run lint:js
 npm run changelog
>> Please specify a title for your change: Mention the title of the MR without the word
‘Resolve’
>> Please specify the author … prefixing it with "@"): @fexcy.francis
>> Please specify the index for the category of your change: Select from the list, e.g
Bug fix
>> Please specify the Merge Request ID associated: Mention the MR id, e.g 810
>> Do you validate the choices ? Select yes
>> Do you want to amend commit ? Select no
 git status
 git add .
 git status
 git commit -m “” (mention the exact changes here)
 git status
 git push
 Verify if all the files (including change-log file ending with .yml) are visible in
the MR’s changes tab
 Wait for the pipeline to build
 Unit test by clicking on ‘View app’/‘View previous app’ and authoring, if
necessary
 Edit MR
 Remove the WIP: prefix from the title / Remove the source branch
 Add what does the MR do
 Add how to test
 Add respective approvers to MR if necessary
 Tick both merge options
 Save changes
 Change label in MR from ‘Dev - In Progress’ to ‘Dev - In Review’
 Tick items from checklist (Leave ‘Tests added for this feature/bug’ and ‘Pair
review done with’ and ‘Related modules’)
 Change label in ticket from ‘Dev - In Progress’ to ‘Dev - In Review
 Ping on slack for necessary reviews
 After every level of review, update the labels of status in MR as well as the
ticket

_____________________________________________________________________
_____________________________________________________________________
____________________

Slack review templates

Resolve "Dealer Locator Config - Filter Section -> Front End Changes"
https://git.dgadteamdev.com/lab/uniroyaltires/merge_requests/230
Need 2 FE approvals @Ketan Bhate and @Rahul Gevaria

Resolve "EN-CA: Maker list should be in Upper case."


https://git.dgadteamdev.com/lab/uniroyaltires/merge_requests/216
Need FA and Design approvals @Sundeep Majumdar and @

Resolve "EN-CA: Maker list should be in Upper case."


https://git.dgadteamdev.com/lab/uniroyaltires/merge_requests/216
Need QA approval @Tishya Langer

Resolve "EN-CA: Maker list should be in Upper case."


https://git.dgadteamdev.com/lab/uniroyaltires/merge_requests/216
Ready to be merged @Ketan Bhate

Designers for approval


Uniroyal TC - @Thomas R
Kleber TC / Kleber AG / Taurus AG - @Justine
Tier3 Trucks / BFG Trucks - @antoine.vallee
Lead - @hugomrvt

_____________________________________________________________________
_____________________________________________________________________
____________________
Zeplin Credentials

Username: Aposdevteam
Password: #b:dREG{j4rP;g

_____________________________________________________________________
_____________________________________________________________________
____________________

Browser Stack credentials

swati.bathla@michelin.com
Michelin1324
_____________________________________________________________________
_____________________________________________________________________
____________________

You might also like