ci: Refactor timelord action to use git-warp-time fallback #994

Merged
Jade merged 2 commits from tom/git-timestamps into main 2025-09-10 15:54:46 +00:00

2 commits

Author SHA1 Message Date
a81546374d
ci: Make timelord docker work locally
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 3m39s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 4m32s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 7m16s
Release Docker Image / define-variables (pull_request) Successful in 1s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Successful in 1m29s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Successful in 1m28s
Release Docker Image / merge (pull_request) Successful in 9s
Release Docker Image / define-variables (push) Successful in 19s
Documentation / Build and Deploy Documentation (push) Successful in 39s
Checks / Prek / Pre-commit & Formatting (push) Successful in 51s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Failing after 32s
Checks / Prek / Clippy and Cargo Tests (push) Failing after 2m55s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Successful in 5m37s
Release Docker Image / merge (push) Has been skipped
2025-09-10 16:40:55 +01:00
7950e2cc7f ci: Refactor timelord action to use git-warp-time fallback
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m24s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m43s
Release Docker Image / define-variables (pull_request) Successful in 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m21s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Successful in 6m38s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Successful in 5m58s
Release Docker Image / merge (pull_request) Successful in 9s
Updates the timelord action to fall back to git-warp-time when the cache
is completely empty, enabling timestamp restoration even on fresh builds.
When git-warp-time is used, performs an unshallow fetch to get full history,
while subsequent runs use normal fetches. Simplifies the interface by making
inputs optional with sensible defaults.

Adds binary caching for timelord-cli and git-warp-time tools to avoid
repeated installations, and updates paths to use /usr/share/rust/.cargo/bin/
for the catthehacker runner image used by the dind profile (may need updating
if/when switching to standard image).

The main timelord restore now happens inside the Dockerfile itself, as Docker
intentionally wipes all file mtimes on COPY/ADD operations.
2025-09-08 08:34:29 +00:00