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 test debug #2399

Merged
merged 2 commits into from
Jul 3, 2019
Merged

Conversation

dgageot
Copy link
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

defer stop()

client.WaitForPodsReady(test.pods...)
client.WaitForDeploymentsToStabilize(test.deployments...)
Copy link
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
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
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
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

defer stop()

client.WaitForPodsReady(test.pods...)
client.WaitForDeploymentsToStabilize(test.deployments...)
for _, depName := range test.deployments {
Copy link
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

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
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