Skip to content

feat(systemd): templatize docker-prune unit for multi-host use#6730

Closed
RealDiligent wants to merge 1 commit into
JSONbored:mainfrom
RealDiligent:feat/docker-prune-templated-unit-4894
Closed

feat(systemd): templatize docker-prune unit for multi-host use#6730
RealDiligent wants to merge 1 commit into
JSONbored:mainfrom
RealDiligent:feat/docker-prune-templated-unit-4894

Conversation

@RealDiligent

Copy link
Copy Markdown
Contributor

Summary

  • Convert loopover-docker-prune into a systemd path-instance template (@.service / @.timer) so fleet hosts enable loopover-docker-prune@-opt-loopover.timer (etc.) without editing WorkingDirectory / ExecStart per machine.
  • Update install docs and cross-references to the new @ unit names.

Closes #4894

Test plan

  • Confirm example unit files use %I / %i correctly
  • Spot-check docs / .env.example / related systemd comments for stale non-template paths
  • CI green

@RealDiligent
RealDiligent requested a review from JSONbored as a code owner July 17, 2026 05:01
@RealDiligent

Copy link
Copy Markdown
Contributor Author

Closing: #4894 is assigned to the maintainer, so LoopOver will reject contributor PRs the same way it closed #6729 for #5228. Will pick an unassigned help-wanted issue instead.

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@loopover-orb loopover-orb Bot added the gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. label Jul 17, 2026
Use a path-instance @.service/@.timer so WorkingDirectory and ExecStart come from %I instead of a hand-edited /opt/loopover path per host.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.64%. Comparing base (9f77ee9) to head (969c995).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6730   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files         682      682           
  Lines       68103    68103           
  Branches    18688    18688           
=======================================
  Hits        63778    63778           
  Misses       3347     3347           
  Partials      978      978           
Flag Coverage Δ
shard-1 43.97% <ø> (ø)
shard-2 36.77% <ø> (ø)
shard-3 32.31% <ø> (ø)
shard-4 34.82% <ø> (+<0.01%) ⬆️
shard-5 31.01% <ø> (ø)
shard-6 45.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Labels

gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Templatize the docker-prune systemd unit for multi-host use

1 participant