Skip to content

vendor: tags.cncf.io/container-device-interface 04278701a635 - #14043

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
thaJeztah:bump_cdi
Aug 26, 2026
Merged

samuelkarp merged 1 commit into
containerd:mainfrom
thaJeztah:bump_cdi

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Removes some dependencies, and fixes some concurrency issues.

full diff: cncf-tags/container-device-interface@05ae4b5...0427870

Removes some dependencies, and fixes some concurrency issues.

full diff: cncf-tags/container-device-interface@05ae4b5...0427870

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copilot AI lite review requested due to automatic review settings August 26, 2026 16:34
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 26, 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 vendors an updated snapshot of tags.cncf.io/container-device-interface into containerd, aiming to reduce external dependencies and improve thread-safety around the CDI spec cache and parsing.

Changes:

  • Switch CDI spec YAML handling to go.yaml.in/yaml/v3 (and adjust marshaling/unmarshaling).
  • Improve cache concurrency by moving to sync.RWMutex, reducing lock hold time in InjectDevices, and cloning returned error slices/maps to avoid sharing internal state.
  • Bump the vendored tags.cncf.io/container-device-interface module version (plus corresponding go.mod / go.sum / vendor/modules.txt updates).

Reviewed changes

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

Show a summary per file
File Description
vendor/tags.cncf.io/container-device-interface/pkg/cdi/spec.go Updates YAML encoding/decoding implementation and strictness behavior for spec parsing.
vendor/tags.cncf.io/container-device-interface/pkg/cdi/cache.go Refactors cache locking and error accessors to reduce contention and avoid exposing mutable internal data.
vendor/modules.txt Updates the vendored module version metadata for container-device-interface.
go.sum Updates checksums for the new container-device-interface pseudo-version.
go.mod Updates the required container-device-interface pseudo-version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 26, 2026
@samuelkarp
samuelkarp added this pull request to the merge queue Aug 26, 2026
Merged via the queue into containerd:main with commit 33f2278 Aug 26, 2026
95 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 26, 2026
@thaJeztah
thaJeztah deleted the bump_cdi branch August 26, 2026 23:31
@thaJeztah

Copy link
Copy Markdown
Member Author

I'm trying to get the final patches in in upstream and to get new tags (so mostly trying to keep in sync already)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants