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

Simplify integration tests #1750

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Mar 7, 2019

  • Move Gcloud command to the Makefile
  • Remove TestMain. It makes it complicated to run a single test
  • Replace build tags with a check on -short so that tests are always compiled and linted
  • Fix lint errors on rpc_test.go
  • Some test projects should not be in ./integration/examples because they shouldn’t be in ./examples
  • Fix flakiness on TestDev

Signed-off-by: David Gageot [email protected]

@codecov-io
Copy link

codecov-io commented Mar 7, 2019

Codecov Report

Merging #1750 into master will decrease coverage by 0.26%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1750      +/-   ##
==========================================
- Coverage   47.35%   47.08%   -0.27%     
==========================================
  Files         126      127       +1     
  Lines        6179     6214      +35     
==========================================
  Hits         2926     2926              
- Misses       2955     2990      +35     
  Partials      298      298
Impacted Files Coverage Δ
pkg/skaffold/kubernetes/wait.go 28.08% <ø> (+2.31%) ⬆️
integration/util.go 0% <0%> (ø)

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 75b6834...9fe08b7. Read the comment docs.

 + Move `Gcloud` command to the Makefile
 + Remove TestMain. It makes it complicated to run a single test
 + Replace build tags with a check on `-short` so that tests are always compiled and linted
 + Fix lint errors on rpc_test.go
 + Some test projects should not be in ./integration/examples because they shouldn’t be in ./examples
 + Fix flakiness on TestDev

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

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM, one nit, and one question: when you say you fixed TestDev - was the root cause of the flake around job redeployment issues? I'm guessing based on your solution that is change job -> deployment and instead of 10 minutes sleep it keeps looping forever.

if err != nil {
t.Fatalf("Could not find job: %s %s", ns.Name, jobName)
t.Fatalf("Could not find dep: %s %s", ns.Name, deployName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
t.Fatalf("Could not find dep: %s %s", ns.Name, deployName)
t.Fatalf("Could not find deployment: %s %s", ns.Name, deployName)

@balopat balopat merged commit fb738d2 into GoogleContainerTools:master Mar 7, 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.

4 participants