Versions Compared

Key

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

The Big Picture of ACME Model Development

 All ACME developers should be familiar with the basics of development with git including cloning the ACME repo, making a branch, committing changes, and submitting a Pull Request on Github.

Group Leads coordinate and schedule development relevant to their group.   They should have developers assigned to work on features in the order necessary to meet ACME's deliverables.  Group leads should make sure developers are finishing their work and getting it merged to the ACME "master" branch.

...

A branch for every feature:  Group leads and developers should define units of code development that are big enough to be relevant to others, but simple enough that it can be called one feature (or perhaps a couple of highly-interdependent features) and make a branch for each unit of work.  These branches are called "feature branches" in our documentation.  The developer should make commits that are minimal atomic units of work to complete the feature that the branch seeks to implement.  This separation makes it easier to review and debug later.   New development should always start as branch from "master".  Avoid creating "large" branches that contain many features and touch dozens of files.   If a large branch is needed for some major development, the SE hub should be involved in planning.

"master" is always stable:  Our code development workflow ensure that master is always stable and can be used to start new development.

Focus on your branch:  While working on their branch, developers should focus on the work necessary to complete the branch and not worry about what else is going on.  In particular, there is almost never a need to "merge from master" or "stay current" with development going on in master or other branches.   If a developer thinks a merge from master or another branch is necessary to complete their work, they should check with an Integrator first.

Bug fix branches:  When a bug is found on master, the branch for developing a fix should start from the commit that introduced the bug.  This is so that any feature branch which also contains the bug can easily merge in the bug fix without having to merge in many other changes on that may have occurred while the feature branch was being developed.

Testing and Merging: When the feature branch is done, the developer performs relevant testing within the feature branchdeveloper makes sure the acme_developer test suite passes (or the failures are expected), issues a "pull request", and designates an Integrator.  The Integrator conducts the code review, merges the feature branch into the "next" integration branch and tests the feature within the latest version of ACME using the acme_integration suite.  The integrator and developer may need to work together to resolve any issues that arise from the code review or testing in the "next" branch.  The integrator will then merge the branch into master.  Once merged to master, the branch is complete and the developer can move on to other topics.

  • One feature per git branch (ideally)
  • One pull request (PR) per branch (absolutely)
  • Nothing gets added to "next" or "master" except by merging a branch through a PR (absolutely).

Bug fix branches:  When a bug is found on master, the branch for developing a fix should start from the commit that introduced the bug.  This is so that any feature branch which also contains the bug can easily merge in the bug fix without having to merge in many other changes on that may have occurred while the feature branch was being developed.