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

control-service: fix oom tests #2028

Merged
merged 10 commits into from
May 11, 2023
Merged

control-service: fix oom tests #2028

merged 10 commits into from
May 11, 2023

Conversation

murphp15
Copy link
Collaborator

@murphp15 murphp15 commented May 9, 2023

Why

In this PR I fix a very unstable oom test.
The test is very unstable for a number of reasons.

  1. sometime the job actually succeeds, it seems to be able to compelte with in the memory limits after a number of retries.
    We can put the memory requirement any lower to ensure an error because 6mi is the lower limit supported by k8s.
  2. on of the assertions we were making is that the logs are there. However often if the jobs is killed at the very start there are no logs.

What

I fix it by using a cronjob template which doesn't let the job restart. This means if it fails once it will report as failed.

How has this been tested?

integration tests.

@mivanov1988
Copy link
Collaborator

Good job!

@murphp15 murphp15 enabled auto-merge (squash) May 11, 2023 09:07
@murphp15 murphp15 disabled auto-merge May 11, 2023 12:35
@murphp15 murphp15 enabled auto-merge (squash) May 11, 2023 13:15
@murphp15 murphp15 merged commit 61f1192 into main May 11, 2023
@murphp15 murphp15 deleted the person/murphp15/fix_oom_tests branch May 11, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants