Skip to content
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

tests, net, checkup: Separate the DPDK checkup config helper #193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EdDev
Copy link
Contributor

@EdDev EdDev commented Jan 28, 2025

Short description:

Separate the DPDK checkup config helper

What this PR does / why we need it:

The checkups configurations are unique per individual checkup. The DPDK one has its own unique fields, some mandatory and some optional.

This change separates the configuration creation for DPDK from the others.
It provides clarity about which arguments are relevant to the DPDK checkup, expressing also which ones are mandatory and which ones are optional.

In addition, typing has been added and a small simplification introduced to shorten the call-stack.

Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:

NONE

The checkups configurations are unique per individual checkup.
The DPDK one has its own unique fields, some mandatory and some
optional.

This change separates the configuration creation for DPDK from the
others.
It provides clarity about which arguments are relevant to the DPDK
checkup, expressing also which ones are mandatory and which ones are
optional.

In addition, typing has been added and a small simplification introduced
to shorten the call-stack.

Signed-off-by: Edward Haas <[email protected]>
@cnv-qe-bot1
Copy link

Report bugs in Issues

The following are automatically added:

  • Add reviewers from OWNER file (in the root of the repository) under reviewers section.
  • Set PR size label.
  • New issue is created for the PR. (Closed when PR is merged/closed)
  • Run pre-commit if .pre-commit-config.yaml exists in the repo.

Available user actions:

  • To mark PR as WIP comment /wip to the PR, To remove it from the PR comment /wip cancel to the PR.
  • To block merging of PR comment /hold, To un-block merging of PR comment /hold cancel.
  • To mark PR as verified comment /verified to the PR, to un-verify comment /verified cancel to the PR.
    verified label removed on each new commit push.
  • To cherry pick a merged PR comment /cherry-pick <target branch to cherry-pick to> in the PR.
    • Multiple target branches can be cherry-picked, separated by spaces. (/cherry-pick branch1 branch2)
    • Cherry-pick will be started when PR is merged
  • To build and push container image command /build-and-push-container in the PR (tag will be the PR number).
    • You can add extra args to the Podman build command
      • Example: /build-and-push-container --build-arg OPENSHIFT_PYTHON_WRAPPER_COMMIT=<commit_hash>
  • To add a label by comment use /<label name>, to remove, use /<label name> cancel
  • To assign reviewers based on OWNERS file use /assign-reviewers
  • To check if PR can be merged use /check-can-merge
  • to assign reviewer to PR use /assign-reviewer @<reviewer>
Supported /retest check runs
  • /retest tox: Retest tox
  • /retest build-container: Retest build-container
  • /retest all: Retest all
Supported labels
  • hold
  • verified
  • wip
  • lgtm

Copy link
Collaborator

@polarion-jenkins polarion-jenkins left a comment

Choose a reason for hiding this comment

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

D/S test tox -e verify-bugs-are-open passed: cnv-tests-tox-executor/6077

@Anatw
Copy link

Anatw commented Jan 28, 2025

/lgtm

@EdDev
Copy link
Contributor Author

EdDev commented Jan 28, 2025

@Anatw , can you please help verify this one?

@Anatw
Copy link

Anatw commented Jan 28, 2025

/build-and-push-container

@redhat-cnv-qe-bot1
Copy link

New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-193 published

Compose a dictionary with the ConfigMap data for the DPDK checkup.

Args:
timeout (str): Timeout to wait for the checkup to finish, in minutes.
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be helpful to mention that the timeout argument expects the duration in minutes, with the 'm' suffix. Alternatively, you could have the user provide an integer value (representing minutes), and the function could automatically append the 'm' suffix. This way, the user wouldn't have to worry about formatting the duration correctly.

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.

9 participants