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

Can't set custom GracePeriod on uninterruptible clean up node #1344

Closed
eugenenosenko opened this issue Jan 24, 2024 · 2 comments
Closed

Can't set custom GracePeriod on uninterruptible clean up node #1344

eugenenosenko opened this issue Jan 24, 2024 · 2 comments

Comments

@eugenenosenko
Copy link
Contributor

eugenenosenko commented Jan 24, 2024

Scenario:

  • Tests timeout after global timeout of 1h
  • ReportAfterSuite is run
  • If the !report.SuiteSucceeded reporting mechanism needs to first collect diagnostics ( which is a long running task, ~5min )
  • Grace period timeout occurs

I tried setting GracePeriod for ReportAfterSuite but I'm getting:

  [ReportAfterSuite] was passed NodeTimeout, SpecTimeout, or GracePeriod but
  does not have a callback that accepts a SpecContext or context.Context.  You
  must accept a context to enable timeouts and grace periods

It seems also that there is no way to pass Context to ReportAfterSuite so it's uninterruptable and I can't set custom GracePeriod.

Any suggestions on how to fix this?

Update: I created a draft PR #1345

@onsi
Copy link
Owner

onsi commented Jan 29, 2024

hey thanks for the PR - I left some comments over there.

@eugenenosenko
Copy link
Contributor Author

fixed in #1345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants