Skip to content

re-enable supported shell conformance suites - #784

Merged
ewhauser merged 4 commits into
mainfrom
ewhauser/reenable-supported-shell-conformance
Mar 29, 2026
Merged

ewhauser merged 4 commits into
mainfrom
ewhauser/reenable-supported-shell-conformance

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

This re-enables the supported non-bash shell conformance suites.

  • add pinned dash, mksh, and zsh oracle binaries to the flake and ensure-* scripts
  • update make conformance-test to provision and export those oracle paths
  • limit the default shell suite loop to bash, dash, mksh, and zsh
  • run gbash with the matching shell variant in the conformance harness, including a conformance-only dash alias that maps to the supported POSIX sh mode
  • add manifest coverage for the newly enabled shell suites plus a targeted dash hang skip
  • document the expanded conformance setup in the repo docs

Why

The harness already had support for alternate shell oracles, but the repo wiring only provisioned bash and curl. The remaining gap was that nested dash -c cases inside gbash were resolving to the copied oracle binary instead of gbash's supported sh implementation, which made the newly enabled suite fail for harness reasons rather than semantic ones.

This change wires the supported shells through the flake, Makefile, and harness, then marks the existing broad suite deltas as expected failures so the default target is green again.

Impact

  • make conformance-test now exercises the supported shell suite set instead of bash-only shell coverage.
  • The newly enabled dash, mksh, and zsh suites start behind coarse file-level xfail entries rather than a narrowly curated per-case manifest.
  • The checked-in manifest also records five previously untracked bash mismatches exposed by the full default run.

Validation

  • go test ./internal/builtins -run TestDashInvocationUsesPOSIXShellVariant -count=1
  • go test ./internal/conformance -run 'TestConformance/(dash|mksh|zsh)' -count=1 -timeout=20m
  • make conformance-test
  • make lint

@ewhauser ewhauser changed the title [codex] Re-enable supported shell conformance suites re-enable supported shell conformance suites Mar 29, 2026
@ewhauser
ewhauser marked this pull request as ready for review March 29, 2026 19:09
@ewhauser
ewhauser force-pushed the ewhauser/reenable-supported-shell-conformance branch from bf4e217 to 9477781 Compare March 29, 2026 19:24
@ewhauser
ewhauser merged commit d340d6b into main Mar 29, 2026
16 checks passed
@ewhauser
ewhauser deleted the ewhauser/reenable-supported-shell-conformance branch March 29, 2026 20:34
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