Skip to content

OSPRH-16753: Converge tests based on enabled features #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MiguelCarpio
Copy link
Contributor

@MiguelCarpio MiguelCarpio commented Jun 2, 2025

Converge the following tests based on enabled features

  • autoscaling
  • graphing

Depends-On: openstack-k8s-operators/telemetry-operator#696

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/bc6f82e76d23449e9466de93d4537f53

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 17m 14s
functional-autoscaling-tests-osp18 FAILURE in 1h 03m 44s
functional-logging-tests-osp18 FAILURE in 59m 13s
functional-graphing-tests-osp18 FAILURE in 1h 01m 22s (non-voting)

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/3785f304595a4596939682f1b0621d35

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 16m 36s
functional-autoscaling-tests-osp18 FAILURE in 1h 02m 56s
functional-logging-tests-osp18 FAILURE in 1h 02m 00s
functional-graphing-tests-osp18 FAILURE in 1h 01m 44s (non-voting)

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/975fcf27071f481387790d8187b30e84

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 15m 34s
functional-autoscaling-tests-osp18 FAILURE in 1h 02m 07s
functional-logging-tests-osp18 FAILURE in 59m 45s
functional-graphing-tests-osp18 FAILURE in 1h 00m 09s (non-voting)

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/56d2d6b1c80647a5baf5bd38bb65a456

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 20m 02s
functional-autoscaling-tests-osp18 FAILURE in 1h 04m 17s
functional-logging-tests-osp18 FAILURE in 1h 05m 21s
functional-graphing-tests-osp18 FAILURE in 1h 03m 15s (non-voting)

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/c9283d8c0ac8407fa6d0fe58af253e36

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 27m 54s
functional-autoscaling-tests-osp18 FAILURE in 1h 26m 21s
functional-logging-tests-osp18 FAILURE in 1h 05m 32s
functional-graphing-tests-osp18 TIMED_OUT in 3h 12m 54s (non-voting)

@MiguelCarpio MiguelCarpio force-pushed the OSPRH-16753 branch 2 times, most recently from ff4c733 to 76eae50 Compare June 3, 2025 08:39
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/ed8bb4f450374d91922c3828853b4566

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 52m 29s
functional-autoscaling-tests-osp18 FAILURE in 1h 27m 08s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 11m 47s
functional-graphing-tests-osp18 FAILURE in 1h 38m 52s (non-voting)

@MiguelCarpio MiguelCarpio force-pushed the OSPRH-16753 branch 4 times, most recently from f0c084d to c03852a Compare June 3, 2025 13:49
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/05999691d7c84e5b9f4801eaa621c95f

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 20m 00s
functional-autoscaling-tests-osp18 FAILURE in 1h 04m 20s
functional-logging-tests-osp18 FAILURE in 1h 01m 48s
functional-graphing-tests-osp18 FAILURE in 1h 06m 15s (non-voting)

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/0823578f8ac040fd8b1b5852f23abd12

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 31m 55s
functional-autoscaling-tests-osp18 FAILURE in 1h 30m 44s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 16m 12s
functional-graphing-tests-osp18 TIMED_OUT in 3h 13m 44s (non-voting)

@@ -18,10 +18,12 @@
- name: "Run Telemetry Logging tests"
ansible.builtin.import_role:
name: telemetry_logging
when: hostvars['localhost'].enable_logging_role | bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of guarding each task, you could use some pre_tasks to skip this play if the variable is false.

Here's an example:

pre_tasks:
- name: Stop play early if we do not want to check the failures
when:
- not (check_failures | default(true) | bool)
ansible.builtin.meta: end_play

@@ -18,10 +18,12 @@
- name: "Run Telemetry Logging tests"
ansible.builtin.import_role:
name: telemetry_logging
when: hostvars['localhost'].enable_logging_role | bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer some other name, like logging_enabled or logging_features_enabled, but that's up for debate

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same feedback here for the pre_tasks. It will reduce the size of the change, and reduce the possibility of errors later, if new tasks are needed for the autoscaling tests, for example.

@@ -13,10 +13,12 @@
- name: Include vars from the extra_vars files
ansible.builtin.include_vars:
dir: "{{ cifmw_basedir }}/artifacts/parameters"
when: hostvars['localhost'].enable_autoscaling_role | bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Guarding the block is sufficient here. The individual task don't need to be guarded.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If going with the approach of using pre_tasks (as suggested above), then the check for each set of tests could happen in the pre_task section of the play.

There's an alternative approach where the tests are in one large playbook, with multiple plays that will detect whether the particular features are enabled, then try to run all the tests, with guarding in the appropriate place.

@MiguelCarpio MiguelCarpio force-pushed the OSPRH-16753 branch 2 times, most recently from cafbf53 to b17f5eb Compare June 4, 2025 10:39
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/878a9bbe4f5d4ed2b70c374414688cc7

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 56m 40s
functional-autoscaling-tests-osp18 FAILURE in 1h 41m 49s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 15m 28s
functional-graphing-tests-osp18 RETRY_LIMIT in 2m 59s (non-voting)

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/a314b27fc5814757b28ca74ccd4601a4

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 32m 22s
functional-autoscaling-tests-osp18 FAILURE in 36m 39s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 12m 27s
functional-graphing-tests-osp18 TIMED_OUT in 3h 14m 38s (non-voting)

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/1b790b56ab794be3a32f8c9af7b0d295

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 49m 29s
functional-autoscaling-tests-osp18 FAILURE in 1h 23m 42s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 14m 15s
functional-graphing-tests-osp18 FAILURE in 1h 20m 10s (non-voting)

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/a8d56a905d5642bbad01aa3aa42daed5

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 01m 43s
functional-autoscaling-tests-osp18 FAILURE in 1h 08m 18s
functional-logging-tests-osp18 FAILURE in 1h 40m 41s
functional-graphing-tests-osp18 FAILURE in 1h 07m 45s (non-voting)

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/44b8d8ead7f446f6b6204cd90e4330ae

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 56m 58s
functional-autoscaling-tests-osp18 FAILURE in 1h 04m 32s
functional-logging-tests-osp18 FAILURE in 1h 38m 13s
functional-graphing-tests-osp18 FAILURE in 1h 04m 06s (non-voting)

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/df73bca68c0b46d6a463b9341ccec9ea

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 00m 55s
functional-autoscaling-tests-osp18 FAILURE in 1h 04m 20s
functional-logging-tests-osp18 FAILURE in 1h 41m 15s
functional-graphing-tests-osp18 FAILURE in 1h 01m 40s (non-voting)

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/02117aaf34fc4483be6ebbdd62bc1803

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 56m 15s
functional-autoscaling-tests-osp18 FAILURE in 1h 04m 31s
functional-logging-tests-osp18 FAILURE in 1h 39m 07s
functional-graphing-tests-osp18 FAILURE in 1h 01m 05s (non-voting)

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/3acaa7b1a2804525bce5e11bc79eeb52

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 57m 43s
functional-autoscaling-tests-osp18 FAILURE in 1h 05m 13s
functional-logging-tests-osp18 FAILURE in 1h 39m 29s
functional-graphing-tests-osp18 FAILURE in 1h 07m 33s (non-voting)

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/171d52d383204608a719a1b72fbb0446

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 59m 44s
functional-autoscaling-tests-osp18 FAILURE in 1h 02m 29s
functional-logging-tests-osp18 FAILURE in 1h 40m 36s
functional-graphing-tests-osp18 FAILURE in 1h 04m 29s (non-voting)

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

Successfully merging this pull request may close these issues.

2 participants