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

More tests #2128

Merged
merged 9 commits into from
May 21, 2019
Merged

More tests #2128

merged 9 commits into from
May 21, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented May 15, 2019

No description provided.

@dgageot dgageot force-pushed the more-tests branch 3 times, most recently from 4d4bdda to b190fbf Compare May 15, 2019 14:31
@codecov-io
Copy link

codecov-io commented May 15, 2019

Codecov Report

Merging #2128 into master will increase coverage by 0.5%.
The diff coverage is 25.39%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #2128     +/-   ##
========================================
+ Coverage   56.79%   57.3%   +0.5%     
========================================
  Files         183     182      -1     
  Lines        7890    7869     -21     
========================================
+ Hits         4481    4509     +28     
+ Misses       2995    2948     -47     
+ Partials      414     412      -2
Impacted Files Coverage Δ
cmd/skaffold/app/cmd/deploy.go 68.75% <0%> (+16.36%) ⬆️
cmd/skaffold/app/cmd/debug.go 61.53% <0%> (ø) ⬆️
cmd/skaffold/app/cmd/diagnose.go 38.09% <0%> (+3.31%) ⬆️
cmd/skaffold/app/cmd/dev.go 24.44% <0%> (+1.52%) ⬆️
pkg/skaffold/runner/dev.go 56.52% <0%> (ø) ⬆️
cmd/skaffold/app/cmd/runner.go 47.36% <0%> (-8.89%) ⬇️
cmd/skaffold/app/cmd/delete.go 63.63% <0%> (+19.88%) ⬆️
cmd/skaffold/app/cmd/run.go 60% <0%> (+17.14%) ⬆️
pkg/skaffold/config/options.go 92.85% <100%> (+2.38%) ⬆️
pkg/skaffold/util/util.go 75.39% <100%> (+9.7%) ⬆️
... and 4 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 fb7c2a4...cc64fd2. Read the comment docs.

return append(s[:i], s[i+1:]...)
for i := len(s) - 1; i >= 0; i-- {
if s[i] == target {
s = append(s[:i], s[i+1:]...)
Copy link
Contributor

Choose a reason for hiding this comment

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

😳 was this causing bugs anywhere?

Copy link
Contributor Author

@dgageot dgageot May 17, 2019

Choose a reason for hiding this comment

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

I don’t think so. I added tests and realized it was doing the job only partially

@@ -91,8 +91,7 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*la
// Watch artifacts
for i := range artifacts {
artifact := artifacts[i]

if !r.IsTargetImage(artifact) {
if !r.runCtx.Opts.IsTargetImage(artifact) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this was broken before then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I just moved the function

@priyawadhwa
Copy link
Contributor

This needs a rebase :)

dgageot added 9 commits May 21, 2019 18:05
Signed-off-by: David Gageot <[email protected]>
Signed-off-by: David Gageot <[email protected]>
It’s now easier to understand what the pod spec
looks like.

Signed-off-by: David Gageot <[email protected]>
Signed-off-by: David Gageot <[email protected]>
Signed-off-by: David Gageot <[email protected]>
Signed-off-by: David Gageot <[email protected]>
@dgageot
Copy link
Contributor Author

dgageot commented May 21, 2019

@nkubala @priyawadhwa It has been rebased

@dgageot dgageot merged commit 6b7a28e into GoogleContainerTools:master May 21, 2019
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.

5 participants