Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 4.13 KB

CONTRIBUTING.md

File metadata and controls

77 lines (59 loc) · 4.13 KB

Contributing

Contributions to the Aerie Lander repository should abide by the following guidelines:

Building Aerie Lander

Aerie uses Gradle as its build system. You do not need to install Gradle explicitly -- use the Gradle wrapper included in the repository root, e.g. ./gradlew build.

Examples of common Gradle tasks:

  • build: Compile, test, and assemble all subprojects.
  • classes: Compile all Java subprojects.
  • test: Build and test all subprojects.
  • tasks: List all tasks known to Gradle.
  • {project}:test: Build and test the named subproject.

IntelliJ IDEA

If you use IntelliJ IDEA, you can simply import the Aerie repository into IntelliJ as a Gradle project. No additional configuration is required.

Branches

  • Branches should be named feature/AERIE-XXX--short-desc or hotfix/short-desc, where "AERIE-XXX" is the associated Jira ticket.
    • If a branch is not associated with a ticket, either it's a hotfix or it needs a ticket.
    • Hotfixes should be used sparingly. For instance, a bug introduced in the same release cycle (or discovered very shortly after merging a PR) can be hotfixed. Bugs that a user may have been exposed to should be logged as tickets.

Pull Requests

  • Pull requests should be made against develop, using the pull request template in .github/pull_request_template.md.

    • GitHub will automatically populate a new PR with this template.
    • Please fill out all information in the PR header, as well as any information in the subsections.
    • Every PR should include a summary of changes that gives reviewers an idea of what they should pay attention to.
    • Any unused or empty subsection may be removed.
  • PR branches should have as "clean" of a history as possible.

    • Each commit should present one change or idea to a reviewer.
    • Commits that merely "fix up" previous commits should be interactively rebased and squashed into their targets.
  • Prefer the use of git rebase.

    1. git rebase git rebase actually rebases your branch from the current development branch's endpoint. This localizes conflicts to the commits at which they actually appear, though it can become complicated when there are more than a few conflicts.
    2. git merge git merge pulls in all the updates that your branch does not have, and combines them with the updates you have made in a single merge commit. This allows you to deal with any and all conflicts at once, but information such as when conflicts originated is lost.

    For more info on git merge vs git rebase see here.

  • Before merging a PR, the following requirements must be met. These requirements ensure that history is effectively linear, which aids readability and makes git bisect more useful and easier to reason about.

    • At least one (perferably two) reviewers have approved the PR.
    • No outstanding review comments have been left unresolved.
    • The branch passes continuous integration.
    • The branch has been rebased onto the current develop branch.
  • The "Squash and merge" and "Rebase and merge" buttons on GitHub's PR interface should not be used. Always use the "Merge" strategy.

    • In combination with the restrictions above, this ensures that features are neatly bracketed by merge commits on either side, making a clear hierarchical separation between features added to develop and the work that went into each feature.

Coding Conventions

A coding conventions document exists to explain peculiarities and assist in onboarding.

tl;dr All development should correspond to a JIRA ticket, and branch names and PRs should include the ticket name.

Write-Ups About Good Commit/PR/Code Review Practice

The project relies on the ability to effectively query the Git history