Skip to content

fix: replace procps-ng with Toybox process probes - #43

Merged
longlho merged 1 commit into
mainfrom
codex/toybox-process-probe
Sep 20, 2026
Merged

longlho merged 1 commit into
mainfrom
codex/toybox-process-probe

Conversation

@longlho

@longlho longlho commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Bazel's native test launcher uses pgrep -a -g PGID to keep its cleanup helper alive while the test process group exists. The isolated test-tool bundle currently builds procps-ng solely for that probe, adding a source download and a compatibility patch alongside Toybox.

Use the already-declared static Toybox pgrep. A private shell adapter drops -a only for Bazel's exact three-argument probe: the launcher checks for nonempty output, so printing PIDs preserves its behavior. Other invocations retain Toybox's native argument handling. The pinned Toybox version also incorrectly shares ps -g's Unix-group selector with pgrep -g; extend the existing Toybox patch to select process groups for pgrep while preserving ps behavior. Remove the procps-ng repository and patch.

Generate the shell functions in the tool bundle so the launcher and utility tests use the same implementation. Exercise groups with a live leader, a surviving member after the leader exits, and no remaining members, with an empty PATH. Static ELF checks still cover every bundled executable.

@longlho
longlho marked this pull request as ready for review September 20, 2026 01:46
@longlho
longlho merged commit 6abdda6 into main Sep 20, 2026
13 checks passed
@longlho
longlho deleted the codex/toybox-process-probe branch September 20, 2026 14:04
longlho pushed a commit that referenced this pull request Sep 20, 2026
🤖 I have created a release *beep* *boop*
---


## 3.3.1 (2026-09-20)

## What's Changed
* fix: replace procps-ng with Toybox process probes by @longlho in
#43


**Full Changelog**:
v3.3.0...v3.3.1

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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