test: remove redundant tuning tests from tests_skip_toolkit.yml#106
Merged
richm merged 1 commit intolinux-system-roles:mainfrom Mar 20, 2026
Merged
Conversation
The tests_skip_toolkit.yml file is focused on testing custom storage configuration, but it also included tests verifying system tuning operations (limits.conf and sysctl settings). These tuning tests are unrelated to the storage configuration being tested and are redundant because: 1. The test disables hpc_tuning: false, so tuning shouldn't be applied anyway 2. There are separate dedicated test scripts for verifying tuning: - /opt/hpc/azure/tests/test-tuning.sh The tuning verification tests in this file were: - Checking /etc/security/limits.d/90-hpc-limits.conf for memlock/nofile/stack - Checking sysctl settings for zone_reclaim_mode, neigh.gc_thresh*, and sunrpc.tcp_max_slot_table_entries Changes: - Remove "Print 90-hpc-limits.conf file" task - Remove "Verify limits in 90-hpc-limits.conf" assertion task - Remove "Verify sysctl settings set from templates" task - Keep "Flush handlers" as it's necessary for proper cleanup This makes the test file focused on its purpose (storage configuration) and removes confusion about why tuning tests exist when tuning is disabled. Created-by-AI: Claude Sonnet 4.5 Prompt: new modification: the tests_skip_toolkit.yml file is testing custom storage configuration, but it also unconditionally tests whether unrelated system tuning operations have been done. We have separate scripts for testing the system tuning has been applied correct, so the checks in the tests... are redundant. Remove the redundant CI tests. Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR narrows the scope of tests_skip_toolkit.yml so it only validates custom storage configuration behavior when hpc_tuning is disabled, by removing redundant system tuning checks (limits.conf and sysctl) while preserving handler flushing and cleanup behavior. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since this playbook is explicitly about testing behavior with
hpc_tuning: false, consider adding a simple assertion that tuning artifacts (e.g. limits/sysctl files or settings) are not present or applied, to make the intent of the scenario explicit and guard against regressions where tuning is accidentally enabled.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since this playbook is explicitly about testing behavior with `hpc_tuning: false`, consider adding a simple assertion that tuning artifacts (e.g. limits/sysctl files or settings) are *not* present or applied, to make the intent of the scenario explicit and guard against regressions where tuning is accidentally enabled.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
spetrosi
approved these changes
Mar 20, 2026
richm
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tests_skip_toolkit.yml file is focused on testing custom storage configuration, but it also included tests verifying system tuning operations (limits.conf and sysctl settings). These tuning tests are unrelated to the storage configuration being tested and are redundant because:
The tuning verification tests in this file were:
Changes:
This makes the test file focused on its purpose (storage configuration) and removes confusion about why tuning tests exist when tuning is disabled.
Created-by-AI: Claude Sonnet 4.5
Prompt: new modification: the tests_skip_toolkit.yml file is testing custom storage configuration, but it also unconditionally tests whether unrelated system tuning operations have been done. We have separate scripts for testing the system tuning has been applied correct, so the checks in the tests... are redundant. Remove the redundant CI tests.
Issue Tracker Tickets (Jira or BZ if any): https://redhat.atlassian.net/browse/RHELHPC-188
Summary by Sourcery
Remove redundant tuning checks from the tests_skip_toolkit.yml scenario so it only validates custom storage behavior when toolkit tuning is disabled.
Tests: