Revert "feat: add --no-test flag to prepare-gates"

This reverts commit ee6bdb3bab.
This commit is contained in:
Josh Lehman 2026-03-12 16:37:38 -07:00
parent d5bffcdeab
commit 52e2a7747a
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B
2 changed files with 5 additions and 19 deletions

View File

@ -1384,7 +1384,6 @@ validate_changelog_merge_hygiene() {
prepare_gates() { prepare_gates() {
local pr="$1" local pr="$1"
local skip_test="${2:-false}"
enter_worktree "$pr" false enter_worktree "$pr" false
checkout_prep_branch "$pr" checkout_prep_branch "$pr"
@ -1419,9 +1418,7 @@ prepare_gates() {
run_quiet_logged "pnpm build" ".local/gates-build.log" pnpm build run_quiet_logged "pnpm build" ".local/gates-build.log" pnpm build
run_quiet_logged "pnpm check" ".local/gates-check.log" pnpm check run_quiet_logged "pnpm check" ".local/gates-check.log" pnpm check
if [ "$skip_test" = "true" ]; then if [ "$docs_only" = "true" ]; then
echo "Test skipped (--no-test). Full suite deferred to Test phase."
elif [ "$docs_only" = "true" ]; then
echo "Docs-only change detected with high confidence; skipping pnpm test." echo "Docs-only change detected with high confidence; skipping pnpm test."
else else
run_quiet_logged "pnpm test" ".local/gates-test.log" pnpm test run_quiet_logged "pnpm test" ".local/gates-test.log" pnpm test
@ -1990,7 +1987,7 @@ main() {
prepare_validate_commit "$pr" prepare_validate_commit "$pr"
;; ;;
prepare-gates) prepare-gates)
prepare_gates "$pr" "${3:-false}" prepare_gates "$pr"
;; ;;
prepare-push) prepare-push)
prepare_push "$pr" prepare_push "$pr"

View File

@ -1,20 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
if [ "$#" -lt 2 ]; then if [ "$#" -ne 2 ]; then
echo "Usage: scripts/pr-prepare <init|validate-commit|gates|push|run> <PR> [--no-test]" echo "Usage: scripts/pr-prepare <init|validate-commit|gates|push|run> <PR>"
exit 2 exit 2
fi fi
mode="$1" mode="$1"
pr="$2" pr="$2"
shift 2
no_test=false
for arg in "$@"; do
case "$arg" in
--no-test) no_test=true ;;
esac
done
script_dir="$(cd "$(dirname "$0")" && pwd)" script_dir="$(cd "$(dirname "$0")" && pwd)"
base="$script_dir/pr" base="$script_dir/pr"
if common_git_dir=$(git -C "$script_dir" rev-parse --path-format=absolute --git-common-dir 2>/dev/null); then if common_git_dir=$(git -C "$script_dir" rev-parse --path-format=absolute --git-common-dir 2>/dev/null); then
@ -32,11 +25,7 @@ case "$mode" in
exec "$base" prepare-validate-commit "$pr" exec "$base" prepare-validate-commit "$pr"
;; ;;
gates) gates)
if [ "$no_test" = "true" ]; then exec "$base" prepare-gates "$pr"
exec "$base" prepare-gates "$pr" true
else
exec "$base" prepare-gates "$pr"
fi
;; ;;
push) push)
exec "$base" prepare-push "$pr" exec "$base" prepare-push "$pr"