Skip to content

WIP: serial: enhance TMScope tests to support compact cluster resources#2733

Open
shajmakh wants to merge 2 commits into
openshift-kni:mainfrom
shajmakh:enhance-serial-nov2025
Open

WIP: serial: enhance TMScope tests to support compact cluster resources#2733
shajmakh wants to merge 2 commits into
openshift-kni:mainfrom
shajmakh:enhance-serial-nov2025

Conversation

@shajmakh
Copy link
Copy Markdown
Member

TBD

@openshift-ci openshift-ci Bot requested review from Tal-or and mrniranjan December 19, 2025 15:52
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Dec 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shajmakh

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

The pull request process is described 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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2025
@shajmakh shajmakh changed the title serial: enhance TMScope tests to support compact cluster resources WIP: serial: enhance TMScope tests to support compact cluster resources Dec 19, 2025
@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 19, 2025
Some set of the serial suite expects to have the resources set on the node in a
specific way ahead of running the suite. The tests are various and are configured
requesting specific amount of resources to be available on the cluster
node before running the test worloads. The values of the amounts are
hardcoded and that is by design. The problem with this is mainly the
baseload (consumed node resources that do not relate to the test).

On compact clusters the baseload is normally greater than on regular
MNO. And when the test runs with old hardcoded resources values, it
considers a greater baseload than usually is on regular MNO (initiialy
tests were built depending on this kind of clusters), and that affects
the amount of free resources that should be left free on the node(s),
causing to shake the "working" hardcoded values. This results in tests
failing due to unexpected behavior on compact clusters.

In this commit we consolidate tests that run on diffirent TM scopes but
they both expect same results (single container does not make a
difference).

Also we adjust the hardcoded values to ensure high enough gap to keep
the test stable. Having a ratios of current node resources is  problamatic
because it needs to be rounded and doesn't eventually turn out to fit into
the node and in many cases messes up the intented scenario.

The best we can do while still have full control over the requested
resources and the padding resources is tweak the resources amounts to
the minimum but stable as possible so that it can fit to run on compact
clusters. We prefer to have full control with logs over having
automatically computed resources especially when the cases and resources
are very diverse, which is good and makes a better coverage and that we
want to keep.

Signed-off-by: Shereen Haj <shajmakh@redhat.com>
@shajmakh shajmakh force-pushed the enhance-serial-nov2025 branch from a48e446 to 8a992cd Compare December 23, 2025 15:28
Signed-off-by: Shereen Haj <shajmakh@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant