Skip to content

fix: stop leaving a zombie git process behind every project pull - #293

Merged
fernandorocagonzalez merged 1 commit into
mainfrom
fix/git-rs-0.2.1
Nov 17, 2026
Merged

fernandorocagonzalez merged 1 commit into
mainfrom
fix/git-rs-0.2.1

Conversation

@fernandorocagonzalez

Copy link
Copy Markdown
Contributor

Moves git-rs to v0.2.1 (OpusProjects/git#4). After a fetch, git used to detach its automatic maintenance, which then got orphaned on PID 1 and stayed behind as a [git] <defunct>, one per pull. Now it runs in the foreground, inside the git we already wait on, so it is bounded by the project's timeout.

This goes together with #291 (tini as PID 1). Either one fixes the git zombies on its own. tini also covers anything a connector script leaves behind, and this covers whoever runs the binary without an init, like a plain docker run or a systemd unit with a custom setup.

Only the git-rs entry changes in Cargo.lock. I edited it by hand because cargo update -p git-rs also re-resolved unrelated crates (windows-sys, base64). Build with --locked, clippy and the full test suite all pass locally.

Moves git-rs to v0.2.1, which keeps git's automatic maintenance in the foreground after a fetch instead of letting it detach and end up orphaned on PID 1.
@fernandorocagonzalez
fernandorocagonzalez merged commit 709cd8e into main Nov 17, 2026
5 checks passed
@fernandorocagonzalez
fernandorocagonzalez deleted the fix/git-rs-0.2.1 branch November 17, 2026 15:58
@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
fernandorocagonzalez added a commit to OpusProjects/unified-gitops that referenced this pull request Nov 17, 2026
Moves git-rs to v0.2.1 (OpusProjects/git#4). After a fetch, git used to
detach its automatic maintenance, which then got orphaned on PID 1 and
stayed behind as a `[git] <defunct>`, one per pull. Now it runs in the
foreground, inside the git we already wait on.

Same fix unified-api got in OpusProjects/unified-api#293. Only the
git-rs entry changes in Cargo.lock, and it builds with --locked. Tests
pass locally. It needs #54 merged first so deny goes green.
fernandorocagonzalez pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.38.1](v0.38.0...v0.38.1)
(2026-11-17)


### Fixed

* run the service under tini so orphaned processes are reaped
([#291](#291))
([c26f21f](c26f21f))
* stop leaving a zombie git process behind every project pull
([#293](#293))
([709cd8e](709cd8e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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