NO-ISSUE: Test restart optimizations#7025
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test e2e-aws-tests |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pacevedom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughMultiple Robot Framework test suites are refactored to shift when MicroShift is restarted during test cleanup. Per-test teardowns/setups now generally only remove drop-in configuration files, while suite-level Teardown keywords are expanded to perform config removal and a single restart at suite end. ChangesTest suite teardown restructuring
Estimated code review effort: 2 (Simple) | ~12 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/suites/configuration2/kustomize-sources.robot (1)
162-164: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueFix inaccurate documentation in
Cleanup Kustomize Test.The doc says "The next test's setup will restart MicroShift," but there is no
[Setup]keyword on the tests — the restart happens in the test body viaDrop In MicroShift Config+Restart MicroShift.📝 Suggested doc fix
Cleanup Kustomize Test - [Documentation] Standard cleanup for a single-path kustomize test without restarting. - ... The next test's setup will restart MicroShift. + [Documentation] Standard cleanup for a single-path kustomize test without restarting. + ... The next test will restart MicroShift with its own config.🤖 Prompt for 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. In `@test/suites/configuration2/kustomize-sources.robot` around lines 162 - 164, The documentation for Cleanup Kustomize Test is inaccurate: it says the next test’s setup restarts MicroShift, but the restart actually happens in the test body. Update the [Documentation] text on Cleanup Kustomize Test to describe the cleanup accurately, and make it consistent with the related Drop In MicroShift Config and Restart MicroShift keywords instead of referring to a nonexistent setup restart.
🤖 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.
Nitpick comments:
In `@test/suites/configuration2/kustomize-sources.robot`:
- Around line 162-164: The documentation for Cleanup Kustomize Test is
inaccurate: it says the next test’s setup restarts MicroShift, but the restart
actually happens in the test body. Update the [Documentation] text on Cleanup
Kustomize Test to describe the cleanup accurately, and make it consistent with
the related Drop In MicroShift Config and Restart MicroShift keywords instead of
referring to a nonexistent setup restart.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 419ddfa5-37b0-45c3-a7e9-1d395b057740
📒 Files selected for processing (7)
test/suites/configuration1/configuration.robottest/suites/configuration1/dns-resource-configuration.robottest/suites/configuration2/audit-log.robottest/suites/configuration2/kustomize-sources.robottest/suites/standard1/etcd.robottest/suites/standard2/feature-gates.robottest/suites/telemetry/telemetry.robot
|
@pacevedom: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
|
@pacevedom: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Due to the latest rebase PRs, MicroShift may take a bit more time to fully restart because there are more containers that need to signal readiness.
Because of this, there is a need to have efficient test cases that minimize the number of restarts while keeping the functional checks and correct MicroShift behavior, which is what this PR is addressing.
Summary by CodeRabbit