Skip to content

release-payload-controller/*test.go: improve tests#667

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
AlexNPavel:cleanup-payload-tests
Apr 7, 2025
Merged

release-payload-controller/*test.go: improve tests#667
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
AlexNPavel:cleanup-payload-tests

Conversation

@AlexNPavel
Copy link
Copy Markdown
Contributor

This PR updates all Release Payload Controller unit tests to use New...Controller functions instead of manually creating the structs. It also adds t.Parallel to all tests. This reduces test runtime for the pkg/cmd/release-payload-controller package from 7 seconds to 1.4 seconds on my system.

@AlexNPavel
Copy link
Copy Markdown
Contributor Author

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 31, 2025
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 31, 2025
@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
This PR updates all Release Payload Controller unit tests to use
`New...Controller` functions instead of manually creating the structs. It also
adds `t.Parallel` to all tests. This reduces test runtime for the
`pkg/cmd/release-payload-controller` package from 7 seconds to 1.4 seconds on
my system.
@AlexNPavel AlexNPavel force-pushed the cleanup-payload-tests branch from 0ecd583 to aace164 Compare April 1, 2025 19:19
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 1, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexNPavel, bradmwilliams

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:
  • OWNERS [AlexNPavel,bradmwilliams]

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
Copy Markdown
Contributor

openshift-ci Bot commented Apr 1, 2025

@AlexNPavel: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/govulncheck aace164 link false /test govulncheck
ci/prow/security aace164 link false /test security

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@bradmwilliams
Copy link
Copy Markdown
Collaborator

@AlexNPavel Let's sit on this one until we're sure that all the other updates have successfully rolled out and things are operating as expected.

@bradmwilliams
Copy link
Copy Markdown
Collaborator

@AlexNPavel I'd say we are good to go with this one.

@AlexNPavel
Copy link
Copy Markdown
Contributor Author

/hold cancel

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 7, 2025
@openshift-merge-bot openshift-merge-bot Bot merged commit 0a2b41c into openshift:main Apr 7, 2025
6 of 8 checks passed
@AlexNPavel AlexNPavel deleted the cleanup-payload-tests branch April 7, 2025 23:46
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants