Skip to content

[reportportal]: avoid downloading the data router binary if it is already available#3713

Open
srac0 wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
srac0:dev/improve-perf-reportportal
Open

[reportportal]: avoid downloading the data router binary if it is already available#3713
srac0 wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
srac0:dev/improve-perf-reportportal

Conversation

@srac0
Copy link
Contributor

@srac0 srac0 commented Feb 25, 2026

These changes improve the performance of the role by avoiding downloading the data router at each call of the role. It is particularly important when calling it multiple times in the same job.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 25, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sdatko for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 25, 2026

Hi @srac0. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@srac0 srac0 changed the title [reportportal]: avoid downloading the data router binary if it is [reportportal]: avoid downloading the data router binary if it is already available Feb 25, 2026
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/01cd2e4d935d4336bc8bb5dcbbf23af0

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 27m 13s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 22m 12s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 37m 48s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 2h 11m 35s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 05s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 45s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 20s
✔️ cifmw-molecule-reportportal SUCCESS in 3m 15s

…eady available

These changes improve the performance of the role by avoiding downloading
the data router at each call of the role. It is particularly important
when calling it multiple times in the same job.

Signed-off-by: Samuel Rac <srac@redhat.com>
@srac0 srac0 force-pushed the dev/improve-perf-reportportal branch from 7e0d8f1 to e627ec5 Compare March 3, 2026 12:03
@srac0 srac0 marked this pull request as ready for review March 3, 2026 12:06
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a4b60f4df74e4232959c5981520d754b

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 47s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 20m 04s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 31m 38s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT Host unreachable in 1h 15m 29s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 59s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 47s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 10s
✔️ cifmw-molecule-reportportal SUCCESS in 3m 26s

@danpawlik
Copy link
Contributor

recheck

Copy link
Contributor

@michburk michburk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment to consider.

I'm not opposed to merging if people disagree 👍

cifmw_reportportal_droute_binary) |
path_join
}}
_droute_dest: "{{ cifmw_reportportal_droute_dir }}/{{ cifmw_reportportal_droute_binary }}"
Copy link
Contributor

@michburk michburk Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bit of a nit, but factoring _droute_dest out to the vars block for just this task could be improved. Since this path is used in two separate places, maybe you could factor out this path to a var with some name like cifmw_reportportal_droute_binary_dest and put this into roles/reportportal/defaults/main.yml. Then you could use this new var in both the Check if Data router client binary is already present task and this task (Get the Data router client).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants