Editing C&I Wiki Portal/ToolsDevelopmentGuideline

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 141: Line 141:
First, we need to install the PPAs.  Because this is based on Canonical's actual certification tooling instead of a fork, we need to add two PPAs:
First, we need to install the PPAs.  Because this is based on Canonical's actual certification tooling instead of a fork, we need to add two PPAs:


<pre>
<code>
sudo apt-add-repository ppa:opencompute-developers/ocp-certification-tools-ppa
sudo apt-add-repository ppa:opencompute-developers/ocp-certification-tools-ppa
sudo apt-add-repository ppa:hardware-certification/public
sudo apt-add-repository ppa:hardware-certification/public
</pre>
</code>


Next, we need to update the apt cache:
Next, we need to update the apt cache:


<pre>sudo apt update</pre>
<code>sudo apt update</code>


And finally, install the packages:
And finally, install the packages:


<pre>sudo apt-get install opencompute-certification</pre>
<code>sudo apt-get install opencompute-certification</code>


==== Interaction ====
==== Interaction ====
Line 313: Line 314:


== Submitting Code to the Project ==
== Submitting Code to the Project ==
The following will cover how to submit code once you've made changes to your branch.  The examples here assume you have already performed the following steps:
#Branched lp:opencompute/opencompute-testing.
#Made changes or additions
#Tested your changes or additions
#Committed your changes or additions
=== Launchpad ===
=== Launchpad ===
As noted early on, you will need to be logged in via bzr to submit code.  This is accomplished using the '''bzr launchpad-login''' command:
<pre>
bzr launchpad-login <YOUR_LAUNCHPAD_USERNAME>
</pre>
You will likely also need to have created and submitted an SSH key to Launchpad to use for submissions.  This is explained here:
https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair
=== Pushing Changes ===
=== Pushing Changes ===
Once you have committed your changes, you need to push them to YOUR OWN branch on Launchpad.  To do so, cd into your branch and do the following:
<pre>
bzr push lp:~<YOUR LP USERNAME>/opencompute/<YOUR BRANCH NAME>
</pre>
Example:
<pre>
bzr push lp:~bladernr/opencompute/ocp-cert-cleanup
</pre>
=== Merge Requests ===
=== Merge Requests ===
Once you have pushed your branch to Launchpad, you need to make a merge request.  To do so you need to do the following things:
# In a web browser, go to http://code.launchpad.net/~YOUR_LAUNCHPAD_USERNAME
# Click on the name of the branch you just pushed
# Under '''Branch Merges''' click on '''Propose for merging'''
# Under '''Target Branch''' select '''Other''' and enter '~opencompute-developers/opencompute/opencompute-testing'
# In the Description text box, enter a summary of the changes you made
# Click the '''Propose Merge''' button at the bottom of that page
This is submit your merge request.  At this point, it will be reviewed, commented on, approved or sent back for fixing.


== Questions? ==
== Questions? ==
=== OCP Ready or OCP Certification===
=== OCP Ready or OCP Certification===
* Certification Project Team Mailing List: http://lists.opencompute.org/mailman/listinfo/opencompute-ci
* [http://freenode.net Freenode IRC Servers] #ocp-ci
=== CheckboxNG or Plainbox ===
=== CheckboxNG or Plainbox ===
* [http://freenode.net Freenode IRC Servers] #checkbox
* http://launchpad.net/checkbox
=== Further Reading, Resources, Etc ===
* [https://help.launchpad.net/ Launchpad Help]
* [http://wiki.bazaar.canonical.com/BzrSupport Bazaar (bzr) Help]
* [http://doc.bazaar.canonical.com/en/ Bazaar (bzr) Documentation]
Please note that all contributions to OpenCompute may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCompute:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)