ci: Refactor timelord action to use git-warp-time fallback #994
No reviewers
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status/Blocked
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!994
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tom/git-timestamps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
6df55957b745adfabbcd45adfabbcd09802a162909802a162996a9e89e8396a9e89e83a1064dd8f8a1064dd8f890baadd03290baadd032b1c39e6bf8b1c39e6bf8e8fa658da5e8fa658da54076727ed14076727ed14f852a3a734f852a3a736ee80e71cc6ee80e71cc4a7c57b79b4a7c57b79b96db0cdbb396db0cdbb393ae4ec849WIP: ci: Preserve git timestamps to improve build cache efficiencyto ci: Refactor timelord action to use git-warp-time fallback93ae4ec8497950e2cc7fAny reason not to merge this?
It may cause some weirdness for people building the Docker image locally, so I intended to test it, but was busy the last 2 days helping someone move house - I can spend some time on it this evening, or we can just merge and you can playtest home Docker builds later 😉
Ah yeah.
My image does it like this:
Can probably insert via cache dance action, to make it work the same locally