amsd-pipeline 1.22.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 +14 -3
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -920,15 +920,26 @@ fi
920
920
  # the install has already failed, where a second wall of red helps nobody.
921
921
  if [ "$CHECK_ONLY" != "1" ] && [ "$FAILED" != "1" ] && [ -f "$INSTALLER_DIR/pipeline-health.sh" ]; then
922
922
  _head "Post-install health check"
923
- if bash "$INSTALLER_DIR/pipeline-health.sh" 2>&1 | sed 's/^/ /'; then
923
+ # --dest "$ROOT": the tree that was INSTALLED, never the installer's own location. Under
924
+ # `npx amsd-pipeline` install.sh runs from a temp clone, so without this the check inspects
925
+ # /tmp/tmp.XXXX and reports failures about a directory nobody installed into.
926
+ if bash "$INSTALLER_DIR/pipeline-health.sh" --dest "$ROOT" 2>&1 | sed 's/^/ /'; then
924
927
  _ok "health check passed"
925
928
  else
926
- _warn "health check reported problems above — the install itself completed, but this machine is not ready to launch"
927
- _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\""
928
935
  fi
929
936
  fi
930
937
 
931
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
932
943
  if [ "$FAILED" = "1" ]; then
933
944
  _bad "install incomplete — fix the items marked ✗ above"
934
945
  exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amsd-pipeline",
3
- "version": "1.22.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"