diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7a47c55..954ceaeb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -164,7 +164,7 @@ jobs: # `ghost` user, which cannot reach npx's cache in the runner's home. - name: Ghost-CLI, nginx and MySQL for the source run: | - npm install --global ghost-cli@1.34.0 + npm install --global ghost-cli@1.34.1 sudo apt-get update sudo apt-get install --yes nginx sudo systemctl start nginx mysql diff --git a/compose.yml b/compose.yml index e954c989..5e5c4a17 100644 --- a/compose.yml +++ b/compose.yml @@ -241,7 +241,7 @@ services: - traffic-analytics-${COMPOSE_PROJECT_NAME:-ghost} activitypub: - image: ghcr.io/tryghost/activitypub:1.2.14@sha256:a607c8cd82d7d84eabec7abdb5c98e2788605572a0fa79ba75a872787e0084bc + image: ghcr.io/tryghost/activitypub:1.2.16@sha256:b440548b8a87eaf70c9440d4b157beee4898b85ba4294509926517a85e7573c7 restart: ${RESTART_POLICY:-unless-stopped} profiles: [activitypub] labels: @@ -314,7 +314,7 @@ services: # or failed job stays stopped instead of being restarted by the daemon. activitypub-migrate: - image: ghcr.io/tryghost/activitypub-migrations:1.2.14@sha256:c116a15f9c8a94542440fadc17bc06c15eeee6e3a61ff2731e3b6e2ea91f7356 + image: ghcr.io/tryghost/activitypub-migrations:1.2.16@sha256:1ecd26490dc668c6e5e467f85ea2e40d8bfc033bae8eb70f5378a24a27bb75d6 restart: "no" profiles: [activitypub] labels: diff --git a/docs/install.md b/docs/install.md index 3ee0adba..c4c304fa 100644 --- a/docs/install.md +++ b/docs/install.md @@ -110,7 +110,7 @@ interactive: A Ghost-CLI site, local or production, moves to Docker with its posts, members, staff accounts, settings, themes, images and configuration. It needs: -- **Ghost-CLI 1.34.0 or later** (`ghost --version`), and +- **Ghost-CLI 1.34.1 or later** (`ghost --version`), and - **Ghost 6.61.0 or later** in the site, the first release with a `next` image. The import runs exactly the version the site runs; upgrade afterwards. diff --git a/tests/e2e/import.sh b/tests/e2e/import.sh index bc9aeb75..3f445294 100755 --- a/tests/e2e/import.sh +++ b/tests/e2e/import.sh @@ -18,7 +18,7 @@ # and for the MySQL source a `mysqldump` on the PATH; without one that half # fails, or is skipped with GD_E2E_ALLOW_SKIP=1. # -# GD_TEST_GHOST_CLI the exporter to use. Default: npx --yes ghost-cli@1.34.0 +# GD_TEST_GHOST_CLI the exporter to use. Default: npx --yes ghost-cli@1.34.1 # GD_TEST_KEEP=1 leave the work directory and sites in place afterwards # # Exits non-zero at the first check that fails, naming it. @@ -33,7 +33,7 @@ DEFAULT_GHOST=ghost:6-next-alpine source "$ROOT/tests/e2e/lib.sh" require_docker -read -ra GHOST_CLI <<<"${GD_TEST_GHOST_CLI:-npx --yes ghost-cli@1.34.0}" +read -ra GHOST_CLI <<<"${GD_TEST_GHOST_CLI:-npx --yes ghost-cli@1.34.1}" readonly SOURCE_DB_CONTAINER="ghost-docker-test-import-source-db" readonly SQLITE_PORT=23711 readonly MYSQL_SITE_PORT=23712 diff --git a/tests/e2e/production-import.sh b/tests/e2e/production-import.sh index 13c37ff9..40840ef6 100755 --- a/tests/e2e/production-import.sh +++ b/tests/e2e/production-import.sh @@ -51,9 +51,16 @@ SOURCE_INSTALLED=0 # --- Helpers ----------------------------------------------------------------- # ghost_cli ARGS... -- Ghost-CLI in the source's directory; output to $WORK/ghost.log. +# On failure, its debug log too: a failed subprocess's stderr is only there. ghost_cli() { - (cd "$SOURCE" && "${GHOST_CLI[@]}" "$@") >"$WORK/ghost.log" 2>&1 || - fail "ghost $* failed" "$(tail -40 "$WORK/ghost.log")" + local debug + (cd "$SOURCE" && "${GHOST_CLI[@]}" "$@") >"$WORK/ghost.log" 2>&1 && return + debug=$(grep -o '/[^ ]*ghost-cli-debug-[^ ]*\.log' "$WORK/ghost.log" | tail -1 || true) + [[ -z $debug || ! -f $debug ]] || { + printf '\n--- %s ---\n' "$debug" + tail -60 "$debug" + } >>"$WORK/ghost.log" + fail "ghost $* failed" "$(tail -100 "$WORK/ghost.log")" } # run_import SITE ARGS... -> sets OUT and RC, never exits