Repository navigation
add additional tests for toCriSignal contract - #14073
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends CRI server unit tests to validate the toCRISignal compatibility contract for older container metadata that stored stop-signal strings without the newer SIGNAL_ prefix (introduced as a breaking change in the CRI API), ensuring such legacy values still map to the correct CRI enum.
Changes:
- Add test cases to
TestToCRISignalfor legacy unprefixed signal strings (e.g.,SIGTERM,SIGRTMIN+1).
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
mikebrow
force-pushed
the
additional-signal-testcases
branch
from
August 31, 2026 20:00
e9e0975 to
ff2bfac
Compare
mikebrow
force-pushed
the
additional-signal-testcases
branch
from
August 31, 2026 20:05
ff2bfac to
d269611
Compare
Signed-off-by: Mike Brown <[email protected]>
mikebrow
force-pushed
the
additional-signal-testcases
branch
from
August 31, 2026 20:10
d269611 to
961764f
Compare
mxpv
approved these changes
Aug 31, 2026
fuweid
approved these changes
Sep 1, 2026
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds tests to cover the new contract allowing older container metadata that was created before the CRI api introduced the breaking change, where signal string values became prefixed with SIGNAL_
closes todo #14051 (comment)