Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to raise review in CMF gerrit(Ex:meta-cmf-raspberrypi)

Step1Step 1:  Sign in the CMF gerrit (https://code.rdkcentral.com/r/q/status:open) and Go to below link,

...

 It shown as like below, Once we entered the repo name in filter search box.



Step2Step 2:  check the components/generic/rdk-oe/meta-cmf-raspberrypi repo in Repository Name column.

It shown as like below,


Step3Step 3: Once we clicked the meta-cmf-raspberrypi  repo , It will re-direct to  https://code.rdkcentral.com/r/admin/repos/components/generic/rdk-oe/meta-cmf-raspberrypi (like below screenshot).

...

So Committing the code changes, we need to select & copy the first option in above screenshot.

Step4Step 4:  Run the git Clone with commit-msg hook command. By default, it taking as "master" branch. So please mention the branch name before you are executing the git clone with commit-msg command in terminal.

Code Block
languagebash
themeDJango
titleclone with Commit-msg
$ git clone "https://code.rdkcentral.com/r/components/generic/rdk-oe/meta-cmf-raspberrypi" -b rdk-next && (cd "meta-cmf-raspberrypi" && gitdir=$(git rev-parse --git-dir); curl -o ${gitdir}/hooks/commit-msg https://code.rdkcentral.com/r/tools/hooks/commit-msg ; chmod +x ${gitdir}/hooks/commit-msg)
Cloning into 'meta-cmf-raspberrypi'...
remote: Counting objects: 151, done
remote: Total 10764 (delta 0), reused 10764 (delta 0)
Receiving objects: 100% (10764/10764), 2.58 MiB | 6.96 MiB/s, done.
Resolving deltas: 100% (4272/4272), done.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1792  100  1792    0     0   4876      0 --:--:-- --:--:-- --:--:--  4869
$ ls
meta-cmf-raspberrypi


Step5Step 5: Using "git branch" command to verify the branch  name

...

Step6: Add or modify the required files. Using "git status" command to verify the newly added or modified files(It shown as RED color in below screenshot).



Step7Step 7: Add the Modified /New files to git by using "git add" command.

Code Block
languagebash
themeDJango
$ git add <path_of_file> 

For example,
 git add recipes-ccsp/util/utopia/system_defaults


Step8Step 8:
 Using "git status" command to verify  the  current code changes(whether it added successfully or not). It shown as GREEN color in below screenshot


Step9Step 9:   Commit the code changes by using "git commit -sv" command. It goes to nano editor once we entered the commit command. It shown as below screenshot,

Commit Format will be below,

...

Code Block
languagebash
themeDJango
titleCommit Format
<Project-Ticket-NO> : <summary of the ticket>
<blank line>
Reason for change: <add the reason why you are committing these changes>
Test Procedure: < Test steps>
Risks: <may be Low/Medium/High>High - based on your changes impact>

For Example,
REFPLTB-910 : RPI-B Hostapd not starting on rdk-next with with change 50825

Reason for change: Issue fixed
Test Procedure: Hostapd process is running
Risks: Low


Step 10:  Push the code changes in CMF gerrit by using "git push " command.

Code Block
languagebash
themeDJango
titleGit Push
$ git push origin HEAD:refs/for/<branch-name>

For example,
git push origin HEAD:refs/for/rdk-next
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 4 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 3.28 KiB | 1.64 MiB/s, done.
Total 14 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (8/8)
remote: Processing changes: refs: 1, new: 1, done    
remote: commit 9cd2f93: warning: subject >50 characters; use shorter first paragraph
remote: 
remote: SUCCESS
remote: 
remote: New Changes:
remote:   https://code.rdkcentral.com/r/admin/repos/components/generic/rdk-oe/meta-cmf-raspberrypi/+/51014 REFPLTB-910 : ...
To https://code.rdkcentral.com/r/admin/repos/components/generic/rdk-oe/meta-cmf-raspberrypi
 * [new branch]      HEAD -> refs/for/rdk-next