Skip to content

add additional tests for toCriSignal contract - #14073

Merged
fuweid merged 1 commit into
containerd:mainfrom
mikebrow:additional-signal-testcases
Sep 1, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
mikebrow:additional-signal-testcases

Conversation

@mikebrow

Copy link
Copy Markdown
Member

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)

Copilot AI lite review requested due to automatic review settings August 31, 2026 19:56
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 31, 2026
@mikebrow mikebrow added the area/cri Container Runtime Interface (CRI) label Aug 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 TestToCRISignal for 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
mikebrow force-pushed the additional-signal-testcases branch from e9e0975 to ff2bfac Compare August 31, 2026 20:00
Copilot AI review requested due to automatic review settings August 31, 2026 20:05
@mikebrow
mikebrow force-pushed the additional-signal-testcases branch from ff2bfac to d269611 Compare August 31, 2026 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mikebrow
mikebrow force-pushed the additional-signal-testcases branch from d269611 to 961764f Compare August 31, 2026 20:10
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Sep 1, 2026
@fuweid
fuweid added this pull request to the merge queue Sep 1, 2026
Merged via the queue into containerd:main with commit 3ee1777 Sep 1, 2026
93 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) size/XS

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants