* Removed FPGA from the documentation * Updated according to CVS-38225 * Added logo info to the Legal_Information, updated Ubuntu, CentOS supported versions * Updated supported Intel® Core™ processors list * Added new index page with overview * Changed CMake and Python versions * Fixed links * COnverted svg images to png * Added a label for nGraph_Python_API.md * fixed links * Fixed image
7.9 KiB
Development Flow for Adding New Changes to the Inference Engine
Develop Your Feature
- Create a branch based on the latest version of a target branch (
masterorrelease). Use the following branch naming:- feature// - stands for temporary work area for creating a feature or performing bug fixes
- scout/ - is used for shared development if several developers work on one feature IMPORTANT: Do not use long branch name, because it may lead to failed CI jobs on Windows. Name length must be less 40 characters.
- Commit changes on your branch and push it to remote.
Create a Merge Request
-
Go to the GitLab\* merge request page
-
Create a merge request by pressing on New Merge Request or Create merge request. Choose an
inference-engineproject from the drop-down list.

a. Fill the Title and Description fields with meaningful information. This information should be enough to understand the changes you made:
Use this template for the Title field. If you did not finish your work on current bug/feature, add
[WIP]to the beginning of the title:[Domain] Small description for merge request (can use first string from the commit message)Use domain from the following list:
- [IE COMMON] - if a solution impacts common Inference Engine functionality
- [IE EXTENSION]
- [IE PYTHON]
- [IE SAMPLES]
- [IE TESTS]
- [IE DOCS]
- [IE MKLDNN]
- [IE GNA]
- [IE CLDNN]
- [IE MYRIAD]
- [IE HDDL]
- [IE HETERO]
You can use several domains in one commit message. For example: [COMMON][MKLDNN]
Use this template to fill Description field:
<Multi-line description of the commit> JIRA: <url_to_jira_ticket> CI: <url_to_validation_result_in_CI> <url_to_passed_rebuilt_changes_in_CI>b. Add Milestone and Labels to the MR if it is possible.
c. If your work is finished, assign the MR to a reviewer. If it is in progress, assing the MR to yourself (
[WIP]case).Example of an MR:

Note
: When creating an MR, please remember that even a person who does not know what this feature/merge request stands for >should be able to understand the reasons why this feature/change was created.
-
Change the history of your branch:
a. Squash commits on your branch into one (you can have some number of logically separated commits if it is needed). Use the following template for commit message:
``` [Domain] Small description of commit Multiline commit additional comments: * additional comment 1 * additional comment 2 JIRA: CVS-xxxx ```Example of the commit message:

Note
: if there is no JIRA ticket for your task, you can leave this line empty.
b. Rebase your branch to the latest version of the target branch. The difference between the last validated version of the branch must be no more than one day.
c. Push your updates to the remote branch. You can use force push if needed, for example, when you rebase your branch to latest version of the target branch.
-
Add required people as reviewers of the MR. Please list appropriate GitLab accounts in the discussion section of the MR.
-
Run validation build (refer to the "Run tests under CI")
-
When review is complited and you have one or several Thumb up in your MR: a. Make sure that all comments are fixed and all discussions are resolved b. Run validation build again, make sure that all tests are passed, and update link to CI in the MR description c. Create cherry-picked MR if needed (refer to the "Create a Cherry-Picked MR (Optional)") and validate it by CI.
Example of an MR:

-
Reassign the MR to the someone from integration managers.
Create a Cherry-Picked MR (Optional)
-
If you need to merge your changes in both target branch (
releaseandmaster), create new merge request to another target branch containing cherry-pick with approved commit. Follow the rules above to create the MR (sections 1 and 2 in (Create a Merge Request)[#create-a-merge-request]), but add line "**cherry-picked from MR: !xxxx**" to the MR description and assign the MR to someine from the integration managers. -
Run validation build (refer to "Run tests under CI" section).
-
Assign the MR to an integration manager.
-
The integration manager will merge or close your MR.
Run Tests under CI
-
Go to the CI page: TeamCity
-
Click the Run Engineering Validation (if you want to merge your changes into
masterbranch) or Run Engineering Validation for XXXX RX Release branch (if you want merge changes intoreleasebranch):

-
If you have not committed anything to your branch for the past several days, you might not see your branch in the list. In this case, you can choose it in the properties of Run Engineering Validation task (if you want merge changes into
masterbranch) or Run Release Validation task (if you want merge changes intoreleasebranch). Click on Run button. On the third tab, choose your branch and click the Run Build:

-
Click on an arrow right after 1 queued. On a new dialog window, click on a build number. In this case, it is 1825:

-
Make sure that all tests are passed. If some test failed, see build log in TeamCity: choose failed build in dependencies, click on the result and go to Build log tab.
- If it looks like an infrastructure issue (for example, an absence of a software or a network issue), restart the build.
- If you think that your changes could not break the test, rebase your branch on latest version of
masterrestart build. If the build failed again, explore build history: an incorrect code might have merged into the target branch before branching that is not fixed till current moment. - If you have an issue with code style, run code style checks
<IE_repo>/scripts/run_code_check.shlocally to analyze the reason of failed CI jobs (see the picture below) and restart them if required:

Commit your changes.
Please add link to restarted build in MR description
Merge Changes to a Target Branch (master or release branches)
-
The
masterandreleasebranches are protected. Only integration managers can merge to these branches -
Assigned integration manager checks if all the requirements are met. If so, they can merge MR with the Merge button or manually.
-
An integration manager removes a branch if an MR author has set an appropriate flag for this MR in GitLab GUI.


