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

Optimize code for run apps #2076

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Conversation

kakaZhou719
Copy link
Member

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@github-actions github-actions bot added the test label Mar 2, 2023
@kakaZhou719
Copy link
Member Author

/test run

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2023

Codecov Report

Patch coverage: 28.57% and project coverage change: +0.27 🎉

Comparison is base (2260571) 18.36% compared to head (16359da) 18.63%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2076      +/-   ##
==========================================
+ Coverage   18.36%   18.63%   +0.27%     
==========================================
  Files         100       99       -1     
  Lines        9313     9234      -79     
==========================================
+ Hits         1710     1721      +11     
+ Misses       7378     7287      -91     
- Partials      225      226       +1     
Impacted Files Coverage Δ
pkg/cluster-runtime/installer.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/scale.go 0.00% <0.00%> (ø)
pkg/cluster-runtime/upgrader.go 0.00% <0.00%> (ø)
pkg/application/v2app.go 43.36% <12.50%> (-10.93%) ⬇️
pkg/infradriver/ssh_infradriver.go 31.32% <66.66%> (-3.64%) ⬇️
utils/strings/strings.go 48.73% <93.33%> (+12.60%) ⬆️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kakaZhou719 kakaZhou719 force-pushed the optimize-code-apps branch 2 times, most recently from 3549131 to 16359da Compare March 2, 2023 09:36
@starnop
Copy link
Collaborator

starnop commented Mar 2, 2023

/test all

appNames := infraDriver.GetClusterLaunchApps()

// merge to application between v2.ClusterSpec, v2.Application and image extension
v2App, err := application.NewV2Application(v2.ConstructApplication(cf.GetApplication(), cmds, appNames), imageSpec.ImageExtension)
Copy link
Collaborator

Choose a reason for hiding this comment

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

lazy init the v2app

Copy link
Member Author

Choose a reason for hiding this comment

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

i thought , if init app error ,return fast.

optimize code for run apps
Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

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

LGTM

@starnop starnop merged commit 293ccdc into sealerio:main Mar 3, 2023
@kakaZhou719 kakaZhou719 deleted the optimize-code-apps branch June 28, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants