Skip to content

Explorer: pin the backend to the image prod runs - #137

Merged
lain-labs merged 1 commit into
masterfrom
claude/project-thread-wbcyyf
Nov 3, 2026
Merged

lain-labs merged 1 commit into
masterfrom
claude/project-thread-wbcyyf

Conversation

@lain-labs

Copy link
Copy Markdown
Collaborator

Requested by Лев · project thread

The compose file pinned ghcr.io/blockscout/blockscout:11.0.0, but prod runs :latest as pulled on the host (v9.0.2, sha256:7659f168e4e2…), and 11.0.0 is neither on the host nor on ghcr.io. The deploy's convergence step (#134/#136, --pull never) therefore failed with No such image and #133 (internal-transactions fetcher off, the host's main load) never reached the container. The explorer itself stayed up.

Pinning to the image already running makes the next deploy recreate backend with the new env and no migration. Upgrading to 11.x is a separate job after a DB backup.


Generated by Claude Code

…pply its settings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE7sa3iZdin6ZqWSCBtMxb
@lain-labs
lain-labs merged commit b96c0e7 into master Nov 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:40:55.897232Z f6d5e79 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6d5e7931e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# on the host and no longer on ghcr.io, so the deploy could never recreate
# the container (scripts/deploy-prod.sh converges with --pull never). Going
# to 11.x runs database migrations: a separate job, after a backup.
image: ghcr.io/blockscout/blockscout:latest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin the running backend image by digest instead of latest

When an operator starts the explorer without the deploy script's --pull never override, the inherited pull_policy: always in services/backend.yml fetches whatever latest currently names (Docker documents this as “Compose always pulls the image from the registry”). That same service runs create_and_migrate() before starting, so a routine restart through Compose can introduce an unreviewed upgrade and database migrations rather than preserve the running v9.0.2 image. The override in scripts/deploy-prod.sh protects only that script's convergence step. Pin the verified running image's full digest to preserve the intended backup-before-upgrade boundary and the tagged-release requirement in AGENTS.md.

AGENTS.md reference: AGENTS.md:L398-L398

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants