ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 5 | .. _sdcore-testing: |
| 6 | |
| 7 | Test frameworks and coverage |
| 8 | ============================ |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 9 | |
| 10 | Test Framework |
| 11 | -------------- |
| 12 | |
| 13 | NG40 |
| 14 | """" |
| 15 | |
| 16 | NG40 tool is used as RAN emulator in SD-Core testing. NG40 runs inside a VM |
| 17 | which is connected to both Aether control plane and data plane. In testing |
| 18 | scenarios that involve data plane verification, NG40 also emulates a few |
| 19 | application servers which serve as the destinations of data packets. |
| 20 | |
| 21 | A typical NG40 test case involves UE attaching, data plane verification and |
| 22 | UE detaching. During the test NG40 acts as UEs and eNBs and talks to the |
| 23 | mobile core to complete attach procedures for each UE it emulates. Then NG40 |
| 24 | verifies that data plane works for each attached UE by sending traffic between |
| 25 | UEs and application servers. Before finishing each test NG40 performs detach |
| 26 | procedures for each attached UE. |
| 27 | |
| 28 | Test cases |
| 29 | '''''''''' |
| 30 | |
| 31 | Currently the following NG40 test cases are implemented: |
| 32 | |
| 33 | 4G Tests: |
| 34 | |
| 35 | 1. ``4G_M2AS_PING_FIX`` (attach, dl ping, detach) |
| 36 | 2. ``4G_M2AS_UDP`` (attach, dl+ul udp traffic, detach) |
| 37 | 3. ``4G_M2AS_TCP`` (attach, release, service request, dl+ul tcp traffic, detach) |
| 38 | 4. ``4G_AS2M_PAGING`` (attach, release, dl udp traffic, detach) |
| 39 | 5. ``4G_M2AS_SRQ_UDP`` (attach, release, service request, dl+ul udp traffic) |
| 40 | 6. ``4G_M2CN_PS`` (combined IMSI/PTMSI attach, detach) |
| 41 | 7. ``4G_HO`` (attach, relocate and dl ping, detach) |
| 42 | 8. ``4G_SCALE`` (attach, dl ping, detach with multiple UEs) |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 43 | 9. ``4G_3_APPS`` (4G attach-detach with ICMP/UDP Data test with 3 applications) |
| 44 | 10. ``4G_SCALE_HO`` (attach, Handover, dl ping, detach with multiple UEs) |
| 45 | 11. ``4G_ATTACH_STRESS`` (attach-detach 200 times consecutively) |
| 46 | 12. ``4G_TAU`` (attach, Tracking Area Update, detach) |
Ruchit Bawa | cb6e886 | 2022-03-07 20:18:16 +0530 | [diff] [blame^] | 47 | 13. ``4G_M2AS_UDP_TRAFFIC_CONFORMANT_TO_MAX_RATE`` (attach, UDP Data with correct qos bandwidth, detach) |
| 48 | 14. ``4G_M2AS_UDP_TRAFFIC_EXCEEDING_MAX_RATE`` (attach, UDP Data with exceeding bandwidth, detach) |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 49 | |
| 50 | 5G Tests: |
| 51 | |
| 52 | 1. ``5G_SA_Register_Deregister`` (registration, deregistration) |
| 53 | 2. ``5G_SA_Register`` (registration, session establishment, deregistration) |
| 54 | 3. ``5G_SA_Release`` (registration, session establishment, dl ping, release, deregistration) |
| 55 | 4. ``5G_SA_Activate_Release`` (registration, session establishment, dl ping, release, service request, |
| 56 | dl ping, deregistration) |
| 57 | 5. ``5G_SA_Scale`` (registration, session establishment, dl ping, deregistration for multiple UEs) |
| 58 | 6. ``5G_SA_M2AS_ICMP`` (registration, session establishment, dl ping, deregistration) |
| 59 | 7. ``5G_SA_M2AS_TCP`` (registration, session establishment, dl+ul tcp traffic, deregistration) |
| 60 | 8. ``5G_SA_M2AS_UDP`` (registration, session establishment, dl+ul udp traffic, deregistration) |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 61 | 9. ``5G_SA_SCALE`` (registration, session establishment, dl+ul udp traffic, deregistration with multiple UEs) |
| 62 | 10. ``5G_SA_Error_Malformed_Reg_Type`` (Error Scenario: registration with malformed registration type) |
| 63 | 11. ``5G_SA_Error_Auth_response_with_invalid_RES`` (Error Scenario: Invalid RES sent in Auth Response) |
Ruchit Bawa | cb6e886 | 2022-03-07 20:18:16 +0530 | [diff] [blame^] | 64 | 12. ``5G_SA_M2AS_UDP_TRAFFIC_CONFORMANT_TO_MAX_RATE`` |
| 65 | (registration, UDP Data with correct qos bandwidth, deregistration) |
| 66 | 13. ``5G_SA_M2AS_UDP_TRAFFIC_EXCEEDING_MAX_RATE`` (registration, UDP Data with exceeding bandwidth, deregistration) |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 67 | |
| 68 | All the test cases are parameterized and can take arguments to specify number |
| 69 | of UEs, attach/detach rate, traffic type/rate etc. For example, ``4G_SCALE`` |
| 70 | test case can be configured as a mini scalability test which performs only 5 |
| 71 | UE attaches in a patchset pre-merge test, while in the nightly tests it can |
| 72 | take different arguments to run 10K UE attaches with a high attach rate. |
| 73 | |
| 74 | Test suites |
| 75 | ''''''''''' |
| 76 | |
| 77 | The test cases are atomic testing units and can be combined to build test |
| 78 | suites. The following test suites have been built so far: |
| 79 | |
| 80 | 1. ``functionality test suite`` verifies basic functionality of the |
| 81 | mobile core. 4G functionality suite runs 4G test case #1 to #8 including |
| 82 | ``4G_SCALE`` which attaches 5 UEs with 1/s attach rate. 5G functionality |
| 83 | suite runs 5G test case #1 to #8 including ``5G_SA_Scale`` which attaches |
| 84 | 100 UEs with 1/s attach rate. |
| 85 | 2. ``scalability test suite`` tests the system by scale and verifies |
| 86 | system stability. It runs ``4G_SCALE`` (or ``5G_SA_Scale``) which attaches |
| 87 | a large number of UEs with high attach rate (16k UEs with 100/s rate on 4G |
| 88 | CI pod, 1k UEs with 10/s rate on 4G staging pod, and 1k UEs with 1/s rate |
| 89 | on 5G CI pod). |
| 90 | 3. ``performance test suite`` measures performance of the control and |
| 91 | data plane. It runs ``4G_SCALE`` multiple times with different attach rates |
| 92 | to understand how the system performs under different loads. |
| 93 | |
| 94 | Robot Framework |
| 95 | """"""""""""""" |
| 96 | |
| 97 | Robot Framework was chosen to build test cases that involve interacting with |
| 98 | not only NG40 but also other parts of the system. In these scenarios Robot |
| 99 | Framework acts as a high level orchestrator which drives various components |
| 100 | of the system using component specific libraries including NG40. |
| 101 | |
| 102 | Currently the ``Integration test suite`` is implemented using Robot |
| 103 | Framework. In the integration tests Robot Framework calls the ng40 library to |
| 104 | perform normal attach/detach procedures. Meanwhile it injects failures into |
| 105 | the system (container restarts, link down etc.) by calling functions |
| 106 | implemented in the k8s library. |
| 107 | |
| 108 | The following integration tests are implemented at the moment: |
| 109 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 110 | 4G Tests: |
| 111 | |
| 112 | 1. Subscriber Attach with HSS Restart (attach, Restart HSS, detach) |
| 113 | 2. Subscriber Attach with SPGWC Restart (attach, Restart SPGWC, detach) |
Ruchit Bawa | cb6e886 | 2022-03-07 20:18:16 +0530 | [diff] [blame^] | 114 | 3. Subscriber Attach with pfcp-agent Restart (attach, Restart pfcp-agent, detach) |
| 115 | 4. Subscriber Attach Detach HSS Restart Attach Detach (attach-detach, Restart HSS, attach-detach) |
| 116 | 5. Subscriber Attach Detach SPGWC Restart Attach Detach (attach-detach, Restart SPGWC, attach-detach) |
| 117 | 6. Subscriber Attach Detach MME Restart Attach Detach (attach-detach, Restart MME, attach-detach) |
| 118 | 7. Subscriber Attach Detach pfcp-agent Restart Attach Detach (attach-detach, Restart pfcp-agent, attach-detach) |
| 119 | 8. Measure Downtime for HSS Restart (Verifies if HSS restarts within acceptable time limit) |
| 120 | 9. Measure Downtime for SPGWC Restart (Verifies if SPGWC restarts within acceptable time limit) |
| 121 | 10. Measure Downtime for MME Restart (Verifies if MME restarts within acceptable time limit) |
| 122 | 11. Measure Downtime for pfcp-agent Restart (Verifies if pfcp-agent restarts within acceptable time limit) |
| 123 | 12. Context Replacement at MME (Verifies context replacement at MME after NG40 restart) |
| 124 | 13. Context Replacement at SPGWC (Verifies context replacement at SPGWC after MME restart) |
| 125 | 14. Context Replacement at UPF (Verifies context replacement at UPF after SPGWC restart) |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 126 | |
| 127 | 5G Tests: |
| 128 | |
| 129 | 1. ``Subscriber Register-Deregister with SMF Restart`` (registration, SMF Restart, deregistration) |
| 130 | 2. ``Subscriber Register-Deregister with AUSF Restart`` (registration, AUSF Restart, deregistration) |
| 131 | 3. ``Subscriber Register-Deregister with NRF Restart`` (registration, NRF Restart, deregistration) |
| 132 | 4. ``Subscriber Register-Deregister with NSSF Restart`` (registration, NSSF Restart, deregistration) |
| 133 | 5. ``Subscriber Register-Deregister with PCF Restart`` (registration, PCF Restart, deregistration) |
| 134 | 6. ``Subscriber Register-Deregister with UDR Restart`` (registration, UDR Restart, deregistration) |
Ruchit Bawa | cb6e886 | 2022-03-07 20:18:16 +0530 | [diff] [blame^] | 135 | 7. ``Subscriber Register-Deregister with UDM Restart`` (registration, UDM Restart, deregistration) |
| 136 | 8. ``Subscriber Register-Deregister AMF Restart Subscriber Register-Deregister`` (registration |
| 137 | -deregistration, AMF Restart, registration-deregistration) |
| 138 | 9. ``Subscriber Register-Deregister SMF Restart Subscriber Register-Deregister`` (registration |
| 139 | -deregistration, SMF Restart, registration-deregistration) |
| 140 | 10. ``Subscriber Register-Deregister AUSF Restart Subscriber Register-Deregister`` (registration |
| 141 | -deregistration, AUSF Restart, registration-deregistration) |
| 142 | 11. ``Subscriber Register-Deregister NRF Restart Subscriber Register-Deregister`` (registration |
| 143 | -deregistration, NRF Restart, registration-deregistration) |
| 144 | 12. ``Subscriber Register-Deregister NSSF Restart Subscriber Register-Deregister`` (registration |
| 145 | -deregistration, NSSF Restart, registration-deregistration) |
| 146 | 13. ``Subscriber Register-Deregister PCF Restart Subscriber Register-Deregister`` (registration |
| 147 | -deregistration, PCF Restart, registration-deregistration) |
| 148 | 14. ``Subscriber Register-Deregister UDM Restart Subscriber Register-Deregister`` (registration |
| 149 | -deregistration, UDM Restart, registration-deregistration) |
| 150 | 15. ``Subscriber Register-Deregister UDR Restart Subscriber Register-Deregister`` (registration |
| 151 | -deregistration, UDR Restart, registration-deregistration) |
| 152 | 16. ``Measure Downtime for SMF Restart`` (Verifies if AMF restarts within acceptable time limit) |
| 153 | 17. ``Measure Downtime for SMF Restart`` (Verifies if SMF restarts within acceptable time limit) |
| 154 | 18. ``Measure Downtime for AUSF Restart`` (Verifies if AUSF restarts within acceptable time limit) |
| 155 | 19. ``Measure Downtime for NRF Restart`` (Verifies if NRF restarts within acceptable time limit) |
| 156 | 20. ``Measure Downtime for NSSF Restart`` (Verifies if NSSF restarts within acceptable time limit) |
| 157 | 21. ``Measure Downtime for PCF Restart`` (Verifies if PCF restarts within acceptable time limit) |
| 158 | 22. ``Measure Downtime for UDR Restart`` (Verifies if UDR restarts within acceptable time limit) |
| 159 | 23. ``Measure Downtime for UDM Restart`` (Verifies if UDM restarts within acceptable time limit) |
| 160 | 24. ``Context Replacement at AMF`` (Verifies context replacement at AMF after NG40 restart) |
| 161 | 25. ``Context Replacement at UPF`` (Verifies context replacement at UPF after SMF restart) |
| 162 | 26. ``Context Replacement at SMF`` (Verifies context replacement at SMF after AMF restart) |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 163 | |
| 164 | .. Note:: |
| 165 | More integration tests are being developed as part of Robot Framework |
| 166 | |
| 167 | Test Schedules |
| 168 | -------------- |
| 169 | |
| 170 | Nightly Tests |
| 171 | """"""""""""" |
| 172 | |
| 173 | SD-Core nightly tests are a set of jobs managed by Aether Jenkins. |
| 174 | All four test suites we mentioned above are scheduled to run nightly. |
| 175 | |
| 176 | 1. ``functionality job (func)`` runs NG40 test cases included in the |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 177 | functionality suite and Integration test suite and verifies all tests pass. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 178 | 2. ``scalability job (scale)`` runs the scalability test suite and reports |
| 179 | the number of successful/failed attaches, detaches and pings. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 180 | |
| 181 | And all these jobs can be scheduled on any of the Aether PODs including |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 182 | ``ci-4g`` pod, ``ci-5g`` pod, ``qa`` pod and ``qa2`` pod. By combining |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 183 | the test type and test pod the following Jenkins jobs are generated: |
| 184 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 185 | 1. ``ci-4g`` pod: `sdcore_ci-4g_4g_bess_func`, `sdcore_ci-4g_4g_bess_scale` |
| 186 | 2. ``ci-5g`` pod: `sdcore_ci-5g_5g_bess_func`, `sdcore_ci-5g_5g_bess_scale` |
| 187 | 3. ``qa`` pod: `sdcore_qa_4g_bess_func`, `sdcore_qa_4g_bess_scale` |
| 188 | 4. ``qa2`` pod: `sdcore_qa2_4g_bess_func`, `sdcore_qa2_4g_bess_scale` |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 189 | |
| 190 | Nightly Job structure |
| 191 | """"""""""""""""""""" |
| 192 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 193 | Take `sdcore_ci-4g_4g_bess_scale` job as an example. It runs the following downstream jobs: |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 194 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 195 | 1. `sdcore_ci-4g_deploy`: this job re-deploys the ``ci-4g`` pod with latest OMEC images. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 196 | |
| 197 | .. Note:: |
| 198 | only the ``ci-4g`` and ``ci-5g`` pod jobs trigger deployment downstream job. No |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 199 | re-deployment is performed on the qa and qa2 pods before the tests. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 200 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 201 | 2. `sdcore_ci-4g_4g_bess_robot-test`: this job executes the scalability test suite. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 202 | 3. `archive-artifacts_ci-4g`: this job collects and uploads k8s and container logs. |
| 203 | 4. `post-results_ci-4g`: this job collects the NG40 test logs/pcaps and pushes the |
| 204 | test data to database. It also generates plots using Rscript for func and |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 205 | scale tests. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 206 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 207 | The integration tests are written using Robot Framework and are executed along |
| 208 | with the functional tests. Take `sdcore_ci-4g_4g_bess_func` as an example. It runs the |
| 209 | following downstream jobs: |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 210 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 211 | 1. `sdcore_ci-4g_deploy`: this job executes the scalability test suite. |
| 212 | 2. `sdcore_ci-4g_4g_bess_robot-test`: this job calls robot |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 213 | framework to execute the test cases and publishes the test results using |
| 214 | `RobotPublisher` Jenkins plugin. The robot results will also be copied to |
| 215 | the upstream job and published there. |
| 216 | 3. `archive-artifacts_ci-4g`: this job collects and uploads k8s and container logs. |
| 217 | 4. `post-results_ci-4g`: this job collects the NG40 test logs/pcaps and pushes the |
| 218 | test data to database. It also generates plots using Rscript for func and |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 219 | scale tests. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 220 | |
| 221 | Patchset Tests |
| 222 | -------------- |
| 223 | |
| 224 | SD-Core pre-merge verification covers the following public Github repos: ``c3po``, |
| 225 | ``Nucleus``, ``upf-epc`` and the following private Github repos: ``spgw``. ``amf``, |
| 226 | ``smf``, ``ausf``, ``nssf``, ``nrf``, ``pcf``, ``udm``, ``udr``, ``webconsole``. |
| 227 | SD-Core CI verifies the following: |
| 228 | |
| 229 | 1. ONF CLA verification |
| 230 | 2. License verification (FOSSA/Reuse) |
| 231 | 3. NG40 tests |
| 232 | |
| 233 | These jobs are automatically triggered by submitted or updated PR to the repos |
| 234 | above. They can also be triggered manually by commenting ``retest this please`` |
| 235 | to the PR. At this moment only CLI and NG40 verification are mandatory. |
| 236 | |
| 237 | The NG40 verification are a set of jobs running on both opencord Jenkins and |
| 238 | Aether Jenkins (private). The jobs run on opencord Jenkins include |
| 239 | |
| 240 | 1. `omec_c3po_container_remote <https://jenkins.opencord.org/job/omec_c3po_container_remote/>`_ (public) |
| 241 | 2. `omec_Nucleus_container_remote <https://jenkins.opencord.org/job/omec_Nucleus_container_remote/>`_ (public) |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 242 | 3. `omec_spgw_container_remote` (private, under member-only folder) |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 243 | |
| 244 | And the jobs run on Aether Jenkins include |
| 245 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 246 | 1. `c3po_premerge_ci-4g_4g_bess` |
| 247 | 2. `Nucleus_premerge_ci-4g_4g_bess` |
| 248 | 3. `upf-epc_premerge_ci-4g_4g_bess` |
| 249 | 4. `spgw_premerge_ci-4g_4g_bess` |
| 250 | 5. `amf_premerge_ci-5g_5g_bess` |
| 251 | 6. `smf_premerge_ci-5g_5g_bess` |
| 252 | 7. `ausf_premerge_ci-5g_5g_bess` |
| 253 | 8. `nssf_premerge_ci-5g_5g_bess` |
| 254 | 9. `nrf_premerge_ci-5g_5g_bess` |
| 255 | 10. `pcf_premerge_ci-5g_5g_bess` |
| 256 | 11. `udm_premerge_ci-5g_5g_bess` |
| 257 | 12. `udr_premerge_ci-5g_5g_bess` |
| 258 | 13. `webconsole_premerge_ci-5g_5g_bess` |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 259 | |
| 260 | Patchset Job structure |
| 261 | """""""""""""""""""""" |
| 262 | |
| 263 | Take ``c3po`` jobs as an example. ``c3po`` PR triggers a public job |
| 264 | `omec_c3po_container_remote |
| 265 | <https://jenkins.opencord.org/job/omec_c3po_container_remote/>`_ job running |
| 266 | on opencord Jenkins through Github webhooks, which then triggers a private job |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 267 | `c3po_premerge_ci-4g_4g_bess` running on Aether Jenkins using a Jenkins plugin called |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 268 | `Parameterized Remote Trigger Plugin |
| 269 | <https://www.jenkins.io/doc/pipeline/steps/Parameterized-Remote-Trigger/>`_. |
| 270 | |
| 271 | The private ``c3po`` job runs the following downstream jobs sequentially: |
| 272 | |
| 273 | 1. `docker-publish-github_c3po`: this job downloads the ``c3po`` PR, runs docker |
| 274 | build and publishes the ``c3po`` docker images to `Aether registry`. |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 275 | 2. `sdcore_ci-4g_deploy`: this job deploys the images built from previous job onto |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 276 | the omec ``ci-4g`` pod. |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 277 | 3. `sdcore_ci-4g_4g_bess_robot-test`: this job executes the functionality test suite. |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 278 | 4. `archive-artifacts_ci-4g`: this job collects and uploads k8s and container logs. |
| 279 | |
Ruchit Bawa | 5606dd2 | 2021-12-15 23:41:43 +0530 | [diff] [blame] | 280 | After all the downstream jobs are finished, the upstream job (`c3po_premerge_ci-4g_4g_bess`) |
ajay | f66b38e | 2021-12-09 23:44:54 -0800 | [diff] [blame] | 281 | copies artifacts including k8s/container/ng40 logs and pcap files from |
| 282 | downstream jobs and saves them as Jenkins job artifacts. |
| 283 | |
| 284 | These artifacts are also copied to and published by the public job |
| 285 | (`omec_c3po_container_remote <https://jenkins.opencord.org/job/omec_c3po_container_remote/>`_) |
| 286 | on opencord Jenkins so that they can be accessed by the OMEC community. |
| 287 | |
| 288 | Pre-merge jobs for other SD-Core repos share the same structure. |
| 289 | |
| 290 | Post-merge |
| 291 | """""""""" |
| 292 | |
| 293 | The following jobs are triggered as post-merge jobs when PRs are merged to |
| 294 | SD-Core repos: |
| 295 | |
| 296 | 1. `docker-publish-github-merge_c3po` |
| 297 | 2. `docker-publish-github-merge_Nucleus` |
| 298 | 3. `docker-publish-github-merge_upf-epc` |
| 299 | 4. `docker-publish-github-merge_spgw` |
| 300 | 5. `docker-publish-github-merge_amf` |
| 301 | 6. `docker-publish-github-merge_smf` |
| 302 | 7. `docker-publish-github-merge_ausf` |
| 303 | 8. `docker-publish-github-merge_nssf` |
| 304 | 9. `docker-publish-github-merge_nrf` |
| 305 | 10. `docker-publish-github-merge_pcf` |
| 306 | 11. `docker-publish-github-merge_udm` |
| 307 | 12. `docker-publish-github-merge_udr` |
| 308 | 13. `docker-publish-github-merge_webconsole` |
| 309 | |
| 310 | Again take the ``c3po`` job as an example. The post-merge job (`docker-publish-github-merge_c3po`) |
| 311 | runs the following downstream jobs sequentially: |
| 312 | |
| 313 | 1. `docker-publish-github_c3po`: this is the same job as the one in pre-merge |
| 314 | section. It checks out the latest ``c3po`` code, runs docker build and |
| 315 | publishes the ``c3po`` docker images to `docker hub <https://hub.docker.com/u/omecproject>`__. |
| 316 | |
| 317 | .. Note:: |
| 318 | the images for private repos are published to Aether registry instead of docker hub |
| 319 | |
| 320 | 2. `c3po_postrelease`: this job submits a patchset to aether-pod-configs repo |
| 321 | for updating the CD pipeline with images published in the job above. |
| 322 | |
| 323 | Post-merge jobs for other SD-Core repos share the same structure. |