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

[V3] New V3 SkaffoldRunner #5692

Merged
merged 2 commits into from
Apr 22, 2021
Merged

Conversation

yuwenma
Copy link
Contributor

@yuwenma yuwenma commented Apr 16, 2021

Related: #5673

Description

  1. Refactored the runner directory.
  2. Create a New SkaffoldRunner for V3. Both runner.SkaffoldRunner and v3.SkaffoldRunner implements the Runner interface.
  3. Build, Test, Prune and other shared methods are moved from SkaffoldRunner to several individual structs (BuildRunner, TestRunner).
  4. Both SkaffoldRunner and the V3 SkaffoldRunner have the shared structs as components.
  5. Unittests are updated.
  6. Add placeholders (not implemented error) in v3 SkaffoldRunner for later implementation.

@yuwenma yuwenma requested a review from a team as a code owner April 16, 2021 00:36
@google-cla google-cla bot added the cla: yes label Apr 16, 2021
1. Refactored the runner directory.
2. Create a New SkaffoldRunner for V3. Both runner.SkaffoldRunner and v3.SkaffoldRunner implements the Runner interface.
2. Build, Test, Prune and other shared methods are moved from SkaffoldRunner to several individual structs (BuildRunner, TestRunner).
3. Both SkaffoldRunner and the V3 SkaffoldRunner have the shared structs as components.
4. Unittests are updated.
5. Add placeholders (not implemented error) in v3 SkaffoldRunner for later implementation.
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #5692 (62db0be) into master (e947844) will decrease coverage by 0.16%.
The diff coverage is 63.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5692      +/-   ##
==========================================
- Coverage   70.64%   70.48%   -0.17%     
==========================================
  Files         411      421      +10     
  Lines       15860    16001     +141     
==========================================
+ Hits        11205    11279      +74     
- Misses       3827     3889      +62     
- Partials      828      833       +5     
Impacted Files Coverage Δ
pkg/skaffold/runner/build_deploy.go 69.23% <0.00%> (-0.47%) ⬇️
pkg/skaffold/runner/changeset.go 66.66% <ø> (ø)
pkg/skaffold/runner/prune.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/runner.go 0.00% <ø> (ø)
pkg/skaffold/runner/v3/apply.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/v3/cleanup.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/v3/deploy.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/v3/dev.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/v3/generate_pipeline.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/v3/render.go 0.00% <0.00%> (ø)
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e947844...62db0be. Read the comment docs.

Copy link
Contributor

@MarlonGamez MarlonGamez left a comment

Choose a reason for hiding this comment

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

This looks good to me, I think the thing I'm confused about is the v3 package naming. I understand that it's named off the schema, but is kinda confusing since skaffold's major version number is still 1

@yuwenma
Copy link
Contributor Author

yuwenma commented Apr 20, 2021

This looks good to me, I think the thing I'm confused about is the v3 package naming. I understand that it's named off the schema, but is kinda confusing since skaffold's major version number is still 1

yeah, when changing the schema from v1 to v2, I think we actually should bump the skaffold version to v2 at that time. Do you suggest using v2 here or re-align the schema and master version in this new skaffold render?

@tejal29 tejal29 merged commit 21debe2 into GoogleContainerTools:master Apr 22, 2021
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.

3 participants