Repository navigation
vendor: github.com/containerd/nri v0.12.3 - #14065
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates vendored dependencies to newer main snapshots for github.com/containerd/nri and github.com/containerd/log, including new slog↔logrus bridging utilities and corresponding log-level call-site updates across containerd.
Changes:
- Bump
github.com/containerd/logandgithub.com/containerd/nrito newermainpseudo-versions (and refresh vendored contents / go.sum / modules.txt). - Add vendored
github.com/sirupsen/logrus/hooks/slogand wirecontainerd/logto optionally forward logrus throughlog/slog. - Update various call sites to use
log.<Level>Levelconstants instead of string level names; fix NRI sysctl removal bookkeeping.
Reviewed changes
Copilot reviewed 7 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Update vendored module versions and include new logrus hooks/slog package path. |
| vendor/github.com/sirupsen/logrus/hooks/slog/slog.go | New vendored adapter: forward logrus entries to slog. |
| vendor/github.com/sirupsen/logrus/hooks/slog/level.go | New vendored level mapping between logrus and slog. |
| vendor/github.com/sirupsen/logrus/hooks/slog/handler.go | New vendored adapter: forward slog records to logrus. |
| vendor/github.com/containerd/nri/pkg/adaptation/result.go | Fix sysctl removal markers to be written to Linux.Sysctl adjustments. |
| vendor/github.com/containerd/nri/Makefile | Switch NRI tests from ginkgo runner to go test coverage flow. |
| vendor/github.com/containerd/nri/.golangci.yml | Remove revive exclusion related to dot-imports (ginkgo/gomega tests). |
| vendor/github.com/containerd/log/slog.go | New optional slog forwarding hook for containerd/log. |
| vendor/github.com/containerd/log/context.go | Extend SetLevel to accept non-string level types; update SetFormat to configure slog when enabled. |
| vendor/github.com/containerd/log/.golangci.yml | Update golangci configuration schema and enabled tool set. |
| vendor/github.com/containerd/log/.gitattributes | Add LF normalization for the vendored module. |
| plugins/snapshots/devmapper/snapshotter_test.go | Use log.DebugLevel constant instead of "debug". |
| plugins/snapshots/devmapper/pool_device_test.go | Use log.DebugLevel constant instead of "debug". |
| pkg/shim/shim.go | Use log.DebugLevel constant instead of "debug". |
| core/snapshots/benchsuite/benchmark_test.go | Use log.ErrorLevel constant instead of "error". |
| cmd/ctr/app/main.go | Use log.DebugLevel constant instead of "debug". |
| cmd/containerd-stress/main.go | Use log.WarnLevel / log.DebugLevel constants instead of strings. |
| go.mod | Bump required versions for containerd/log and containerd/nri to main pseudo-versions. |
| go.sum | Refresh checksums for updated containerd/log and containerd/nri versions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟢 Approval recommended
The change is a straightforward dependency/vendor bump with a small, targeted upstream bugfix and no detected integration issues in the reviewed diffs.
Review details
- Files reviewed: 1/6 changed files
- Comments generated: 0 new
- Review effort level: Lite
There was a problem hiding this comment.
🟢 Approval recommended
The diff is a straightforward dependency/vendor sync and the only functional change is consistent with existing initialization of reply.adjust.Linux.Sysctl.
Review details
- Files reviewed: 1/6 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
@thaJeztah Just published https://github.com/containerd/nri/releases/tag/v0.12.3 so we can use that here. |
full diff: containerd/nri@v0.12.2...v0.12.3 Signed-off-by: Sebastiaan van Stijn <[email protected]>
|
@samuelkarp @dmcgowan updated to use the tag 👍 |
There was a problem hiding this comment.
🟢 Approval recommended
The changes are a straightforward dependency/vendor bump with a small, consistent fix in vendored sysctl adjustment handling and no identified issues in the modified hunks.
Review details
- Files reviewed: 1/6 changed files
- Comments generated: 0 new
- Review effort level: Lite
vendor: github.com/containerd/nri v0.12.3
full diff: containerd/nri@v0.12.2...v0.12.3