Files
dev/scripts/ci-tests.sh
zeekay def087ac12 refactor: delete hanzo-dev, consolidate to one tree (codex-rs)
hanzo-dev was a 53-day-frozen diverged fork that release.yml shipped only
because codex-rs's v8 dep was believed to block musl. It doesn't — the prebuilt
rusty_v8 musl artifacts already exist (rust-release.yml uses them). So collapse
to the single canonical tree.

- Delete hanzo-dev/ (1416 paths). codex-rs has zero deps on it; its 'unique'
  crates (zap/sse/backoff) aren't needed (codex-rs has its own upstream impls);
  zt/zap zero-trust was feature-gated OFF in release builds so it never shipped
  (external ~/work/hanzozt SDKs + docs unaffected; design notes kept in LLM.md).
- Repoint every remaining hanzo-dev build/path ref to codex-rs: workflows
  (preview-build, issue-code, issue-comment), scripts (ci-tests.sh,
  generate-homebrew-formula.sh, pre-release.sh, build-fast.sh, hanzo.sh,
  hanzo-cli), code-sign actions, dependabot.yaml, merge-policy.json, docs.
- Port the dev-fast cargo profile into codex-rs/Cargo.toml (build-fast.sh /
  pre-release.sh / release.yml preflight all use it).
- Delete obsolete hanzo-dev-only tooling (check-codex-path-deps.sh,
  upstream-merge/diff-crates.sh) + repoint their callers.
- package.json/build-fast.sh build only --bin dev (codex-rs has no
  dev-tui/dev-exec split bins).

Verified locally: codex-rs builds `dev` (Hanzo Dev header, CODE_VERSION-aware);
zero dangling source refs (only npm package names + Homebrew formula name kept).
2026-06-18 20:44:03 -07:00

40 lines
994 B
Bash

#!/usr/bin/env bash
set -euo pipefail
echo "[ci-tests] Running curated integration tests..."
if [[ "${SKIP_CARGO_TESTS:-0}" != "1" ]]; then
pushd codex-rs >/dev/null
cargo test -p codex-login --tests -q
cargo test -p codex-chatgpt --tests -q
cargo test -p codex-apply-patch --tests -q
cargo test -p codex-execpolicy --tests -q
popd >/dev/null
fi
echo "[ci-tests] CLI smokes with host binary..."
BIN="${CI_CLI_BIN:-}"
if [[ -z "${BIN}" ]]; then
if [[ -x ./codex-rs/target/dev-fast/dev ]]; then
BIN=./codex-rs/target/dev-fast/dev
elif [[ -x ./codex-rs/target/debug/dev ]]; then
BIN=./codex-rs/target/debug/dev
fi
fi
if [[ -z "${BIN}" || ! -x "${BIN}" ]]; then
echo "[ci-tests] CLI binary not found; building debug binary..."
pushd codex-rs >/dev/null
cargo build --bin dev -q
popd >/dev/null
BIN=./codex-rs/target/debug/dev
fi
"${BIN}" --version >/dev/null
"${BIN}" completion bash >/dev/null
"${BIN}" doctor >/dev/null || true
echo "[ci-tests] Done."