Skip to content

feat: try to fix bugs I saw in the wild in the resource parsing logic - #11513

Merged
bolinfest merged 1 commit into
mainfrom
pr11513
Feb 12, 2026
Merged

bolinfest merged 1 commit into
mainfrom
pr11513

Conversation

@bolinfest

@bolinfest bolinfest commented Feb 12, 2026 •

Copy link
Copy Markdown
Collaborator

I gave Codex the following bug report about the logic to report the host's resources introduced in #11488 and this PR is its proposed fix.

The fix seems like an escaping issue, mostly.


The logic to print out the runner specs has an awk error on Mac:

Runner: GitHub Actions 1014936475
OS: macOS 15.7.3
Hardware model: VirtualMac2,1
CPU architecture: arm64
Logical CPUs: 5
Physical CPUs: 5
awk: syntax error at source line 1
 context is
	{printf >>>  \ <<< "%.1f GiB\\n\", $1 / 1024 / 1024 / 1024}
awk: illegal statement at source line 1
Total RAM: 
Disk usage:
Filesystem      Size    Used   Avail Capacity iused ifree %iused  Mounted on
/dev/disk3s5   320Gi   237Gi    64Gi    79%    2.0M  671M    0%   /System/Volumes/Data

as well as Linux:

Runner: GitHub Actions 1014936469
OS: Linux runnervmwffz4 6.11.0-1018-azure #18~24.04.1-Ubuntu SMP Sat Jun 28 04:46:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
awk: cmd. line:1: /Model name/ {gsub(/^[ \t]+/,\"\",$2); print $2; exit}
awk: cmd. line:1:                              ^ backslash not last character on line
CPU model: 
Logical CPUs: 4
awk: cmd. line:1: /MemTotal/ {printf \"%.1f GiB\\n\", $2 / 1024 / 1024}
awk: cmd. line:1:                    ^ backslash not last character on line
Total RAM: 
Disk usage:
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        72G   50G   22G  70% /

@bolinfest
bolinfest merged commit fd1efb8 into main Feb 12, 2026
32 checks passed
@bolinfest
bolinfest deleted the pr11513 branch February 12, 2026 00:50
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants