Skip to content

Conversation

popojk
Copy link

@popojk popojk commented Apr 27, 2025

What is this PR for?

Refactor simple_preemptor E2E test suite structure

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

What is the Jira issue?

issue link

Copy link
Contributor

@chenyulin0719 chenyulin0719 left a comment

Choose a reason for hiding this comment

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

Hi @popojk, thanks for submitting this PR. Could you check the lint error in CI?
You can run make lint to validate it.

Signed-off-by: Alex Wu <[email protected]>
@popojk
Copy link
Author

popojk commented Apr 29, 2025

Hi @chenyulin0719 . I've fixed the lint issue, could you please help me to run the CI again? Thanks!

Copy link

codecov bot commented May 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.09%. Comparing base (59bc726) to head (d57fe6a).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #971      +/-   ##
==========================================
+ Coverage   67.89%   68.09%   +0.20%     
==========================================
  Files          72       72              
  Lines        9294     9294              
==========================================
+ Hits         6310     6329      +19     
+ Misses       2768     2750      -18     
+ Partials      216      215       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

sleepPodMemLimit2 = int64(float64(Worker2Res.Value())/3.5) / (1000 * 1000)
})

var _ = ginkgo.BeforeEach(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about placing BeforeEach at the same level as AfterEach? Under the scope of ginkgo.Describe("SimplePreemptor", func() {. I prefer to keep it consistent.

Copy link
Contributor

Choose a reason for hiding this comment

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

agree: should be moved between the Describe and the It below

Copy link
Contributor

@chenyulin0719 chenyulin0719 left a comment

Choose a reason for hiding this comment

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

Thanks for the update. A nit comment from me.

})

var _ = ginkgo.AfterSuite(func() {

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unneeded empty line

sleepPodMemLimit2 = int64(float64(Worker2Res.Value())/3.5) / (1000 * 1000)
})

var _ = ginkgo.BeforeEach(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

agree: should be moved between the Describe and the It below

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.

3 participants