Merge pull request 'fix: evolution.patch has no apply-validation step in CI or evolve.sh (#866)' (#962) from fix/issue-866 into master

This commit is contained in:
johba 2026-03-18 21:33:54 +01:00
commit 0e10d091a6
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 " Exiting — patch does not apply to current tree. Restart daemon after regenerating the patch."
exit 1
fi
if (cd "$REPO_ROOT" && git apply "$PATCH_FILE"); then
PATCH_APPLIED=true
log " Patches applied OK"