Skip to content
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

Add slow_loadbalancers and refactor MockserverBackend #643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azgabur
Copy link
Contributor

@azgabur azgabur commented Feb 27, 2025

After trying testing on ROSA I noticed tests failing from loadbalancers not being ready due to them being attached to service but not yet started in AWS. I have maybe not a nice solution but I dont have any better idea to just add sleep in wait_for_ready in Gateway and Service methods. I put a toggle in settings.yaml in which this can be enabled as this happens only on AWS and it is pointless to have such long wait in other scenarios.

Additionally I refactored MockserverBackend to be better + factor out the hardcoded mockserver image.

@azgabur azgabur requested review from trepel and averevki February 27, 2025 22:00
@azgabur azgabur force-pushed the refactor-mockserver branch from e9bba6c to 5b6380d Compare February 27, 2025 22:00
lambda obj: "ip" in self.service.refresh().model.status.loadBalancer.ingress[0], timelimit=timeout
)
assert success, f"Service {self.name} did not get ready in time"
def wait_for_ready(self, timeout=60 * 5):
Copy link
Contributor

@trepel trepel Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do you actually call this method? I can see that you removed the self.deployment.wait_for_ready() call (was on line 26) and moved it into this method but I am struggling to see where this method is actually used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants