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 workload delete test and refactor signal handling in run_wasi function #46

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

rajatjindal
Copy link
Member

@rajatjindal rajatjindal commented Mar 17, 2024

This PR adds a simple test case to validate that the pod is deleted successfully in a timely manner.

This PR also moves the signal handling to run_wasi function to ensure the pod can be terminated successfully even if the pod was requested to be deleted before the run_trigger function had setup the signals. Without this, there was a race condition between setting up of signals and receiving the signal, causing consistent failure on CI with the newly added testcase (and inconsistent failure when running locally)

@jsturtevant
Copy link
Contributor

With #47 this should be ready to test

@rajatjindal rajatjindal marked this pull request as ready for review March 20, 2024 00:15
@rajatjindal rajatjindal changed the title [wip] add workload delete test add workload delete test Mar 20, 2024
Signed-off-by: Rajat Jindal <[email protected]>
@rajatjindal rajatjindal force-pushed the e2e-test branch 2 times, most recently from c15a845 to 8ddac76 Compare March 25, 2024 18:55
@rajatjindal
Copy link
Member Author

rajatjindal commented Mar 26, 2024

requesting review from @Mossaka @jsturtevant @kate-goldenring

@radu-matei
Copy link
Member

Could you update the title of the PR to reflect that it's also changing signal handling logic, please?

Thanks!

@rajatjindal rajatjindal changed the title add workload delete test add workload delete test and refactor signal handling in run_wasi Mar 26, 2024
@rajatjindal rajatjindal changed the title add workload delete test and refactor signal handling in run_wasi add workload delete test and refactor signal handling in run_wasi function Mar 26, 2024
Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

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

LGTM

@jsturtevant jsturtevant merged commit f28792b into spinkube:main Mar 27, 2024
9 checks passed
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.

4 participants