Skip to content

Make sure CI tests do not use previous run's JIT cache#2620

Closed
andrej wants to merge 2 commits intomainfrom
ci-jit-regenerate
Closed

Make sure CI tests do not use previous run's JIT cache#2620
andrej wants to merge 2 commits intomainfrom
ci-jit-regenerate

Conversation

@andrej
Copy link
Collaborator

@andrej andrej commented Sep 30, 2025

The IRON_CACHE_HOME environment variable is unique for each CI run and is supposed to ensure that the JIT-compiled binaries don't get reused/cached between CI runs. However, lit, does not by default copy all environment variables from where it's called, meaning the IRON_CACHE_HOME environment variable gets dropped and cached files get generated in the ~/.iron/cache directory instead. This should fix that, making sure the JIT targets get regenerated/tested on each CI run.

This is likely what caused the latest test failures in #2532.

cc @mawad-amd

@andrej andrej changed the title Make sure CI tests do not use previous runs JIT cache Make sure CI tests do not use previous run's JIT cache Sep 30, 2025
Copy link
Collaborator

@fifield fifield left a comment

Choose a reason for hiding this comment

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

I'm tempted to rm -rf ~/.iron/* && chmod a-w ~/.iron on the runners after this lands.

Copy link
Collaborator

@mawad-amd mawad-amd left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks Andre.

@mawad-amd mawad-amd enabled auto-merge October 1, 2025 00:31
@mawad-amd
Copy link
Collaborator

Merging to test the rest of the fix in #2622

@mawad-amd mawad-amd disabled auto-merge October 1, 2025 01:04
@mawad-amd mawad-amd enabled auto-merge October 1, 2025 01:04
@andrej
Copy link
Collaborator Author

andrej commented Oct 2, 2025

This fix was already merged as part of #2532 (see the diff, it's empty).

@andrej andrej closed this Oct 2, 2025
auto-merge was automatically disabled October 2, 2025 18:40

Pull request was closed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants