From 5683be3b9b90f5b8bde045a99698aa34053931ec Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Mon, 9 Nov 2026 21:18:19 -0500 Subject: [PATCH] feat(lab): record which installed commit the build caches are warm for --- docs/lab-builds.md | 2 ++ tools/agent/dd-lab-build | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/lab-builds.md b/docs/lab-builds.md index 75f4712862..8d2afd8d68 100644 --- a/docs/lab-builds.md +++ b/docs/lab-builds.md @@ -53,3 +53,5 @@ does that first build ahead of time with `dd-lab-build --prepare`, which compile commit without making a Lab build. `~/.cache/dd-lab-build.json` reports the stage, the current task, progress in thousandths and the seconds left, estimated from how long each task took the last time (`~/.cache/dd-lab-build-times`). +`~/.cache/dd-lab-build-base` holds the installed commit the last successful build compiled, so the +Agent tab can offer to prepare again after DroidDeck updates. diff --git a/tools/agent/dd-lab-build b/tools/agent/dd-lab-build index d274f95127..c3aed33323 100755 --- a/tools/agent/dd-lab-build +++ b/tools/agent/dd-lab-build @@ -140,6 +140,8 @@ kill $heartbeat 2>/dev/null || true # Tasks that did no work this time keep their earlier time. { [ -f "$times_file" ] && cat "$times_file"; cat "$measured"; } | awk '{t[$1] = $2} END {for (k in t) print k, t[k]}' > "$times_file.part" mv "$times_file.part" "$times_file" +# The app reads which installed commit the build caches are warm for. +echo "$base" > "$cache/dd-lab-build-base" if [ $mode = prepare ]; then progress prepared 1000