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

Introduce parallelism to unit tests #306

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

rluders
Copy link
Contributor

@rluders rluders commented Jan 7, 2021

This PR implements parallelism to our unit tests to improve its performance.

Categories

  • Bugfix
  • Enhancement
  • Backporting
  • Others (CI, Infrastructure, Documentation)

Sample archive

No.

Documentation

No.

Unit Tests

  • pkg/authorizer/clusterauthorizer/clusterauthorizer_test.go - this one can't use parallelism
  • pkg/config/configobserver/configobserver_test.go
  • pkg/controller/status/status_test.go
  • pkg/gather/clusterconfig/0_gahterer_test.go
  • pkg/gather/clusterconfig/certificate_signing_requests_test.go
  • pkg/gather/clusterconfig/config_maps_test.go
  • pkg/gather/clusterconfig/image_pruners_test.go
  • pkg/gather/clusterconfig/image_registries_test.go
  • pkg/gather/clusterconfig/install_plans_test.go
  • pkg/gather/clusterconfig/service_accounts_test.go

Privacy

This PR doesn't collect any data or change any gather.

Changelog

No.

References

https://issues.redhat.com/browse/???
https://bugzilla.redhat.com/show_bug.cgi?id=???
https://access.redhat.com/solutions/???

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 7, 2021
@rluders
Copy link
Contributor Author

rluders commented Jan 8, 2021

/test e2e

@tremes
Copy link
Contributor

tremes commented Jan 8, 2021

@psimovec or @quarckster please check

Copy link
Contributor

@quarckster quarckster left a comment

Choose a reason for hiding this comment

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

LGTM

@rluders rluders changed the base branch from master to release-4.8 January 11, 2021 21:44
@rluders
Copy link
Contributor Author

rluders commented Jan 12, 2021

/test e2e

@rluders
Copy link
Contributor Author

rluders commented Jan 15, 2021

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 15, 2021
@psimovec
Copy link
Member

Usage of parallelism seems reasonable to me and LGTM.

I have one nitpick unrelated to changes in this PR - about the file you are changing.. pkg/gather/clusterconfig/0_gahterer_test.go -> pkg/gather/clusterconfig/0_gatherer_test.go

But as it is unrelated to the changes you made, I let you decide if you want to change it in this PR.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2021
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: psimovec, quarckster, rluders

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

The pull request process is described here

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

@rluders
Copy link
Contributor Author

rluders commented Feb 5, 2021

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2021
@rluders
Copy link
Contributor Author

rluders commented Feb 5, 2021

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2021
@rluders rluders changed the base branch from release-4.8 to master February 11, 2021 10:20
@rluders
Copy link
Contributor Author

rluders commented Feb 12, 2021

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 12, 2021
@openshift-merge-robot openshift-merge-robot merged commit e43b41e into openshift:master Feb 12, 2021
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.

6 participants