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

Migrate to native ginkgo v2 #938

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Two migrations needs to be done to avoid the following warnings:

You're using deprecated Ginkgo functionality:
=============================================
  Support for custom reporters has been removed in V2.  Please read the documentation linked to below for Ginkgo's new behavior and for a migration path:
  Learn more at: https://onsi.github.io/ginkgo/MIGRATING_TO_V2#removed-custom-reporters
  Measure is deprecated and will be removed in Ginkgo V2.  Please migrate to gomega/gmeasure.
  Learn more at: https://onsi.github.io/ginkgo/MIGRATING_TO_V2#removed-measure
    github.com/kubernetes-sigs/cri-tools/pkg/benchmark/pod_container.go:60

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

Fixed warnings when running with ginkgo v2.

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 24, 2022
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 24, 2022
Two migrations needs to be done to avoid the following warnings:

```
You're using deprecated Ginkgo functionality:
=============================================
  Support for custom reporters has been removed in V2.  Please read the documentation linked to below for Ginkgo's new behavior and for a migration path:
  Learn more at: https://onsi.github.io/ginkgo/MIGRATING_TO_V2#removed-custom-reporters
  Measure is deprecated and will be removed in Ginkgo V2.  Please migrate to gomega/gmeasure.
  Learn more at: https://onsi.github.io/ginkgo/MIGRATING_TO_V2#removed-measure
    github.com/kubernetes-sigs/cri-tools/pkg/benchmark/pod_container.go:60
```

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 24, 2022
@saschagrunert
Copy link
Member Author

@feiskyer PTAL

@saschagrunert
Copy link
Member Author

How about getting this in before v1.25.0?

@saschagrunert saschagrunert mentioned this pull request Aug 24, 2022
Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

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

sorry, missed this PR

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 26, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feiskyer, saschagrunert

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:
  • OWNERS [feiskyer,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 17a3bb8 into kubernetes-sigs:master Aug 26, 2022
@saschagrunert saschagrunert deleted the ginkgo-migration branch August 26, 2022 08:33
aznashwan added a commit to aznashwan/cri-tools that referenced this pull request Aug 30, 2022
Following the switch to Ginkgo v2 in kubernetes-sigs#938, running `critest`
without the `-benchmark` flag will erroneously run some benchmark
specs alongside the validation ones too.
This patch ensures that all specs containing "benchmark" will be skipped
unless the `-benchmark` flag is explicitly provided.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
aznashwan added a commit to aznashwan/cri-tools that referenced this pull request Aug 30, 2022
Following the switch to Ginkgo v2 in kubernetes-sigs#938, running `critest`
without the `-benchmark` flag will erroneously run some benchmark
specs alongside the validation ones too.
This patch ensures that all specs containing "benchmark" will be skipped
unless the `-benchmark` flag is explicitly provided.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
aznashwan added a commit to aznashwan/cri-tools that referenced this pull request Aug 30, 2022
Following the switch to Ginkgo v2 in kubernetes-sigs#938, running `critest`
without the `-benchmark` flag will erroneously run some benchmark
specs alongside the validation ones too.
This patch ensures that all specs containing "benchmark" will be skipped
unless the `-benchmark` flag is explicitly provided.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants