Skip to content

Pin the hasura image to a commit SHA instead of latest - #107

Merged
mosoriob merged 1 commit into
mainfrom
chore/pin-hasura-106
Aug 30, 2026
Merged

Pin the hasura image to a commit SHA instead of latest#107
mosoriob merged 1 commit into
mainfrom
chore/pin-hasura-106

Conversation

@mosoriob

Copy link
Copy Markdown
Contributor

components.hasura.image.tag was latest. The graphql_engine workflow does not
publish that tag. From the merge build's own log:

tags: ghcr.io/mintproject/graphql-engine:main,
      ghcr.io/mintproject/graphql-engine:06492bdedd05ca3534b943739f7ffffe877851da

:main and :<full-sha> only. So :latest is a stale image that no merge updates, and
pullPolicy: Always cannot help when the tag itself never moves.

Measured against the registry — :latest matches none of the last six commits on main:

tag digest
main sha256:1f3a4070…
06492bde… (this pin) sha256:1f3a4070…
latest (what the chart used) sha256:970311f3…
c274ce0 sha256:208b1145…
0d74aa1 sha256:fadb2448…

Why it matters more for hasura than for other components

Migrations are baked into the image. The tag therefore decides which schema a deployment
can reach at allhasura migrate apply can only apply what the running image carries.
On :latest the chart could not deliver either of the last two schema changes:

What this is

Pin 06492bd, the merge of mintproject/graphql_engine#15. Same treatment
model_catalog_api got in #106. Chart version 9.0.0-beta.49.0.0-beta.5, README
regenerated to match.

Verified

helm lint clean. helm template renders the new tag in both places that consume it —
the mint-hasura Deployment and the mint-hasura-post-install Job.

Not fixed here

mint-ui-lit (values.yaml:380) and ensemble-manager (values.yaml:465) are also on
latest. I have not checked what those pipelines publish, so they are left alone.

The post-install Job is still helm.sh/hook: post-install with no post-upgrade, so an
upgrade still does not run migrations — that is mintproject/monorepo#117, unchanged by this PR.

The chart asked for ghcr.io/mintproject/graphql-engine:latest, but the
graphql_engine workflow publishes only :main and :<full-sha>. It has never
pushed :latest, so that tag is a stale image no merge updates -- it matches
none of the last six commits on main, and carries neither the indicator FK
migration (mintproject/monorepo#106) nor the cascade migration
(mintproject/monorepo#99). pullPolicy: Always cannot help when the tag itself
never moves.

Pin 06492bd, the merge of mintproject/graphql_engine#15. Migrations are baked
into this image, so the tag decides which schema a deployment can reach at all.

Same treatment model_catalog_api got in #106.
@mosoriob
mosoriob merged commit 28845d0 into main Aug 30, 2026
1 of 2 checks passed
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.

1 participant