amsd-pipeline 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/install.sh +10 -2
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -926,12 +926,20 @@ if [ "$CHECK_ONLY" != "1" ] && [ "$FAILED" != "1" ] && [ -f "$INSTALLER_DIR/pipe
926
926
  if bash "$INSTALLER_DIR/pipeline-health.sh" --dest "$ROOT" 2>&1 | sed 's/^/ /'; then
927
927
  _ok "health check passed"
928
928
  else
929
- _warn "health check reported problems above — the install itself completed, but this machine is not ready to launch"
930
- _warn "re-run it any time: bash orchestrations-installer/pipeline-health.sh"
929
+ # THE FINAL WORD MUST NOT CONTRADICT THE CHECK ABOVE IT. Printing "not healthy" and then
930
+ # "✓ ready" two lines later leaves an operator to guess which one to believe; the whole
931
+ # point of running the probe here is that its answer is the install's answer.
932
+ HEALTH_FAILED=1
933
+ _warn "health check reported problems above — the install completed, but this machine is not ready to launch"
934
+ _warn "re-run it any time: bash orchestrations-installer/pipeline-health.sh --dest \"$ROOT\""
931
935
  fi
932
936
  fi
933
937
 
934
938
  _head "Result"
939
+ if [ "$FAILED" != "1" ] && [ "${HEALTH_FAILED:-0}" = "1" ]; then
940
+ _warn "installed, but NOT ready to launch — see the health check above"
941
+ exit 1
942
+ fi
935
943
  if [ "$FAILED" = "1" ]; then
936
944
  _bad "install incomplete — fix the items marked ✗ above"
937
945
  exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amsd-pipeline",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "Installer for the amsd-pipeline orchestration stack. Clones, packages and provisions the full stack with one command — no separate git clone step.",
5
5
  "bin": {
6
6
  "amsd-pipeline": "bin/amsd-pipeline.js"