Skip to content

fix(#1667): make bot-exclusion tests exercise the jq filter#1669

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1667-fix-bot-exclusion-tests
Open

fix(#1667): make bot-exclusion tests exercise the jq filter#1669
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1667-fix-bot-exclusion-tests

Conversation

@fullsend-ai-coder
Copy link
Copy Markdown

The mock gh in pre-code-test.sh returned pre-configured output directly, bypassing --jq entirely. Bot-exclusion tests fed already-filtered (empty) output, so the jq select() filter in pre-code.sh was never exercised — they were functionally identical to the no-existing-prs-proceeds test.

Changes:

  • Enhance mock gh to parse --jq from arguments and pipe
    output through jq, matching real gh CLI behavior
  • Convert all test inputs from pre-filtered tab-separated
    text to unfiltered JSON arrays
  • bot-pr-does-not-block now provides a fullsend-ai[bot] PR
    and verifies the jq filter removes it
  • coder-bot-pr-does-not-block now provides a
    fullsend-ai-coder[bot] PR and verifies filtering
  • coder-bot-pr-plus-human-pr-blocks now provides a mix of
    bot and human PRs, verifying only bots are filtered
  • Add both-bots-do-not-block test for the case where both
    bot types are present with no human PRs

Closes #1667

Post-script verification

  • Branch is not main/master (agent/1667-fix-bot-exclusion-tests)
  • Secret scan passed (gitleaks — ca58e069568170fb9d00d8ef7c06ed4caefd6fd2..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

The mock gh in pre-code-test.sh returned pre-configured output
directly, bypassing --jq entirely. Bot-exclusion tests fed
already-filtered (empty) output, so the jq select() filter in
pre-code.sh was never exercised — they were functionally
identical to the no-existing-prs-proceeds test.

Changes:
- Enhance mock gh to parse --jq from arguments and pipe
  output through jq, matching real gh CLI behavior
- Convert all test inputs from pre-filtered tab-separated
  text to unfiltered JSON arrays
- bot-pr-does-not-block now provides a fullsend-ai[bot] PR
  and verifies the jq filter removes it
- coder-bot-pr-does-not-block now provides a
  fullsend-ai-coder[bot] PR and verifies filtering
- coder-bot-pr-plus-human-pr-blocks now provides a mix of
  bot and human PRs, verifying only bots are filtered
- Add both-bots-do-not-block test for the case where both
  bot types are present with no human PRs

Closes #1667

Signed-off-by: fullsend-code <fullsend-code@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Site preview

Preview: https://942f132b-site.fullsend-ai.workers.dev

Commit: a67c61807b9ca75f22678b7b2ba791cbd8dcfb88

@fullsend-ai-review
Copy link
Copy Markdown

Review

Findings

No findings.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-code-test.sh bot-exclusion tests don't exercise the jq filter

0 participants