Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/opencontainers/cgroups v0.0.1 -> v0.0.2 age adoption passing confidence

Release Notes

opencontainers/cgroups (github.com/opencontainers/cgroups)

v0.0.2

Compare Source

Added:

Changed:

  • Mark some fields with omitempty JSON attribute. (#​9)
  • Modernize code by using new Go features. (#​13)
  • CI: switch to golangci-lint v2. (#​12)

Fixed:

  • systemd: write rounded CPU quota to cgroupfs. (#​4)

Thanks to the following contributors who made this release possible:

Full Changelog: opencontainers/cgroups@v0.0.1...v0.0.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Apr 28, 2025
@sourcery-ai
Copy link

sourcery-ai bot commented Apr 28, 2025

Reviewer's Guide by Sourcery

Update the github.com/opencontainers/cgroups module to version v0.0.2. This version includes new CPU burst stats, a fix for systemd CPU quota rounding, code modernization, and updates to CI configuration.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Update github.com/opencontainers/cgroups dependency
  • Update module version in go.mod
  • Update checksums in go.sum
go.mod
go.sum
Add CPU burst statistics
  • Add support for CPU burst stats in cgroup v2
  • Include CPU burst stats in collected statistics
vendor/github.com/opencontainers/cgroups/fs2/cpu.go
vendor/github.com/opencontainers/cgroups/stats.go
Fix systemd CPU quota rounding
  • Correctly round CPU quota value when writing to cgroupfs for systemd
vendor/github.com/opencontainers/cgroups/v1_utils.go
Modernize code and update struct attributes
  • Apply omitempty JSON tag to various struct fields
  • Update code to use newer Go features
vendor/github.com/opencontainers/cgroups/config_linux.go
vendor/github.com/opencontainers/cgroups/devices/config/device.go
vendor/github.com/opencontainers/cgroups/fs/freezer.go
vendor/github.com/opencontainers/cgroups/fs2/memory.go
vendor/github.com/opencontainers/cgroups/fscommon/rdma.go
vendor/github.com/opencontainers/cgroups/utils.go
Update CI configuration
  • Add new golangci-lint configuration files
  • Switch to golangci-lint v2
  • Add nolintlint linter
vendor/github.com/opencontainers/cgroups/.golangci-extra.yml
vendor/github.com/opencontainers/cgroups/.golangci.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 2, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, renovate[bot]

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label May 2, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit dea0a09 into main May 2, 2025
15 checks passed
@renovate renovate bot deleted the renovate/github.com-opencontainers-cgroups-0.x branch May 2, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dependencies Pull requests that update a dependency file lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants