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

feat(e2e): Set a more reasonable default for gomega eventually's polling interval #4008

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

lburgazzoli
Copy link
Contributor

@lburgazzoli lburgazzoli commented Jan 25, 2023

Fixes #3992

This commit set a more reasonable default for gomega inetrnal timeout
and poll interval used for e2e testing.

The defaults are:

  • EventuallyTimeout is set to 1s (not changed)
  • EventuallyPollingInterval is set to 500ms
  • ConsistentlyDuration is set to 100ms (not changed)
  • EventuallyPollingInterval is set to 500ms

Values can be configured via env vars:

  • E2E_DEFAULT_EVENTUALLY_TIMEOUT
  • E2E_DEFAULT_EVENTUALLY_POLLING_INTERVAL
  • E2E_DEFAULT_CONSISTENTLY_DURATION
  • E2E_DEFAULT_CONSISTENTLY_POLLING_INTERVAL

Release Note

NONE

…ing interval apache#3992

This commit set a more reasonable default for gomega inetrnal timeout
and poll interval used for e2e testing.

The defaults are:
- EventuallyTimeout is set to 1s (not changed)
- EventuallyPollingInterval is set to 500ms
- ConsistentlyDuration is set to 100ms (not changed)
- EventuallyPollingInterval is set to 500ms

Values can be configured via env vars:
- E2E_DEFAULT_EVENTUALLY_TIMEOUT
- E2E_DEFAULT_EVENTUALLY_POLLING_INTERVAL
- E2E_DEFAULT_CONSISTENTLY_DURATION
- E2E_DEFAULT_CONSISTENTLY_POLLING_INTERVAL
@lburgazzoli lburgazzoli changed the title feat(e2e): Set a more reasonable default for gomega eventually's polling interval #3992 feat(e2e): Set a more reasonable default for gomega eventually's polling interval Jan 25, 2023
eventuallyTimeoutEnvVarName = "E2E_DEFAULT_EVENTUALLY_TIMEOUT"
eventuallyPollingIntervalEnvVarName = "E2E_DEFAULT_EVENTUALLY_POLLING_INTERVAL"
consistentlyDurationEnvVarName = "E2E_DEFAULT_CONSISTENTLY_DURATION"
consistentlyPollingIntervalEnvVarName = "E2E_DEFAULT_CONSISTENTLY_POLLING_INTERVAL"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here I have introduced some additional env vars to that mirrors the GOMEGA_ ones, not sure if is the best choice or if it would have been better to re-use the same env vars

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

It will be nice to see how long does it take now to build :)

@lburgazzoli lburgazzoli marked this pull request as ready for review January 25, 2023 10:52
@lburgazzoli
Copy link
Contributor Author

It will be nice to see how long does it take now to build :)

Not sure if it would really speed up the build but hopefully it would improve the stability

@squakez squakez merged commit 69a0df8 into apache:main Jan 25, 2023
@lburgazzoli lburgazzoli deleted the github-3992 branch January 26, 2023 07:01
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

Successfully merging this pull request may close these issues.

Set a more reasonable default for gomega eventually's polling interval
4 participants