fix: evolution.patch has no apply-validation step in CI or evolve.sh (#866)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-18 13:28:13 +00:00
parent da672070a6
commit 57b83b6fe9
2 changed files with 24 additions and 0 deletions

View file

@ -82,6 +82,25 @@ steps:
fi
'
- name: validate-evolution-patch
image: registry.niovi.voyage/harb/node-ci:latest
when:
- event: pull_request
path:
include:
- onchain/**
- tools/push3-evolution/**
commands:
- |
bash -c '
set -euo pipefail
if ! git apply --check tools/push3-evolution/evolution.patch; then
echo "ERROR: evolution.patch needs regeneration — see tools/push3-evolution/evolution.conf" >&2
exit 1
fi
echo "evolution.patch applies cleanly."
'
- name: node-quality
image: registry.niovi.voyage/harb/node-ci:latest
environment:

View file

@ -188,6 +188,11 @@ while true; do
PATCH_APPLIED=false
if [ "$HAS_PATCH" = "true" ]; then
log "[2/7] Applying evolution patches…"
if ! (cd "$REPO_ROOT" && git apply --check "$PATCH_FILE"); then
log " ERROR: evolution.patch needs regeneration — see tools/push3-evolution/evolution.conf"
log " Skipping run (patch does not apply to current tree)."
continue
fi
if (cd "$REPO_ROOT" && git apply "$PATCH_FILE"); then
PATCH_APPLIED=true
log " Patches applied OK"