Skip to content

CI: the warm job saves the Delphes cache as delphes-root-<os>, so pull requests never find it #522

Closed

Description

@ValentinHirschi

Since #518, every pull request fails the jobs that restore Delphes (acceptancetest_core_1, acceptancetest_mg7_uncovered) with

No delphes-ubuntu24 cache from main, and only main builds Delphes. Run the 'Warm all caches' workflow (warm_cache.yml) on main, then re-run this job.

Re-running the warm job does not help, because it saves the Delphes cache under the wrong key.

Cause. In the delphes_cache job of .github/workflows/warm_cache.yml:

  1. "Set cache key" writes CACHE_KEY=$ImageOS (ubuntu24).
  2. "restore ROOT cache (dependency)" calls .github/actions/restore_root, whose own "Set cache key" step overwrites it with CACHE_KEY=root-$ImageOS.
  3. "Save the new Delphes cache generation" then uses key: delphes-${{ env.CACHE_KEY }}-${{ github.run_id }}, which is now delphes-root-ubuntu24-<run>.

restore_delphes looks for delphes-ubuntu24-, so it never matches.

Evidence. The warm run on main of 2026-11-21 (44905283012) finished its delphes_cache job with success, and the only Delphes cache on main is delphes-root-ubuntu24-44905283012. Pull-request jobs that started after it was saved still miss, for example on #521 and #520.

Possible fix. Make the save step independent of CACHE_KEY, for example by keeping the Delphes key in its own variable (DELPHES_CACHE_KEY=delphes-$ImageOS) for the cache and save steps of that job, or by setting CACHE_KEY=$ImageOS again after the ROOT restore. The fallback in restore_delphes has the same order (ROOT restore first, then its own "Set cache key"), so it is not affected.

The same run also failed three other jobs (heptools_core_cache, emela_cache, heptools_cache); I have not looked into those.

🤖 Generated with Claude Code

Activity

  1. oliviermattelaer commented on Nov 21, 2026

    @oliviermattelaer
    Contributor

    The problem was pyamplicol that forces that super important cache out.
    And the ci to recreate it, is stuck on the swamp of CI running, so much that it did fail itself due to long queue time (I did restart it). In itself the cache system is good and HS did fix the pyampicol bad handling of the cache that created this situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions