All documentation pertaining to how developers can contribute to NDS Labs.
New to NDS Labs?
Start here: New Developer Workflow
Overview
- Git Workflows: Forking workflow with feature branches
- Fork repo (if applicable)
- Press "Fork" in GitHub UI
- Clone repo to make changes locally (if applicable)
- git clone https://github.com/USERNAME/ndslabs.git
- git remote add upstream https://github.com/nds-org/ndslabs.git
- Ensure correct branch and sync with upstream before making additional changes
- git checkout master
- git pull upstream master
- Create a branch named after the Story (for example
NDS-174
-
Getting issue details...
STATUS
)
- git checkout -b NDS-174
- Stage any modified files for commit
- git add path/to/modified/file.ext
- Commit any modifications to your local branch with a comment
- git commit -m "A comment about this commit"
- Push any local commits back up to your remote branch (your forked repo)
- git push origin NDS-174
- When you are satisfied with your changes, create a Pull Request
- Press "Pull Request" in GitHub UI
- Scroll down and click on the "Files Changed" tab to briefly review your own Pull Request
- Ensure that all changes made on this branch were intentional
- Name your Pull Request after the Story / branch (i.e. "NDS-174: User can access console of running service via CLI")
- Enter a short description of any modifications, additions, or removals from the codebase
- If applicable, include a Test Case that the reviewer should run before merging the Pull Request
- Click "Create Pull Request"
- Fork repo (if applicable)
- Docker Workflows: Upload any necessary test images to Docker Hub
- Build test image
- docker build -t ndslabs/apiserver:dev .
- Tag test image with Story id (i.e. NDS-174)
- docker tag ndslabs/apiserver:dev ndslabs/apiserver:NDS-174
- Push test image to Docker Hub
- docker push ndslabs/apiserver:NDS-174
- Build test image
- Kubernetes Workflows: Sometimes used in testing new services or the API server
JIRA Workflows
To handle issue and project tracking we use JIRA, which currently offers several different Issue Types when creating new tickets.
The expected usage of each Issue Type is outlined briefly in the workflows below:
Addition Workflows
Issue Types Used:
- Wish / New Feature: a high-level non-technical description of desired business logic
- Requirements: a "discussion" ticket describing a new feature that needs more of its technical description fleshed out
- Epic: a high-level technical description of desired software functionality or infrastructure containing multiple Story tickets
- Note: Epic issues do not get explicitly added to Sprint
- Story: a use case describing an example usage of a small piece of newly desired functionality
Possible Stages:
- A New Feature or Wish ticket is filed describing the new feature at a high-level without mandating any particular technical specifications
- A Requirements ticket is created if we do not have enough information to break the feature down into small pieces of technical work
- A Story ticket is filed from the information resulting from the Requirements discussion
- If multiple Story tickets encompass the work needed, these tickets are grouped under an over-arching Epic ticket
New Feature / Wish Workflow
When a Wish or New Feature ticket is in the Active Sprint:
- The ticket is marked
IN PROGRESS
and assigned to a developer, who conducts the meeting - The feature is broken down into a digestable number of enumerated use cases
- If one or more use cases require more detail, a Requirements ticket is filed
- The use cases are filed as Story tickets and associated to an Epic
- The resulting Story tickets are then discussed at the next Sprint Planning meeting
Deliverables:
- New tickets describing the next steps necessary to enable the feature described
Requirements Workflow
When a Requirements ticket is in the Active Sprint:
- The ticket is marked
IN PROGRESS
and assigned to a developer, who conducts the meeting - A meeting is created in Outlook to contact interested parties (i.e. NDS Labs Dev team, Nebula team, other NDS-affiliated software teams, etc.)
- The requirements are discussed with the development team and any interested parties
- Any information resulting from the discussion is filed into a Confluence wiki page
- The information from the Confluence page generates use cases
- If applicable, a new Epic is created to encompass the use cases presented
- The use cases are filed as Story tickets and associated to an Epic
- The ticket is marked
IN REVIEW
and assigned to another team member for review- The reviewer may make any changes or comments that they desire and discuss with the team
- The ticket is marked
RESOLVED
orCLOSED
- The resulting Epic / Story tickets are then discussed at the next Sprint Planning meeting
Deliverables:
- New Epic / Story tickets describing the steps necessary to enable the use cases described
Story Workflow
When a Story ticket is in the Active Sprint:
- The ticket is marked
IN PROGRESS
and assigned to a developer (referred to hereafter as "the developer") - The developer does the work necessary to enable the use case described in the ticket
- Follow the general development workflows defined above
- Comment on the Story with links to any deliverables that should be reviewed / tested
- The ticket is marked
IN REVIEW
and assigned to a tester (referred to hereafter as "the tester") - The tester reviews the deliverables of the Story:
- Review any related Pull Requests
- Review any Test Cases / Documentation provided
- Review any new tickets resulting from the work done
- Pull and run any new Docker images against the Test Cases provided
- The tester selects
Review Accepted
and the ticket is marked asRESOLVED
- The tester merges any outstanding Pull Requests related to this ticket
- The developer switches back to their master branch and syncs with the new changes
- If applicable, the developer builds and pushes a new "latest" Docker image for the API / UI incorporating the new changes
- The developer selects
CLOSE TICKET
and the ticket is marked asCLOSED
Deliverables:
- Pull Request(s) to GitHub
- New Image(s) / Tag(s) in Docker Hub
- Test Case(s) demonstrating the use case fulfilled by the story
- Documentation describing the technical aspects of the solution
Modification Workflows
Improvement Workflow
Issue Types Used:
Improvement: a suggestion to utilize new techniques or technologies to improve overall performance or maintainability
Bug Workflow
Issue Types Used:
Bug: a previously completed use case or edge case that is malfunctioning according to its defined behavior
Miscellaneous Workflows
Task Workflow
Issue Types Used:
- Task: work that is not driven by a new use case containing zero or more Sub-Issue tickets (i.e. collaboration with other teams)
- Technical Task: a small piece of technical work that is not driven by a new use case
- Sub-Task: a small piece of outreach or non-technical work / discussion that is not driven by a new use case
Used to Track:
- events requiring special attention (i.e. hackathon, developer tutorial, etc.)
Comment Workflow
Issue Types Used:
- Comment: track miscellaneous information / feedback / requests that do not match other issue types:
Used to Track:
- new sites / groups / contacts wishing to utilize the NDS Labs platform (i.e. Odum, TACC, SDSC, etc.)
- similar technologies that we might look at for reference (i.e. JujuCharms, ProfitBricks, etc.)
- new or existing technologies that might be leveraged to further NDS Labs
Request Workflow
Issue Types Used:
- Processing Request: track the creation of new entities in production instance of NDS Labs
Used To Track:
- projects (via Account Creation Workflow)
- service specs (via Pull Requests made to ndslabs-specs)