Skip to content

Simplify test debug#2399

Merged
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
dgageot:simplify-test-debug
Jul 3, 2019
Merged

Simplify test debug#2399
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
dgageot:simplify-test-debug

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Jul 3, 2019

  • Remove code that's not required
  • Use base images that are already used elsewhere. It might help reduce the number of images we pull

See #2398

dgageot added 2 commits July 3, 2019 18:19
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
defer stop()

client.WaitForPodsReady(test.pods...)
client.WaitForDeploymentsToStabilize(test.deployments...)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The jib example is a deployment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure I understand your point

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

By deleting this line, the deployments may not be stabilized before the test continues. Right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

GetDeployment does it


client.WaitForPodsReady(test.pods...)
client.WaitForDeploymentsToStabilize(test.deployments...)
for _, depName := range test.deployments {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm this should be testing the pods too. I'll fix that separately.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 3, 2019

Codecov Report

Merging #2399 into master will not change coverage.
The diff coverage is n/a.

@dgageot
Copy link
Copy Markdown
Contributor Author

dgageot commented Jul 3, 2019

BEFORE:

--- PASS: TestDebug/kubectl (212.36s)
--- PASS: TestDebug/kustomize (55.63s)

AFTER:

--- PASS: TestDebug/kubectl (83.07s)
--- PASS: TestDebug/kustomize (23.91s)

@dgageot dgageot merged commit 671c321 into GoogleContainerTools:master Jul 3, 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.

3 participants