Skip to content

Commit a884c2d

Browse files
pRizzclaude
andcommitted
fix(opencode): resolve all unit test failures and add test-opencode-unit recipe
Bump submodule to include fixes for 19 CI test failures (PAM auth, rate-limit trustProxy, config variant, permission defaults, managed config loading, Bedrock timeout). Add test-opencode-unit justfile recipe that runs the full upstream turbo test suite, and wire it into test-all-fast/test-all-slow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 016a4d2 commit a884c2d

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

justfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ e2e: opencode-install-if-needed
152152
test-opencode-ui: opencode-install-if-needed
153153
bun run --cwd packages/opencode/packages/app test:unit
154154

155+
# Run opencode upstream unit tests (turbo: opencode + fork-tests + app)
156+
test-opencode-unit: opencode-install-if-needed
157+
OPENCODE_CONFIG_CONTENT='{"auth":{"enabled":false}}' bun turbo test --cwd packages/opencode
158+
155159
# Optional submodule drift and dirty state check
156160
check-opencode-submodule-drift:
157161
git submodule status --recursive
@@ -211,10 +215,10 @@ check-docker:
211215
@echo "✓ Dockerfile check passed"
212216

213217
# Run all tests (fast)
214-
test-all-fast: test-rust-fast test-node test-opencode-fork-tests test-opencode-broker
218+
test-all-fast: test-rust-fast test-node test-opencode-fork-tests test-opencode-broker test-opencode-unit
215219

216220
# Run all tests (slow, includes doc-tests)
217-
test-all-slow: test-rust test-node test-opencode-fork-tests test-opencode-broker
221+
test-all-slow: test-rust test-node test-opencode-fork-tests test-opencode-broker test-opencode-unit
218222

219223
# Run all tests (fast)
220224
test: test-all-fast

packages/core/src/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ COPY --chown=opencoder:opencoder packages/opencode /tmp/opencode-local
525525
# Update it by running: ./scripts/update-opencode-commit.sh
526526
RUN set -eux; \
527527
OPENCODE_COMMIT_OVERRIDE="${OPENCODE_COMMIT:-}"; \
528-
OPENCODE_COMMIT="8288776c52bf07f1ac703a62a6b0ec3dcb0ae2c2"; \
528+
OPENCODE_COMMIT="4e17ce08f5002f376e3d5db033f18c853c69a4f7"; \
529529
if [ -n "${OPENCODE_COMMIT_OVERRIDE}" ]; then OPENCODE_COMMIT="${OPENCODE_COMMIT_OVERRIDE}"; fi; \
530530
rm -rf /tmp/opencode-repo; \
531531
if [ "${OPENCODE_SOURCE}" = "local" ]; then \

0 commit comments

Comments
 (0)