fix: Preserve descendant TERM grace after leader exit #318

Open
erikinkinen wants to merge 5 commits from feature/descendant-termination-grace into feature/owned-boot-tool-producer
Owner

If a command leader exits quickly, the cleanup loop can skip TERM for escaped descendants and immediately send KILL. Keep the TERM phase active for the whole owned process forest within the original deadline. Observe leader termination before scanning adoption, then signal the actual adopted child handles.

The forced-retirement interval, native wait checks and cleanup failure rules remain unchanged. The regression control observes the real leader as terminal before cleanup and requires its escaped child to terminate through TERM.

Based on #314, with the catalog-layout repair from #315 composed normally.

If a command leader exits quickly, the cleanup loop can skip TERM for escaped descendants and immediately send KILL. Keep the TERM phase active for the whole owned process forest within the original deadline. Observe leader termination before scanning adoption, then signal the actual adopted child handles. The forced-retirement interval, native wait checks and cleanup failure rules remain unchanged. The regression control observes the real leader as terminal before cleanup and requires its escaped child to terminate through TERM. Based on [#314](https://git.erikinkinen.fi/erix/integration/pulls/314), with the catalog-layout repair from [#315](https://git.erikinkinen.fi/erix/integration/pulls/315) composed normally.
erikinkinen added this to the Alpha 1 milestone 2026-11-05 19:05:11 +01:00
fix: Check packaging catalogs against their actual source roles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / rust (push) Successful in 2m55s
CI / host_one (push) Successful in 13m45s
CI / host_zero (push) Successful in 15m31s
CI / integration (push) Failing after 2m6s
6b0723bdc4
Require component-backed tests to resolve their selected checkout and the synthetic shell test to retain its explicit fixture catalog. Keep sibling-checkout paths forbidden in both cases and preserve the fixture authority ceiling.
Compose the reviewed catalog-role checks before extending native descendant retirement.
fix: Preserve descendant TERM grace after leader exit
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / rust (push) Successful in 2m12s
CI / host_one (push) Successful in 10m10s
CI / host_zero (push) Successful in 10m17s
CI / integration (push) Failing after 1m28s
8a3758a8a3
Keep the TERM phase active for the actual owned forest after a fast leader exits. Observe leader termination before scanning adoption and retain the original grace and forced-retirement deadlines, so escaped descendants receive TERM before escalation.
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / integration (push) Has been cancelled
CI / markdown (push) Has been cancelled
72f91889b9
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
ci: Use shared development dependency profiles
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Successful in 6m18s
CI / host_one (push) Failing after 6m18s
CI / host_zero (push) Failing after 21m18s
CI / integration (push) Has been skipped
4753b854b7
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / rust (push) Successful in 6m18s
CI / host_one (push) Failing after 6m18s
CI / host_zero (push) Failing after 21m18s
CI / integration (push) Has been skipped
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/descendant-termination-grace:feature/descendant-termination-grace'
git switch 'feature/descendant-termination-grace'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/owned-boot-tool-producer'
git merge --no-ff 'feature/descendant-termination-grace'
git switch 'feature/descendant-termination-grace'
git rebase 'feature/owned-boot-tool-producer'
git switch 'feature/owned-boot-tool-producer'
git merge --ff-only 'feature/descendant-termination-grace'
git switch 'feature/descendant-termination-grace'
git rebase 'feature/owned-boot-tool-producer'
git switch 'feature/owned-boot-tool-producer'
git merge --no-ff 'feature/descendant-termination-grace'
git switch 'feature/owned-boot-tool-producer'
git merge --squash 'feature/descendant-termination-grace'
git switch 'feature/owned-boot-tool-producer'
git merge --ff-only 'feature/descendant-termination-grace'
git switch 'feature/owned-boot-tool-producer'
git merge 'feature/descendant-termination-grace'
git push origin 'feature/owned-boot-tool-producer'
Sign in to join this conversation.
No description provided.