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 e2e OOM tests #944

Merged
merged 4 commits into from
Nov 22, 2023
Merged

🧹 Add e2e OOM tests #944

merged 4 commits into from
Nov 22, 2023

Conversation

czunker
Copy link
Contributor

@czunker czunker commented Nov 20, 2023

This adds e2e tests for OOM of Scan API and node scan. This covers the two different cases we currently have: Deployment and CronJob.

Fixes #940

@czunker
Copy link
Contributor Author

czunker commented Nov 20, 2023

@czunker czunker force-pushed the christian/add_e2e_oom_tests branch from 4a21d0c to 26c717c Compare November 20, 2023 12:23
chris-rock
chris-rock previously approved these changes Nov 20, 2023
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @czunker

@czunker
Copy link
Contributor Author

czunker commented Nov 21, 2023

Finally, I found out why these tests are failing. We have a bug in the CronJob Schedule that makes these tests fail.

The schedule for the k8s resource scan is constantly changed and this changes the number of expected objects in these tests. I assume we have the actual bug from the beginning of the CronJobs, but exposed it with #938.

Need to find a fix for the schedule, before we can merge this PR.

@czunker
Copy link
Contributor Author

czunker commented Nov 21, 2023

When tests pass for #948 and it is merged, this needs a rebase for tests to also succeed here.

This adds e2e tests for OOM of Scan API and node scan. This covers the two different cases we currently have: Deployment and CronJob.

Fixes #940

Signed-off-by: Christian Zunker <[email protected]>
Signed-off-by: Christian Zunker <[email protected]>
Signed-off-by: Christian Zunker <[email protected]>
@czunker czunker force-pushed the christian/add_e2e_oom_tests branch 2 times, most recently from a3dcea7 to ccbe3ed Compare November 22, 2023 13:32
@czunker czunker force-pushed the christian/add_e2e_oom_tests branch from ccbe3ed to 03339a9 Compare November 22, 2023 14:28
@czunker czunker merged commit e73431a into main Nov 22, 2023
20 checks passed
@czunker czunker deleted the christian/add_e2e_oom_tests branch November 22, 2023 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create e2e test for OOMkilled status message
3 participants