Skip to content

Conversation

Copy link

Copilot AI commented Jan 18, 2026

The Individual workflow was failing with exit code 1 when xargs grep returned non-zero (grep returns 1 when no matches found in files, xargs returns 123 on empty input). With GitHub Actions' default bash -e -o pipefail, this terminated the discover job.

Changes

  • Wrapped xargs grep -l 'def test_' in subshell with || true to ensure zero exit code
  • Preserves correct output for both populated and empty test matrices
- matrix=$(find . -path '*/doctype/*/test_*.py' | xargs grep -l 'def test_' | awk '{
+ matrix=$(find . -path '*/doctype/*/test_*.py' | (xargs grep -l 'def test_' || true) | awk '{

The subshell ensures || true only affects the xargs/grep command without interfering with downstream awk processing.

Original prompt

for individual now is exit code 1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: elvise <5269577+elvise@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix exit code 1 issue for individual Fix Individual workflow exit code 1 from xargs grep failures Jan 18, 2026
Copilot AI requested a review from elvise January 18, 2026 19:25
@elvise elvise marked this pull request as ready for review January 18, 2026 19:26
@elvise elvise merged commit 3cc55ac into develop Jan 18, 2026
3 of 5 checks passed
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.

2 participants