fix!: Do not enforce bootloader timeout default#223
Conversation
|
Warning Review limit reached
Next review available in: 43 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughChangesBootloader timeout handling
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[citest] |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@defaults/main.yml`:
- Line 3: Update the README documentation for bootloader_timeout to show null as
the default and state that existing GRUB timeout settings are preserved unless
the variable is explicitly set. Revise the example playbook text to clarify that
bootloader_timeout: 5 opts in to managing the GRUB timeout.
In `@tasks/main.yml`:
- Around line 106-108: Extend the tests in the tests/ directory to cover the
bootloader_timeout null/default path introduced by the “Update boot loader
timeout configuration” task. Verify that when bootloader_timeout is left null,
the task does not modify the existing bootloader timeout configuration.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 21ba376d-ea9a-4f12-8433-46f5f936ef12
📒 Files selected for processing (2)
defaults/main.ymltasks/main.yml
|
If the grub timeout is already set, how does the user remove the timeout? |
My suggestion would be - if |
My understanding was that there is always some timeout. The default is 5, and you can probably disable it by setting to 0. I'll test what happens when it's not present in the config.
Again same issue - users set the timeout to 30 manually, then run the role, and it removes their setting even though they didn't specify timeout variable. It forces users to go check what is their timeout and set |
|
Default timeout setting in /etc/default/grub: Default timeout setting in /boot/grub2/grub.cfg: Removing the setting in /etc/default/grub allows reboot. Removing it from /boot/grub2/grub.cfg breaks the system and doesn't allow reboot. So this is a native setting that is not to be removed. |
9e627c8 to
e707f24
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Around line 103-107: Update the bootloader_timeout documentation to state that
a value of null preserves the existing timeout, matching the role’s skip
behavior, rather than referring to an unset variable. Add a playbook example
demonstrating both null preserving the current setting and an explicit integer
changing the timeout.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a75f3449-50b5-43f5-a658-7a163242cfb4
📒 Files selected for processing (3)
README.mddefaults/main.ymltasks/main.yml
🚧 Files skipped from review as they are similar to previous changes (2)
- tasks/main.yml
- defaults/main.yml
|
[citest] |
e707f24 to
a3eda6c
Compare
|
[citest] |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tasks/main.yml`:
- Around line 106-108: Update the GRUB configuration template’s bootloader
timeout rendering to apply the same `bootloader_timeout is not none` guard used
by the “Update boot loader timeout configuration” task, so fresh installs omit
the timeout line when the value is null instead of rendering
`GRUB_TIMEOUT=None`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 99d276b2-3ece-4e3d-bf9f-76f4e380e41b
📒 Files selected for processing (3)
README.mddefaults/main.ymltasks/main.yml
🚧 Files skipped from review as they are similar to previous changes (1)
- defaults/main.yml
In the scenario where users manually change the timeout to be different than the default 5, the role force overwrites this setting to the default value of the bootloader_timeout variable. This fix sets the bootloader_timeout to null by default, so that the role changes the timeout only when users specify value for the bootloader_timeout variable in their playbook.
a3eda6c to
c6f0307
Compare
|
[citest] |
1 similar comment
|
[citest] |
Enhancement: Do not enforce bootloader timeout default
Reason: In the scenario where users manually change the timeout to be different than the default 5, the role force overwrites this setting to the default value of the bootloader_timeout variable.
Result: This fix sets the bootloader_timeout to null by default, so that the role changes the timeout only when users specify value for the bootloader_timeout variable in their playbook.
Issue Tracker Tickets (Jira or BZ if any): https://redhat.atlassian.net/browse/RHEL-211556
Summary by CodeRabbit
bootloader_timeoutdocs to reflect the new default (null) and clarify that the role only changes GRUB timeout when you set it.