training-guides/doc/upstream-training/source/slides/workflow-using-sandbox.rst
Ian Y. Choi ba4479f903 [upstream] add Using Sandbox for Practice chapter
Launchpad sandbox is now available!

This commit adds a slide document to explain
how both Sandbox git repository and Launchpad is used
with illustrative screenshots.

Change-Id: Ie37cb2f0c707dbfd1de91a2011a13f1ee8f9ed7c
Co-Authored-By: SeongSoo Cho <nexusz99@gmail.com>
2016-10-18 09:12:34 +09:00

8.8 KiB

Using Sandbox for Practice

image

Sandbox repository

image

Sandbox Launchpad

image

Learning example with two Sandboxes

  • Using Sandbox repository and Launchpad, next number of slides will show the following steps:
    • Reporting a bug on Launchpad
    • Reading the bug description and assigning her/himself to fix the bug
    • Uploading a patch and inviting a peer as a reviewer
    • Reviewing the patch and giving feedback with comment
    • Uploading a revised patch with comment
    • Reviewing the revised patch and merging the patch

Note

- Try to emphazise the synergy of using repository integration with bug management to students!

Sandbox Launchpad Bug list

image

Report a bug - Summary

image

Report a bug - Details

  • (Real bug report needs detail descriptions.)

image

Bug Report Submission

  • Successful bug report submission

image

Bug Assigning

  • To notify working status on the bug to others

image

Bug Assigned

  • (Other people will think that someone working on the bug.)

image

Local branch creation

$ git checkout -b [BRANCH_NAME]

image

Working for commit

  • (As an example, a new file has been created using cat command.)

image

Checking work status

  • Current branch name information
  • File status working in the repository
$ git status

image

Add the file and commit

$ git add [FILE_PATH]
$ git commit -a
  • Writing 'Related-Bug: #[Bug number in Lanuchpad]' on message content

image

Commit log message

  • (Checking log message before uploading is always a nice idea.)
$ git log

image

Uploading to Gerrit

$ git review

image

Sandbox Status

  • Gerrit (openstack-dev/sandbox repository)

image

  • Launchpad (openstack-dev-sandbox)

image

Invite peer as Reviewer

  • We have seen in Gerrit
  • (Find reviewer by Gerrit username or e-mail address.)

image

Added as Reviewer

  • (Review invitation letter has been sent by e-mail.)

image

Reading review invitation

  • Review invitation letter

image

Reviewing with comment

  • Commenting

image

  • Draft comment was saved

image

Publish comment

  • (Draft comments are not visible to others.)

image

Review Score & Results

  • Score will reflect reviewer's opinion.

image

  • Results will be accumulated in History.

image

Check peer's Review

  • Seeing review score with written comments

image

  • Do not be frustrated! We can revise the current patchset to address comments.

Revising file(s)

  • Start work from latest patchset

image

Amending the commit

$ git commit -a --amend

image

Uploading a new patchset

  • Executing "git review" command will submit the amended commit.

image

  • New patchset was recorded in Gerrit.

image

Seeing new comment

  • Since the written comment is in the previous patchset, select patchset 1, and choose the file which has comment(s).

image

image

Comment reply

  • Answering reviewer's comment(s) is a good manner.
  • Click 'Reply' and write your message, or just 'Done' for "Done" message.

image

image

image

Publish comment reply

  • Draft comment publishment

image

  • (Ensure that your commment is being shown in History.)

image

Review again

  • Code-Review -1/0/+1 is for all OpenStack reviewers

image

  • Code-Review -2/+2 is for core reviewers (Sandbox repository is open)
  • The Gerrit review will be merged by +1 in Workflow

image

Merged!

  • Score status

image

  • History status

image

Good manners on Sandbox

  • Please create a few logical and different changes and submit new patchsets to those few changes in Sandbox repository for one bug in Launchpad.
  • Cleaning up activities are needed
    • Includes the deletion of uploaded files on Sandbox repository and change of bug status in Launchpad to "Invalid", "Won't Fix", or "Fix Released"
    • During upstream training, do not worry about this! Upstream training leaders will clean up after the training is finished.
    • However, please keep in mind that it is on your own responsibility.

Note

- Please do not let students create 10 or more changes. (This is not the intention of Sandboxes!) - http://docs.openstack.org/infra/manual/sandbox.html