KubeRocketCI Project Rules. Working ProcessβοΈ
This page contains the details on the project rules and working process for KubeRocketCI team and contributors. Explore the main points about working with GitHub, following the main commit flow, as well as the details about commit types and message below.
Project RulesβοΈ
Before starting the development, please check the project rules:
-
It is highly recommended to become familiar with the GitHub flow. For details, please refer to the GitHub official documentation and pay attention to the main points:
a. Creating pull requests in GitHub.
b. Resolution of Merge Conflict.
c. Comments resolution.
d. One GitHub task should have one Pull Request (PR) if it doesn't change multiple operators. If there are many changes within one PR, amend the commit.
-
Only the Assignee is responsible for the PR merger and Jira task status.
-
Every PR should be merged in a timely manner.
-
Log time to Jira ticket.
Working ProcessβοΈ
With KubeRocketCI, the main workflow is based on the getting a Jira task and creating a Pull Request according to the rules described below.
Workflow
Get Jira task β implement, verify by yourself the results β create Pull Request (PR) β send for review β resolve comments/add changes, ask colleagues for the final review β track the PR merge β verify by yourself the results β change the status in the Jira ticket to CODE COMPLETE or RESOLVED β share necessary links with a QA specialist in the QA Verification channel β QA specialist closes the Jira task after his verification β Jira task should be CLOSED.
Commit Flow
-
Get a task in the Jira/GitHub dashboard. Please be aware of the following points:
a. Every task has a reporter who can provide more details in case something is not clear.
b. The responsible person for the task and code implementation is the assignee who tracks the following:
- Actual Jira task status.
- Time logging.
- Add comments, attach necessary files.
- In comments, add link that refers to the merged PR (optional, if not related to many repositories).
- Code review and the final merge.
- MS Teams chats - ping other colleagues, answer questions, etc.
- Verification by a QA specialist.
- Bug fixing.
c. Pay attention to the task Status that differs in different entities, the workflow will help to see the whole task processing:
d. There are several entities that are used on the KubeRocketCI project: Story, Improvement, Task, Bug.
a. Every task has a reporter who can provide more details in case something is not clear.
b. The responsible person for the task and code implementation is the assignee who tracks the following:
- Actual GitHub task status.
- Add comments, attach necessary files.
- In comments, add link that refers to the merged PR (optional, if not related to many repositories).
- Code review and the final merge.
- MS Teams chats - ping other colleagues, answer questions, etc.
- Verification by a QA specialist.
- Bug fixing.
c. If the task is created on your own, make sure it is populated completely. See an example below:
-
Implement feature, improvement, fix and check the results on your own. If it is impossible to check the results of your work before the merge, verify all later.
-
When committing, use the pattern: commit type: Commit message (#GitHub ticket number).
a. commit type:
feat
: (new feature for the user, not a new feature for build script)fix
: (bug fix for the user, not a fix to a build script)docs
: (changes to the documentation)style
: (formatting, missing semicolons, etc; no production code change)refactor
: (refactoring production code, eg. renaming a variable)test
: (adding missing tests, refactoring tests; no production code change)chore
: (updating grunt tasks etc; no production code change)!
: (added to other commit types to mark breaking changes) For example:feat!: Add ingress links column into Applications table on stage page (#77) BREAKING CHANGE: Ingress links column has been added into the Applications table on the stage details page
b. Commit message:
-
brief, for example:
fix: Remove secretKey duplication from registry secrets (#63)
or
-
descriptive, for example:
feat: Provide the ability to configure hadolint check (#88)
* Add configuration files .hadolint.yaml and .hadolint.yml to stash
Note
It is mandatory to start a commit message from a capital letter.
c. GitHub tickets are typically identified using a number preceded by the # sign and enclosed in parentheses.
Note
Make sure there is a descriptive commit message for a breaking change Pull Request. For example:
feat!: Add ingress links column into Applications table on stage page (#77)
BREAKING CHANGE: Ingress links column has been added into the Applications table on the stage details page
-
-
Create a Pull Request, for details, please refer to the Code Review Process:
Note
If a Pull Request contains both new functionality and breaking changes, make sure the functionality description is placed before the breaking changes. For example:
feat!: Update Gerrit to improve access
- Implement Developers group creation process
- Align group permissions
BREAKING CHANGES: Update Gerrit config according to groups