Skip to content

compute kernel cache key before build:#54

Merged
mergify[bot] merged 1 commit intotinkerbell:mainfrom
jacobweinstock:cache-fix
Mar 9, 2026
Merged

compute kernel cache key before build:#54
mergify[bot] merged 1 commit intotinkerbell:mainfrom
jacobweinstock:cache-fix

Conversation

@jacobweinstock
Copy link
Copy Markdown
Member

Description

The kernel build writes .config.resolved into kernel.configs/, which changes the hashFiles('kernel.configs/*', ...) result between cache restore and save, producing mismatched keys and failed saves.

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

The kernel build writes .config.resolved into kernel.configs/,
which changes the hashFiles('kernel.configs/*', ...) result between
cache restore and save, producing mismatched keys and failed saves.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes GitHub Actions kernel cache save failures caused by the kernel build generating kernel.configs/.config.resolved, which changes hashFiles('kernel.configs/*', ...) between the cache restore and cache save steps.

Changes:

  • Compute the kernel cache key once (before the kernel build) and reuse it for both cache restore and cache save.
  • Replace inline hashFiles(...) usage in the kernel cache restore/save steps with the precomputed step output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jacobweinstock jacobweinstock added the ready-to-merge Signal Mergify to merge the PR label Mar 9, 2026
@mergify mergify bot added the queued label Mar 9, 2026
mergify bot added a commit that referenced this pull request Mar 9, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 9, 2026

Merge Queue Status

This pull request spent 10 minutes 42 seconds in the queue, including 10 minutes 28 seconds running CI.

Required conditions to merge
  • #changes-requested-reviews-by=0
  • base=main
  • check-success=DCO
  • check-success=build-initramfs (amd64)
  • check-success=build-initramfs (arm64)
  • check-success=build-iso (amd64)
  • check-success=build-iso (arm64)
  • check-success=build-kernel (amd64)
  • check-success=build-kernel (arm64)
  • check-success=download-tools (amd64)
  • check-success=download-tools (arm64)
  • label!=do-not-merge
  • label=ready-to-merge
  • queue-position>=0
  • any of:
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-initramfs (amd64)
    • check-neutral = build-initramfs (amd64)
    • check-skipped = build-initramfs (amd64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-initramfs (arm64)
    • check-neutral = build-initramfs (arm64)
    • check-skipped = build-initramfs (arm64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-kernel (amd64)
    • check-neutral = build-kernel (amd64)
    • check-skipped = build-kernel (amd64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-kernel (arm64)
    • check-neutral = build-kernel (arm64)
    • check-skipped = build-kernel (arm64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = download-tools (amd64)
    • check-neutral = download-tools (amd64)
    • check-skipped = download-tools (amd64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = download-tools (arm64)
    • check-neutral = download-tools (arm64)
    • check-skipped = download-tools (arm64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-iso (amd64)
    • check-neutral = build-iso (amd64)
    • check-skipped = build-iso (amd64)
  • any of [🛡 GitHub repository ruleset rule main]:
    • check-success = build-iso (arm64)
    • check-neutral = build-iso (arm64)
    • check-skipped = build-iso (arm64)

@mergify mergify bot merged commit 9ea7a56 into tinkerbell:main Mar 9, 2026
20 checks passed
@mergify mergify bot removed the queued label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal Mergify to merge the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants