Skip to content

test(compat): make GNU parity fixtures portable - #2951

Merged
chaliy merged 2 commits into
mainfrom
maintenance/gnu-parity-2026-11-18
Nov 18, 2026
Merged

chaliy merged 2 commits into
mainfrom
maintenance/gnu-parity-2026-11-18

Conversation

@chaliy

@chaliy chaliy commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Launch the GNU Bash oracle with the same initial umask as Bashkit and clear inherited noninteractive startup configuration.
  • Create PATH fixtures under the runner’s temporary directory, wait explicitly for the completed background job, and compare the stable part of GNU fmt’s range diagnostic.
  • Report a missing GNU bc and propagate strict comparison failures with the wrapper’s diagnostic.

Before and after

Strict comparison reported 21 disagreements on Debian 13 with a restrictive parent umask. GNU bc was missing. Several fixtures depended on writing in a system directory or on timing and GNU coreutils version. All five changed fixtures now match the expected output on GNU Bash 5.2 and Bashkit. The full just check-bash-compat comparison passes against GNU Bash, sed, and grep with a parent umask of 077. Bash startup applies the test umask without shifting line-sensitive expectations.

Risk

Changes affect the test harness and fixtures. The same shell operations and exit statuses remain covered.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit acf756a Commit Preview URL

Branch Preview URL
Nov 18 2026, 08:27 PM

@chaliy
chaliy marked this pull request as ready for review November 18, 2026 20:28
@chaliy
chaliy merged commit 73acf02 into main Nov 18, 2026
51 checks passed
@chaliy
chaliy deleted the maintenance/gnu-parity-2026-11-18 branch November 18, 2026 21:05
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