Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Latest commit

 

History

History
99 lines (83 loc) · 5.89 KB

CONTRIBUTION.md

File metadata and controls

99 lines (83 loc) · 5.89 KB

CONTRIBUTION GUIDELINES FOR PBENCH

1. Forking the repository:

Image

Forking a repository allows you to freely experiment with changes without affecting the original project. Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea.

2. Cloning

Cloning is used to create a local copy of the repository. It takes only one command in the terminal to clone the repository. git clone https://github.com/distributed-system-analysis/pbench.git

3. Choosing an issue to work upon

  1. Go to the issues section, to find a list of open issues.

Image

  1. Select the issues you are interested to work upon based upon the labels and descriptions. Image
  2. It is a good practice to assign the issue to yourself to let others know you're working upon it. Image

Making changes to the codebase

Add, Commit and Push

  • Follow these commands to push the changes to your branch.
git add .
git commit -m "Issue solved"
git push origin branch_name 

Conventions on commits, PRs, and overall git best practices.

  • Commit messages should have a short description (50 - 70 characters) followed by a longer format description of the changes below if needed. You’ll also notice each line is formatted for a specific length in the longer format description. For example: Extend auditing to incoming, results, and users
The server audit is now applied to the incoming, results, and users
directory hierarchies.  Any unpacked tar ball should now be compre-
hensively checked to see that all is in the correct place.

The test-20 unit test gold file holds an example of an audit report
covering all the possible outputs it can emit.  Each unit test runs
the report as well, and they have been updated accordingly.

Opening a pull request

  1. If there are multiple commits, Squash down the commits to one

  2. Commit the changes.

  3. Click on New Pull Request

  4. Write appropriate Pull Request Title stating the fix. a. Use present tense (ex. Fixes, Changes, Fixing, Changing..)

  5. References the issue that the PR is fixing with “Fixes #issue_number” in the description.

  6. Provide a detailed description (at least 50 - 70 characters) of the changes.(If UI, add screenshots or gif)

  7. Make sure that the branches can be automatically merged(otherwise rebase the PR with master) and then click : Create pull request . Image

  8. Assign the PR to yourself and add appropriate labels.

  9. Add “WIP” label if the work is still in progress.

  10. Add "DO NOT MERGE" label if the work is not needed to be merged or there is no agreement on the work yet.

  11. Make sure to add Milestone to the PR to mention specific release.

  12. Request for review once the work is ready for getting reviewed Image

Creating an Isssue

  1. Make sure to add proper details to the Issue raised
  2. Upload screenshot(if possible) in dashboard issues
  3. Apply proper labels to the Issue
  4. Make sure to add Milestone and Project to the issue to mention specific release.
  5. Try to actively respond to the communication in case of comments in the same issue.

Reviewing a pull request

  1. Go to Files changed and check for the fixes proposed by the Pull Request
  2. Check for certain general criteria: a. The PR has no merge conflicts with the base branch b. The commits are squashed into one (if multiple) c. There is proper indentation and alignment d. No additional lines are added unnecessarily e. The code has proper explanation with the comment lines (If required) f. Do not merge the PR with "DO NOT MERGE" or "WIP" label.
  3. In case of the requirement of running the changes in the PR in local system follow the mentioned process:
  • To fetch a remote PR into your local repo,
git fetch origin pull/ID/head:BRANCHNAME
where ID is the pull request id and BRANCHNAME is the name of the new branch that you want to create. Once you have created the branch, then simply
git checkout BRANCHNAME

-If modification is required, then either “Request for changes” or add “General comments” for your feedback