Skip to content

Update dependency muontrap to v2 - #157

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/muontrap-2.x
Closed

Update dependency muontrap to v2#157
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/muontrap-2.x

Conversation

@renovate

@renovate renovate Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
muontrap (source) prod major ~> 1.8~> 2.0

Release Notes

fhunleth/muontrap (muontrap)

v2.0.0

Compare Source

This release adds support for cgroup v2. This replaces cgroup v1 support, which
lacks functionality and is becoming less widely supported. While Nerves is the
current development platform for cgroup support, using cgroups on desktop Linux
works but may not be ergonomic. PRs in this area are welcome.

If you don't use cgroups, this update is not breaking for you. Library authors
are encouraged to allow both MuonTrap v1 and v2 if your library falls into this
category.

  • Breaking changes

    • Cgroup v1 support removed
    • :cgroup_controllers and :cgroup_sets options replaced by a single
      :cgroup configuration map
    • MuonTrap.Daemon.cgget/cgset API changed for v2. They've been
      de-emphasized for configuration due to their low-level nature
  • New features

    • Add new :cgroup configuration option as a more Elixir-friendly
      configuration method
    • MuonTrap.Daemon.cgroup_config/1 returns the daemon's writable cgroup
      settings as a map keyed by the same atoms accepted by the :cgroup
      option, suitable for round-tripping into another daemon.
    • MuonTrap.Daemon.statistics/1 now also returns cgroup statistics as a map
      under the :cgroup key. Map keys are strings that match cgroup file names
      exposed by the kernel (memory usage and peak, CPU and memory PSI,
      OOM-kill counts, pids.current, etc.).
    • MuonTrap.Daemon.cgroup_path/1 returns the daemon's cgroup path (or
      nil if the daemon isn't running under a cgroup).
    • MuonTrap now uses cgroup.kill (kernel 5.14+) for atomic cgroup teardown
      when available, falling back to per-pid SIGKILL on older kernels.

The new configuration gives a feel for how the API has changed to reduce
manual string-based interactions:

cgroup_controllers: ["memory", "cpu"],
cgroup_sets: [
  {"memory", "memory.max", "268435456"},
  {"cpu", "cpu.max", "50000 100000"}
]

cgroup: %{
  memory_max: 256*1024*1024,
  cpu_max: {50_000, 100_000}
}
  • Fixes
    • Fix truncated output when a command exits (Thanks @​dcalvo)
    • Gracefully handle an already-closed port (Thanks @​bencoppock)
    • Fix :epipe failures for commands that produce output. (Thanks @​dcalvo!)
    • Fix test failures on Ubuntu 26.04 and expand CI tests to cover Ubuntu
      releases and macOS versions. Previously CI only verified Alpine Linux.

Configuration

📅 Schedule: (UTC)

  • 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 becomes conflicted, 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.

@renovate

renovate Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
Command failed: install-tool elixir v1.20.3

@bbangert bbangert closed this Aug 14, 2026
@renovate
renovate Bot deleted the renovate/muontrap-2.x branch August 14, 2026 01:09
@renovate

renovate Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant