RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Table of Contents |
---|
Integration of Automatics test environment to any Vendor CI portal is explained .
Automatics supports Continuous Integration Automatics supports CI integration and validation of RDK builds. To integrate Automatics in any CI system, the CI portal has to follow REST communication with Automatics. CI portal will provide details like image name and other request params along with REST request.
Automatics has pre-configured filters for CI requests. If request params parameters from CI portal request matches with the filter, then the request is ACCEPTED. For ACCEPTED requests, Automatics will trigger test execution based on test data strategy configured against in the filter. The status of requests can be either ACCEPTED and REJECTED are available in Automatics Orchestration.or REJECTED.
For ACCEPTED requests, Automatics sends execution status to CI portal. The execution status will be sent initially when the test execution starts. And after the test execution, complete test execution result will be sent to CI portal.
CI Portal - Automatics Communication Diagram
draw.io Diagram border true diagramName CI_Flow simpleViewer false width links auto tbstyle top lbox true diagramWidth 449471 revision 1
CI Portal to Automatics
Automatics to CI Portal
{
"service":"CI_VERIFICATION",
"status":"SUCCESS",
"started_at":1623818325471,
"started_by":"CI PORTAL",
"duration":3618,
"result":{
"build_name":"image_name",
"type":"test_type",
"tests":[
{
"test_id":"Test case id",
"step":"Step No",
"description":"Test step description",
"status":"Test step status",
"reason":"Reason for failure",
"jira_id":"Jira Id"
}
]
},
"finished_at":1623818329089,
"test_jenkins_url":"http://{jenkins}/job/JOB1/612",
"boxes":[
{
"eSTB_mac":"estb_mac",
"eCM_mac":"ecm_mac",
"eSTB_ip":"estb_ip,
"eCM_ip":"ecm_ip"
}
]
}
5
CI portal should provide details such as image name and other details along with REST request. These parameters are configured in RDK E2E Filter.
Default filter parameters expected from CI request are shown below. These parameters except 'images' are configurable from Database. Hence Partner can configure their custom parameters in CI request.
Param Name | Description |
---|---|
images/buildName | [ image names in comma separated format ] |
buildTask | Build Task eg: CI. NG etc |
packageType | Image format |
changedComponents | [changed components in comma separated format ] |
buildType | Build Type |
branches | RDK build branch name |
Details on configuring RDK filters and RDK E2E Requests are available at Automatics Orchestration User Manual#RDKE2EManager
...