Skip to content

xargs: warn when parallel execution is unavailable - #838

Merged
ewhauser merged 4 commits into
mainfrom
codex/xargs-parallel-warning
Jul 12, 2026
Merged

ewhauser merged 4 commits into
mainfrom
codex/xargs-parallel-warning

Conversation

@ewhauser

@ewhauser ewhauser commented Jul 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • warn when -P N or --max-procs=N requests unsupported parallel execution
  • continue running tasks serially instead of silently ignoring the option
  • report a maximum parallelism of 1 from --show-limits
  • cover short and long option forms plus serial process-slot behavior

Closes #836

Testing

  • go test ./internal/builtins -run TestXArgs -count=1
  • make lint
  • make test (fails in unrelated TestFindSkipsUnresolvableRelativeSymlinksDuringTraversal; the focused xargs tests pass)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24b3348898

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/builtins/xargs.go Resolved
@ewhauser

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 2e5df5713a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ewhauser
ewhauser enabled auto-merge (squash) July 12, 2026 12:22
@ewhauser
ewhauser merged commit ab2aba0 into main Jul 12, 2026
16 checks passed
@ewhauser
ewhauser deleted the codex/xargs-parallel-warning branch July 12, 2026 12:52
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.

xargs -P silently falls back to serial execution

1 participant