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

Update Ginkgo to v2 #386

Merged
merged 2 commits into from
Jan 9, 2023
Merged

Update Ginkgo to v2 #386

merged 2 commits into from
Jan 9, 2023

Conversation

liornoy
Copy link
Contributor

@liornoy liornoy commented Dec 5, 2022

This PR updates ginkgo to v2.

Signed-off-by: liornoy [email protected]

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@zeeke
Copy link
Member

zeeke commented Dec 6, 2022

Hi @liornoy , is it possible to split the commit in 2:

  • one for updating go.mod, go.sum and vendor folder
  • the second for updating source files

It would make the review much easier

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@liornoy
Copy link
Contributor Author

liornoy commented Dec 6, 2022

Hi @liornoy , is it possible to split the commit in 2:

  • one for updating go.mod, go.sum and vendor folder
  • the second for updating source files

It would make the review much easier

Sure! np, done.

@zeeke
Copy link
Member

zeeke commented Dec 9, 2022

Approved workflow run. @liornoy can you please have a look at the errors? Let me know if you think they are not related to the PR, maybe there are some build flakes.

This commit bumps ginkgo to v2 and updates go.mod, go.sum and the vendor dir.

Note: ginkgov2 requires go1.18, so go version is updated as well.
Signed-off-by: liornoy <[email protected]>
Update source files to import ginkgo v2 and since the custom reporters feature is
deprecated in ginkgo v2, modified the k8sreporter/reporter.go.

Please note that ginkgo v2 has default configurations that lead to some code deletion in this commit:
Ginkgo v2 default reporter prints with a new line.
Ginkgo v2 by default configures ParallelTotal to 1.
Ginkgo v2 by default configures TimeOut to 60 min.

Signed-off-by: liornoy <[email protected]>
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@liornoy
Copy link
Contributor Author

liornoy commented Dec 13, 2022

@zeeke I updated .golangci.yml to solve the lint issues. (adding ginkgo/v2 to the whitelist)
other than that I think the dev-env issue is a flake because I didn't change anything about it,
and it passes on my cluster.
Can you please approve the workflow for it to run again?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3685350391

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 10 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.03%) to 25.25%

Files with Coverage Reduction New Missed Lines %
controllers/sriovibnetwork_controller.go 2 65.35%
controllers/sriovnetwork_controller.go 2 67.0%
api/v1/helper.go 6 40.6%
Totals Coverage Status
Change from base Build 3631034070: -0.03%
Covered Lines: 1896
Relevant Lines: 7509

💛 - Coveralls

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

I test this one locally and it looks good.

Thanks for the contribution!

@SchSeba SchSeba merged commit 216489f into k8snetworkplumbingwg:master Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants