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

bump ginkgo to v2 #945

Merged
merged 1 commit into from
Aug 30, 2022
Merged

bump ginkgo to v2 #945

merged 1 commit into from
Aug 30, 2022

Conversation

lorrielau
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

Bump ginkgo to v2.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@Congrool

Does this PR introduce a user-facing change?

NONE

other Note

@openyurt-bot openyurt-bot added the do-not-merge/work-in-progress do-not-merge/work-in-progress label Aug 10, 2022
@openyurt-bot
Copy link
Collaborator

@lorrielau: GitHub didn't allow me to assign the following users: your_reviewer.

Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

What type of PR is this?

/kind feature

What this PR does / why we need it:

Bump ginkgo to v2.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@Congrool

Does this PR introduce a user-facing change?

NONE

other Note

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.

@openyurt-bot openyurt-bot added the size/L size/L: 100-499 label Aug 10, 2022
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #945 (8ee08cb) into master (8896ea6) will increase coverage by 0.05%.
The diff coverage is n/a.

❗ Current head 8ee08cb differs from pull request most recent head 8cea11a. Consider uploading reports for the commit 8cea11a to get more accurate results

@@            Coverage Diff             @@
##           master     #945      +/-   ##
==========================================
+ Coverage   43.59%   43.65%   +0.05%     
==========================================
  Files          83       83              
  Lines       11260    11260              
==========================================
+ Hits         4909     4915       +6     
+ Misses       5914     5909       -5     
+ Partials      437      436       -1     
Flag Coverage Δ
unittests 43.65% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...troller/nodelifecycle/node_lifecycle_controller.go 56.15% <0.00%> (+0.60%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -1,3 +1,4 @@
//go:build !windows
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@@ -1,3 +1,4 @@
//go:build !windows
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this tag.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do. :>

_, err = ns.CreateNameSpace(c, YurtE2ENamespaceName)
gomega.Expect(err).NotTo(gomega.HaveOccurred(), "fail to create namespace")

util.YurtDescribe(YurtE2ETestDesc+"yurt_test_create namespace", func() {
Copy link
Member

Choose a reason for hiding this comment

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

Should it be BeforeEach rather than Describe?
We need to create pod in this namespace later in test pod_operate.

Copy link
Member

@Congrool Congrool Aug 11, 2022

Choose a reason for hiding this comment

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

It makes us depend on that yurt_test_create namespace should run before the pod_operate. It is not always the case.

@openyurt-bot openyurt-bot added size/M size/M: 30-99 and removed size/L size/L: 100-499 labels Aug 20, 2022
@lorrielau
Copy link
Member Author

@Congrool Please take a look. Sorry for the late feedback. I've deleted the ginkgo.by part in e2e-yurt-create-namespace.

test/e2e/e2e.go Outdated
klog.Infof("Starting e2e run %q on Ginkgo node %d", uuid.NewUUID(), types.NewDefaultSuiteConfig().ParallelProcess)
//klog.Infof("Starting e2e run %q on Ginkgo node %d", uuid.NewUUID(), config.GinkgoConfig.ParallelNode)
ginkgo.RunSpecs(t, "openyurt e2e suite")
//ginkgo.RunSpecsWithDefaultAndCustomReporters(t, "openyurt e2e suite", r)
Copy link
Member

Choose a reason for hiding this comment

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

Please remove these comments

test/e2e/e2e.go Outdated
if yurtconfig.YurtE2eCfg.ReportDir != "" {
if err := os.MkdirAll(yurtconfig.YurtE2eCfg.ReportDir, 0755); err != nil {
klog.Errorf("Failed creating report directory: %v", err)
} else {
r = append(r, reporters.NewJUnitReporter(path.Join(yurtconfig.YurtE2eCfg.ReportDir, fmt.Sprintf("yurt-e2e-test-report_%02d.xml", config.GinkgoConfig.ParallelNode))))
reporters.GenerateJUnitReport(r, path.Join(yurtconfig.YurtE2eCfg.ReportDir, fmt.Sprintf("yurt-e2e-test-report_%02d.xml", types.NewDefaultSuiteConfig().ParallelProcess)))
Copy link
Member

Choose a reason for hiding this comment

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

Check the err returned by reporters.GenerateJUnitReport.

@Congrool
Copy link
Member

Please rebase and squash your commits.

@lorrielau lorrielau force-pushed the master branch 2 times, most recently from 51bf367 to 22ebfb4 Compare August 22, 2022 09:42
@lorrielau lorrielau changed the title [WIP] bump ginkgo to v2 bump ginkgo to v2 Aug 22, 2022
@openyurt-bot openyurt-bot removed the do-not-merge/work-in-progress do-not-merge/work-in-progress label Aug 22, 2022
@lorrielau lorrielau force-pushed the master branch 3 times, most recently from a0f76a0 to 8cea11a Compare August 23, 2022 09:23
@Congrool
Copy link
Member

/lgtm

@openyurt-bot
Copy link
Collaborator

@Congrool: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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.

@rambohe-ch
Copy link
Member

/lgtm
/approve

@openyurt-bot openyurt-bot added the lgtm lgtm label Aug 30, 2022
@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lorrielau, rambohe-ch

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

@openyurt-bot openyurt-bot merged commit 63b64c2 into openyurtio:master Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved lgtm lgtm size/M size/M: 30-99
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants