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

test: add timeout to context to trigger cleanup on wait for env ready #3894

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

randmonkey
Copy link
Contributor

What this PR does / why we need it:

Add a timeout to context passed into env.WaitForReady to trigger returning errors and cleanup, to avoid the timeout of test command that will not call the env cleanup, thus no diagnostics are outputted.

Which issue this PR fixes:

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • [ ] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR Just affect integration tests

@randmonkey randmonkey requested a review from a team as a code owner April 17, 2023 03:54
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (e8106f0) 59.0% compared to head (32c0148) 59.1%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3894   +/-   ##
=====================================
  Coverage   59.0%   59.1%           
=====================================
  Files        138     138           
  Lines      15965   15965           
=====================================
+ Hits        9434    9446   +12     
+ Misses      5890    5881    -9     
+ Partials     641     638    -3     

see 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Apr 17, 2023
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

While this looks good, my prior testing proved that when we want to get the diagnostics from the cluster that failed to get ready there's not much that can be obtained because kubectl invocations will fail.

It might help in case addons didn't get ready in time.

@randmonkey
Copy link
Contributor Author

While this looks good, my prior testing proved that when we want to get the diagnostics from the cluster that failed to get ready there's not much that can be obtained because kubectl invocations will fail.

It might help in case addons didn't get ready in time.

I think these should be added on KTF side to dump logs of kind . Do we have the issue now?

@randmonkey randmonkey merged commit 7ba7e2c into main Apr 17, 2023
@randmonkey randmonkey deleted the test/add_wait_env_logs branch April 17, 2023 08:48
@pmalek
Copy link
Member

pmalek commented Apr 17, 2023

I don't believe we have an issue for this.

@randmonkey
Copy link
Contributor Author

I don't believe we have an issue for this.

Kong/kubernetes-testing-framework#591 Does this PR help?

@pmalek
Copy link
Member

pmalek commented Apr 17, 2023

I don't believe we have an issue for this.

Kong/kubernetes-testing-framework#591 Does this PR help?

It might, I'm not sure though.

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.

2 participants