Skip to content

Commit 1ac42fc

Browse files
committed
Provide mock codex binary in test runner for CI environments (v1.10.7)
Tests that call setup-rlcr-loop.sh or setup-pr-loop.sh fail in CI because codex is not installed. These tests only need codex to pass the command -v check and never actually invoke it. Create a no-op mock codex in run-all-tests.sh when the real binary is absent.
1 parent 0366398 commit 1ac42fc

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "humanize",
99
"source": "./",
1010
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
11-
"version": "1.10.6"
11+
"version": "1.10.7"
1212
}
1313
]
1414
}

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "humanize",
33
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
4-
"version": "1.10.6",
4+
"version": "1.10.7",
55
"author": {
66
"name": "humania-org"
77
},

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Humanize
22

3-
**Current Version: 1.10.6**
3+
**Current Version: 1.10.7**
44

55
> Derived from the [GAAC (GitHub-as-a-Context)](https://github.com/SihaoLiu/gaac) project.
66

tests/run-all-tests.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@ ZSH_TESTS=(
9191
OUTPUT_DIR=$(mktemp -d)
9292
trap "rm -rf $OUTPUT_DIR" EXIT
9393

94+
# Provide a mock codex binary when the real one is not installed.
95+
# Tests only need codex to pass the `command -v codex` check in setup scripts;
96+
# tests that require specific codex behavior already create their own mocks.
97+
if ! command -v codex &>/dev/null; then
98+
mkdir -p "$OUTPUT_DIR/mock-bin"
99+
cat > "$OUTPUT_DIR/mock-bin/codex" << 'MOCK_CODEX'
100+
#!/bin/bash
101+
exit 0
102+
MOCK_CODEX
103+
chmod +x "$OUTPUT_DIR/mock-bin/codex"
104+
export PATH="$OUTPUT_DIR/mock-bin:$PATH"
105+
fi
106+
94107
# Check if a suite needs zsh
95108
needs_zsh() {
96109
local suite="$1"

0 commit comments

Comments
 (0)