From 2b612abe7b6a0fefa673fbdb14f975759e2a3535 Mon Sep 17 00:00:00 2001 From: Thomas Kosiewski Date: Fri, 15 May 2026 18:27:39 +0200 Subject: [PATCH] feat: trigger image pull on mise.toml or mise.lock changes (#25400) The dogfood Dockerfiles consume the repo-root `mise.toml` and `mise.lock` at build time (see `.dockerignore` allowlist), but the template's `pull_triggers` list ignored them, so mise-only changes (tool bumps, new tools) didn't roll out to existing workspaces. Mirror the `nix.hash` pattern: a Makefile rule writes the sha256 of both files into `dogfood/coder/mise.hash`, and `main.tf` hashes that in-module file via `filesha1`. Run `make dogfood/coder/mise.hash` after editing `mise.toml`/`mise.lock`. Signed-off-by: Thomas Kosiewski Co-authored-by: Claude Opus 4.7 (1M context) --- Makefile | 3 +++ dogfood/coder/main.tf | 1 + dogfood/coder/mise.hash | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 dogfood/coder/mise.hash diff --git a/Makefile b/Makefile index 16ba9239ce..9723827011 100644 --- a/Makefile +++ b/Makefile @@ -1635,6 +1635,9 @@ endif dogfood/coder/nix.hash: flake.nix flake.lock sha256sum flake.nix flake.lock >./dogfood/coder/nix.hash +dogfood/coder/mise.hash: mise.toml mise.lock + sha256sum mise.toml mise.lock >./dogfood/coder/mise.hash + # Count the number of test databases created per test package. count-test-databases: PGPASSWORD=postgres psql -h localhost -U postgres -d coder_testing -P pager=off -c 'SELECT test_package, count(*) as count from test_databases GROUP BY test_package ORDER BY count DESC' diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index 663e887582..7d141f74aa 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -829,6 +829,7 @@ resource "docker_image" "dogfood" { filesha1("ubuntu-22.04/Dockerfile"), filesha1("ubuntu-26.04/Dockerfile"), filesha1("nix.hash"), + filesha1("mise.hash"), ] keep_locally = true } diff --git a/dogfood/coder/mise.hash b/dogfood/coder/mise.hash new file mode 100644 index 0000000000..f8ccac7148 --- /dev/null +++ b/dogfood/coder/mise.hash @@ -0,0 +1,2 @@ +b5226f4cb3256b5f67df1344f46968f7275b1b8309380506d25782168bab5622 mise.toml +b5cf72024409932659abde978440fca1d01a75bb11f1476e2410f7d4b83aa9c0 mise.lock