Merged
Size
XS
Change Breakdown
Bug Fix60%
CI/CD30%
Config10%
#28413ci: Increase stale image limit

CI image cache lives 3 days, not 1

SH
shortstacked
·Apr 13, 2026

n8n's CI pipeline was deleting cached build images after just one day, causing failed jobs to break when developers tried to rerun them. A simple threshold adjustment extends that window to three days.

n8n's CI pipeline caches container images to speed up test runs. Those images were being marked stale and deleted after one day. The problem: developers who spotted a CI failure a day later and clicked "rerun" found their cached image gone, forcing a full rebuild from scratch.

The workflow now allows images to live for three days before cleanup. Developers debugging a flaky test or fixing a regression have a more reasonable window to retry without cache misses. The change is a single parameter adjustment — a value of 1 becomes 3 — but it removes a source of friction for anyone working with CI on a less-than-real-time schedule.

View Original GitHub Description

Summary

Failed jobs that were rerun after 1 day would no longer have their image.

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • I have seen this code, I have run this code, and I take responsibility for this code.
  • PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
  • Docs updated or follow-up ticket created.
  • Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
  • PR Labeled with Backport to Beta, Backport to Stable, or Backport to v1 (if the PR is an urgent fix that needs to be backported)
© 2026 · via Gitpulse