[DNM] feat(test_operator): add parallel_group support for concurrent tempest stages#3844
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/840f992f4ab24aa2b52765562a25ec6a ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 20m 57s |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7b6c857be59343f1a69b99af5a45d657 ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 46m 43s |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/eaa0748a2a1a41be90eea1c21696520c ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 26m 22s |
|
/test all |
1 similar comment
|
/test all |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5dcdffc5ac0a442c8e579d70525fdd0e ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 32m 30s |
…t stages Add native parallel_group support to the test_operator Ansible role, enabling multiple Tempest CRs to execute simultaneously by leveraging the existing spec.parallel field in the test-operator CRD. Stages sharing the same parallel_group name are collected, built as individual Tempest CRs with spec.parallel: true, and applied concurrently. The first CR is applied ahead with a configurable wait (cifmw_test_operator_parallel_resource_wait) to allow discover-tempest-config --create to provision shared OpenStack resources before subsequent CRs start. Stages without parallel_group continue to execute sequentially, preserving full backward compatibility. After all parallel pods complete, logs are collected from each CR's PVCs via temporary pods, and all parallel resources are cleaned up automatically. Signed-off-by: Vito Castellano <vcastell@redhat.com>
928f091 to
484fb79
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/6772b08420ba4eb09be679440908cbd6 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 17m 56s |
🚨 POC - DNM - WIP 🚨
Add native
parallel_groupsupport to thetest_operatorAnsible role, enabling multiple Tempest CRs to execute simultaneously on the Kubernetes cluster. This leverages the existingspec.parallel: truefield in thetest-operatorCRD, which was previously unused by ci-framework.Stages sharing the same
parallel_groupname incifmw_test_operator_stagesare automatically collected, built as individual Tempest CRs withspec.parallel: true, and applied concurrently. The first CR is applied ahead of the others with a configurable wait (cifmw_test_operator_parallel_resource_wait) to allowdiscover-tempest-config --createto provision shared OpenStack resources (flavors, images, users, projects) before subsequent CRs start.Stages without
parallel_groupcontinue to execute sequentially, preserving full backward compatibility.