Skip to content

fix(ci): reserve memory beside older Bosn engines - #685

Merged
zackees merged 1 commit into
mainfrom
fix/652-legacy-engine-memory-guard
Oct 18, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/652-legacy-engine-memory-guard

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Refs #652.

  • Reserve running Bosn engine memory limits before sizing a new shared engine, with 2 GiB host headroom. Reject unsafe pinned sizes and recheck at creation.
  • Warn about older or foreign running engines and wait for a different-release machine claim to drain before replacing it.
  • Record and compare the actual daemon release on machine claims while retaining compatibility with older unlabeled claims.
  • Add regression coverage for memory reservation, claim parsing, and different-release handoff.

The widget systemd unit upgrade path from #652 remains open and is also tracked by #678; this PR does not close #652.

Validation: RED focused test before implementation; 13 limits tests and 8 shared-engine tests pass; ./lint passes; local gate passes rust and tests lanes on the final tree; /clud-review recheck clears the scoped findings.

Local-Gate: v1 tree=47b94bc07bd50d62e60ef5cfb77e93312a7c77ee secs=213 lanes=rust:run,tests:run
Ci-Attestation: {"at":1792292678,"gate":"rust/all/fmt","host":"linux-x86_64","key":"dd22b997d5844bfd08cbd767ff4d4258cf2af1d399eb25bcec43770e8ebf7f15","lane":"rust","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":213,"stamp":"58a1dc5c2c1cff451a39f11c6f21f95c","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"rust/all/boundary","host":"linux-x86_64","key":"dd22b997d5844bfd08cbd767ff4d4258cf2af1d399eb25bcec43770e8ebf7f15","lane":"rust","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":213,"stamp":"47fb2e00f70ffc627e676f7c2d8e8d9e","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"dd22b997d5844bfd08cbd767ff4d4258cf2af1d399eb25bcec43770e8ebf7f15","lane":"rust","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":213,"stamp":"3fb798b0373b2f7eaec46c234f92fe1b","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"dd22b997d5844bfd08cbd767ff4d4258cf2af1d399eb25bcec43770e8ebf7f15","lane":"rust","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":213,"stamp":"4f623e53a87ce9d5ed790312bc1705a9","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"python/all/static","host":"linux-x86_64","key":"e4ced2bb4fccfcf15e7bbc96c0b57560d32f3d04924f906461a0826fa804d37f","lane":"tests","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":181,"stamp":"a2302bfed1891ed5e549761ba98a0455","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"general/all/ci-policy","host":"linux-x86_64","key":"e4ced2bb4fccfcf15e7bbc96c0b57560d32f3d04924f906461a0826fa804d37f","lane":"tests","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":181,"stamp":"9c7e31519df941d88044e5b6b2305dc1","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
Ci-Attestation: {"at":1792292678,"gate":"python/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"e4ced2bb4fccfcf15e7bbc96c0b57560d32f3d04924f906461a0826fa804d37f","lane":"tests","parents":["1841ffdde72734e17ba82c3afe3f4894a5677133"],"secs":181,"stamp":"018555fd4660c0529ba9191080e619d1","tree":"47b94bc07bd50d62e60ef5cfb77e93312a7c77ee","v":1,"via":"run"}
@zackees
zackees merged commit f03038c into main Oct 18, 2026
14 checks passed
@zackees
zackees deleted the fix/652-legacy-engine-memory-guard branch October 18, 2026 03:06
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.

Pre-#544 daemons overcommit host memory beside the shared engine; no guard against older versions

1 participant