Skip to content

fix(test): add mock yq to prerequisites test setup (#47)#50

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/47-mock-yq-prerequisite-test
Open

fix(test): add mock yq to prerequisites test setup (#47)#50
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/47-mock-yq-prerequisite-test

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

The prerequisites-creates-allowed-issue test case fails when yq is not installed because post-triage.sh disables cross-repo issue creation when it cannot parse config.yaml. Add a mock yq binary to MOCK_BIN that reads the YAML fixture and returns allowlist values, following the existing pattern for mock gh and fullsend binaries. This makes the test hermetic — it passes regardless of whether yq is installed on the host.


Closes #47

Post-script verification

  • Branch is not main/master (agent/47-mock-yq-prerequisite-test)
  • Secret scan passed (gitleaks — 2540ede96537b32447321564bec60226efca120e..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

The prerequisites-creates-allowed-issue test case fails when yq
is not installed because post-triage.sh disables cross-repo issue
creation when it cannot parse config.yaml. Add a mock yq binary
to MOCK_BIN that reads the YAML fixture and returns allowlist
values, following the existing pattern for mock gh and fullsend
binaries. This makes the test hermetic — it passes regardless of
whether yq is installed on the host.

Closes #47
@fullsend-ai-coder fullsend-ai-coder Bot requested a review from a team as a code owner July 7, 2026 22:57
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.

fix(test): guard prerequisites test for missing yq dependency

0 participants