-
Notifications
You must be signed in to change notification settings - Fork 122
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
Integration tests: test upgrades including grace period #2796
Comments
+1 to allowing us to reduce the grace period rather than having a test that always takes 10+ minutes. |
Should we add this to this list: #2176 ? |
Yes |
The general approach I'm thinking of taking here is:
An alternative approach I considered was introducing the idea of a "developer-only" Agent configuration file, something like A third approach I'm considering is sort of a hybrid of the two mentioned above. Similar to the second approach, there could still be an optional I'm currently leaning towards the third approach, as it seems most extensible while also not polluting the main/production Agent configuration file. |
You may as well document it to save future developers time in discovering this exists, I can't see users modifying this unless we give them a reason to do it. I could see us choosing to set this value to zero as a way of disabling the watcher if we ever find a bug in it, which might be useful in support cases. I think just putting this in the main agent configuration file is fine, adding the .dev.yml file is additional complexity to protect us from an unlikely outcome. Realistically anyone who can figure out what the upgrade watcher configuration does can also figure out the .dev.yml file exists and just try to use that instead. |
Describe the enhancement:
In agent integration tests it should be possible to fully test the upgrade process by waiting for the grace period to expire thus confirming that the upgrade is successful.
Currently we cannot do that because the test would time out first (see #2752)
We need to either increase the timeout of the tests or reduce the grace period used by agent in integration tests (maybe as proposed here
Describe a specific use case for the enhancement or feature:
Any upgrade scenario that needs to be tested using integration tests
What is the definition of done?
Upgrade integration test can wait for the upgrade to be completed (including the grace period) without timing out
The text was updated successfully, but these errors were encountered: