...
Start here: New Developer Workflow
Table of Contents |
---|
Anchor | ||||
---|---|---|---|---|
|
- 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
)Jira server JIRA serverId b14d4ad9-eb00-3a94-88ac-a843fb6fa1ca key NDS-174 - 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:
...
When a Requirements ticket is in the Active Sprint:
- The ticket is marked
IN PROGRESS
and
assignedPROGRESS
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
...
- 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 the general development workflows defined belowabove
- 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
...
- projects (via Account Creation Workflow)
- service specs (via Pull Requests made to ndslabs-specs)
...
- )
- Press "Fork" in GitHub UI
...
- git clone https://github.com/USERNAME/ndslabs.git
- gitt remote add upstream https://github.com/nds-org/ndslabs.git
...
- git checkout master
- git pull upstream master
...
Jira | ||||||
---|---|---|---|---|---|---|
|
...
- git checkout -b NDS-174
...
- git add path/to/modified/file.ext
...
- git commit -m "A comment about this commit"
...
- git push origin NDS-174
...
- 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"
...
- 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
...