-
Notifications
You must be signed in to change notification settings - Fork 0
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
Double timeout for Ansible test commands #4
base: master
Are you sure you want to change the base?
Conversation
Double timeout for Ansible test commands in qesap regression test_system. This is needed to avoid failure in `zypper ref` when LTSS modules are enabled.
WalkthroughThe pull request introduces a modification to the timeout parameter in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/sles4sap/qesapdeployment/test_system.pm (1)
31-31
: LGTM! The timeout increase addresses the PR objective.The change from 300s to 600s timeout will help prevent failures during
zypper ref
when LTSS modules are enabled.Consider optimizing by applying different timeouts based on the command complexity:
- qesap_ansible_cmd(cmd => $_, provider => $provider_setting, timeout => 600) for @remote_cmd; + my %cmd_timeouts = ( + 'zypper ref' => 600, # Needs extended timeout for LTSS modules + 'zypper lr' => 600, # Package listing might be slow with many repos + 'zypper in -f -y vim' => 600, # Package installation needs more time + 'zypper -n in ClusterTools2' => 600, # Package installation needs more time + ); + for my $cmd (@remote_cmd) { + my $timeout = $cmd_timeouts{$cmd} // 300; # Default to 300s for simple commands + qesap_ansible_cmd(cmd => $cmd, provider => $provider_setting, timeout => $timeout); + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
tests/sles4sap/qesapdeployment/test_system.pm
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
- GitHub Check: CI: Running compile tests with perl v5.26
- GitHub Check: CI: Running unit tests with perl v5.32
- GitHub Check: CI: Running static tests with perl v5.32
- GitHub Check: CI: Running compile tests with perl v5.26
- GitHub Check: CI: Running unit tests with perl v5.32
- GitHub Check: CI: Running static tests with perl v5.32
- GitHub Check: CI: Running compile tests with perl v5.26
Double timeout for Ansible test commands in qesap regression
test_system. This is needed to avoid failure in
zypper ref
when LTSSmodules are enabled.
Summary by CodeRabbit