Repository navigation
ci(runner): read the host env file as text, and record the P620 slot count - #1868
Conversation
A NUL byte made grep call the file binary: it then named no refused line, and a valid line ending in a NUL passed. grep -a reads it as text, so that line is refused by its number. -- keeps a path starting with - from being read as an option.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…he five-slot memory estimate GNU grep still reads stdin for the path - after --, so --env-file - checked the launcher's stdin while docker read the file. A path starting with - now gets a ./ prefix for both. The README's five-slot estimate is about 21 GiB (17.2 GiB measured at four, plus about 4 GiB), which holds one browser spike, not two.
|
Review record (CodeRabbit hit its review limit on this PR, so per AGENTS.md a code-review agent's review stands in). omo-native-code-reviewer on 5d20636..b626807: APPROVE, no HIGH or MEDIUM. It confirmed the Two LOW findings, both fixed in 90c146d:
All 15 runner tests pass; |
|
Handing this PR to the pr-followups lane (lead's call): CI is green on 90c146d and the review record is above. The ci-p620-max lane is closing. |
|
Merge pass review-work report. Overall: PASSED. Under the maintainer's token rule, this follow-up to #1839's runner script merges on the code review, the merge pass's own check and CI, without the gate reviewer.
What was checked
Follow-ups (LOW)
All required checks are green, and no review thread is open. CodeRabbit did not review this PR (rate-limited or skipped). The reviews above stand in for it. |
What this does
A follow-up to #1839 with two commits that were not pushed before it merged.
run.shreads the host env file withgrep -a. With a NUL byte in the file, grep took it for binary andprinted "binary file matches" without line numbers, so a refused line went unnamed. Worse, a valid line
ending in a NUL (
CHECK_HOST_MAX_RUNS=6\0) passed the check. Now that line is refused and named by itsnumber.
-e <pattern> -- "$ENV_FILE"also keeps a path that starts with-from being read as a grep option.CHECK_HOST_MAX_RUNS=5(live in its host.env since 12:37 UTC). It gives the memorythis was sized from: under 17.2 GiB with four slot jobs and twelve runners busy, and about 4 GiB per slot
job, so near 25 GiB at five.
Why
The NUL and leading-dash cases came from a Codex review (Sol 6.1 Fast, xhigh) of #1839's allowlist commits. It
probed grep with NUL bytes, CRLF, unicode whitespace and long lines, and the session ended before it wrote a
report. Its other probes (CR inside a comment, unicode space, CRLF) are already refused by the allowlist, or are
lines Docker ignores, so they cannot pass a variable.
Verification
refuses a NUL byte in the host env file and names its line. It fails without-a; all 14 runnertests pass.
-x.envnow passes validation as a file.bun run check fastpasses (6394 unit tests).This changes the self-hosted runner launcher (what may reach PR job containers), so it needs the merge pass's
check like #1839.