Integration tests: check reboot with boot ID, test Ingress resolvability, wait for image committed#310
Conversation
Waiting for SSH unavailability is unreliable when the reboot is fast. Instead, check for SSH availability and a changed boot ID. Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
and retry up to 3 times. Also bump timeout for creation. Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
Reviewer's GuideIntegration test reliability improvements: VM reboot detection now uses boot IDs instead of SSH unavailability, OpenShift ingress exposure includes DNS resolvability retries and longer timeouts, and cluster tests wait for ApprovedImage to reach Committed state to avoid later Trustee failures. 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:
- There are now two different APPROVED_IMAGE_NAME constants (one in test_utils and one in tests/trusted_execution_cluster.rs); consider consolidating to a single shared constant to avoid divergence or confusion if the name ever changes.
- In the OpenShift expose_service logic, repeatedly patching the Service type back and forth between LoadBalancer and ClusterIP on failures may have side effects if other code relies on the Service type; if possible, consider a less intrusive mechanism for retrying ingress/DNS resolution (e.g., leaving it as LoadBalancer and only retrying the readiness and DNS checks).
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- There are now two different APPROVED_IMAGE_NAME constants (one in test_utils and one in tests/trusted_execution_cluster.rs); consider consolidating to a single shared constant to avoid divergence or confusion if the name ever changes.
- In the OpenShift expose_service logic, repeatedly patching the Service type back and forth between LoadBalancer and ClusterIP on failures may have side effects if other code relies on the Service type; if possible, consider a less intrusive mechanism for retrying ingress/DNS resolution (e.g., leaving it as LoadBalancer and only retrying the readiness and DNS checks).Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
to catch early if it wasn't committed, which would lead to Trustee failures later Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
80ed014 to
55e67c4
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alicefr, Jakob-Naucke The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Looks good and good idea about the boot id! |
afa5881
into
trusted-execution-clusters:main
failures later
First two commits assisted by AI.
Summary by Sourcery
Improve integration test reliability around VM reboot behavior, OpenShift ingress exposure, and ApprovedImage readiness.
New Features:
Enhancements:
Tests: