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

mod: Upgrade ginkgo to v2 #1537

Merged
merged 1 commit into from
Jun 14, 2022
Merged

mod: Upgrade ginkgo to v2 #1537

merged 1 commit into from
Jun 14, 2022

Conversation

haoxins
Copy link
Contributor

@haoxins haoxins commented Feb 27, 2022

What this PR does / why we need it:

Just upgrade the ginkgo into v2

@aws-kf-ci-bot
Copy link
Contributor

Hi @haoxins. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

@zw0610
Copy link
Member

zw0610 commented Feb 27, 2022

/ok-to-test

@aws-kf-ci-bot
Copy link
Contributor

@haoxins: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
kubeflow-training-operator-presubmit 000ea22 link /test kubeflow-training-operator-presubmit

Full PR test history. Your PR dashboard.

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

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@coveralls
Copy link

coveralls commented Jun 13, 2022

Pull Request Test Coverage Report for Build 2493198613

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.2%) to 41.391%

Totals Coverage Status
Change from base Build 2492750262: 1.2%
Covered Lines: 2291
Relevant Lines: 5535

💛 - Coveralls

@stale stale bot removed the lifecycle/stale label Jun 13, 2022
@johnugeorge
Copy link
Member

/hold

till #1610 is merged

@johnugeorge
Copy link
Member

/hold cancel

@tenzen-y
Copy link
Member

@haoxins, Can you please resolve merge conflicts?

@haoxins
Copy link
Contributor Author

haoxins commented Jun 14, 2022

@haoxins, Can you please resolve merge conflicts?

done

@@ -93,7 +90,7 @@ var _ = BeforeSuite(func() {
err = mgr.Start(testCtx)
Expect(err).ToNot(HaveOccurred(), "failed to run manager")
}()
}, 60)
Copy link
Member

Choose a reason for hiding this comment

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

@haoxins Was the timeout feature removed in ginkgo/v2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@haoxins Thanks for clarifying!

Do you @kubeflow/wg-training-leads want to fix the suite test with this PR?

Copy link
Member

Choose a reason for hiding this comment

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

@tenzen-y Yes. Can you give LGTM?

Copy link
Member

Choose a reason for hiding this comment

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

@johnugeorge Sorry if I've confused you.
This PR disables timeout to adapt ginkgo v2. This way is a workaround.
If we adopt the suite test entirely to ginkgo v2, we need to fix the suite test code to use Asynchronous Assertions as described above.

Copy link
Member

@tenzen-y tenzen-y Jun 14, 2022

Choose a reason for hiding this comment

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

So, I would like to know even if you would like to switch to suite testing with asynchronous assertions in this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Yes. I meant, we can switch if there are no other concerns.

Since BeforeSuite didn't use any Done channel, i assume that it is sill using synchronous execution and timeout is not enforced. See onsi/ginkgo#882 (comment) .

Did you mean, we have other places in test code where we used timeouts? I see that tests are passing.

Copy link
Member

Choose a reason for hiding this comment

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

Since BeforeSuite didn't use any Done channel, i assume that it is sill using synchronous execution and timeout is not enforced. See onsi/ginkgo#882 (comment) .

I had missed that issue comment. Thanks, @johnugeorge.

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

@haoxins Any other changes required here to migrate to new version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think no more changes required.

@johnugeorge
Copy link
Member

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haoxins, johnugeorge

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

@google-oss-prow google-oss-prow bot merged commit 65ad3d5 into kubeflow:master Jun 14, 2022
@haoxins haoxins deleted the mod-upgrade-to-ginkgo-v2 branch June 15, 2022 02:48
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.

None yet

6 participants