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

Only install timesync packages if needed #1853

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 13, 2024

Chrony/NTP is only needed if timesync is requested. In some cases (like containers) it never makes sense.

This was inspired by voxpupuli/beaker-hostgenerator#359 (comment) and currently testing it out.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 13.33333% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 51.60%. Comparing base (2a89cfc) to head (e3ec2d5).

❗ Current head e3ec2d5 differs from pull request most recent head c2d1b84. Consider uploading reports for the commit c2d1b84 to get more accurate results

Files Patch % Lines
lib/beaker/platform.rb 11.53% 23 Missing ⚠️
lib/beaker/host_prebuilt_steps.rb 25.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1853       +/-   ##
===========================================
- Coverage   74.62%   51.60%   -23.03%     
===========================================
  Files          81       81               
  Lines        4492     4498        +6     
===========================================
- Hits         3352     2321     -1031     
- Misses       1140     2177     +1037     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ekohl ekohl force-pushed the only-install-timesync-packages-if-needed branch from 37a4799 to 423fb62 Compare March 13, 2024 19:42
Chrony/NTP is only needed if timesync is requested. In some cases (like
containers) it never makes sense.

Which packages are installed is really platform specific logic, so it
should live in the platform class.
@ekohl ekohl force-pushed the only-install-timesync-packages-if-needed branch from 6700df9 to e3ec2d5 Compare March 14, 2024 15:02
@ekohl
Copy link
Member Author

ekohl commented Mar 14, 2024

This is still a draft. The fail because the tests don't ensure platform is an instance of Beaker::Platform, unlike the real application. #1855 is a start for that.

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.

None yet

3 participants