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