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

Add a random offset to the update script when running non-interactively. #9245

Merged
merged 4 commits into from Jun 3, 2020

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented Jun 1, 2020

Summary

This reuses the code from #9079 but adds a CLI option to the script itself to disable the random offset when running from CI.

Component Name

area/packaging

Test Plan

Verified locally that the offset code works correctly.

CI fixes verified on this PR.

Primarily intended for CI, also useful for automated deployment tools
like Ansible.
@squash-labs
Copy link

squash-labs bot commented Jun 1, 2020

Manage this branch in Squash

Test this branch here: https://ferroinrandom-offset-for-updat-hb68z.squash.io

@github-actions github-actions bot added area/packaging Packaging and operating systems support area/tests labels Jun 1, 2020
@Ferroin Ferroin force-pushed the random-offset-for-updates branch from 4c71e0c to aa92890 Compare June 1, 2020 20:05
knatsakis
knatsakis previously approved these changes Jun 1, 2020
@Ferroin
Copy link
Member Author

Ferroin commented Jun 1, 2020

Marking this ready for review. Tests in Travis have passed twice on the current commit with minimal variance and no failures.

@Ferroin Ferroin marked this pull request as ready for review June 1, 2020 20:30
prologic
prologic previously approved these changes Jun 2, 2020
packaging/installer/netdata-updater.sh Outdated Show resolved Hide resolved
@Ferroin Ferroin dismissed stale reviews from prologic and knatsakis via 844695a June 2, 2020 11:50
@Ferroin Ferroin merged commit b63d58f into netdata:master Jun 3, 2020
@Ferroin Ferroin deleted the random-offset-for-updates branch June 3, 2020 12:26
Saruspete pushed a commit to Saruspete/netdata that referenced this pull request Jun 17, 2020
…ly. (netdata#9245)

* Revert "Revert "Introduce a random sleep in the Netdata updater (netdata#9079)" (netdata#9161)"

This reverts commit e92d2ce.

* Add option to updater to disable randomized delay.

Primarily intended for CI, also useful for automated deployment tools
like Ansible.

* Use correct paths in CI.

* Mke variable name match option name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support area/tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants