Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache miss with Gradle 8.0.1 and KGP 1.8.10 #24024

Closed
cdsap opened this issue Feb 23, 2023 · 5 comments
Closed

Cache miss with Gradle 8.0.1 and KGP 1.8.10 #24024

cdsap opened this issue Feb 23, 2023 · 5 comments
Labels
closed:duplicate Duplicated or superseeded by another issue in:configuration-cache Configuration Caching

Comments

@cdsap
Copy link
Member

cdsap commented Feb 23, 2023

Kotlin Compiler tasks generate different build cache key when building different architectures(aarch64,amd64)

Expected Behavior

Both tasks generate the same Build Cache key

Current Behavior

Tasks generate different build cache key
Screenshot 2023-02-23 at 11 28 48 AM

Gradle 7.6 generates same Build Cache key

Context

Steps to Reproduce

1- Download repository https://github.com/cdsap/kotlin-caching
2- Execute in MacOs(aarch64) :lib:compileKotlin
3- Execute in Linux(amd64) :lib:compileKotlin
4- Compare inputs for both tasks

Your Environment

Build scan comparison 8.0.1: https://ge.solutions-team.gradle.com/c/r77tmf6f3plo6/ugx5xkgns2rme/task-inputs
Build scan comparison 7.6: https://ge.solutions-team.gradle.com/c/6rcapxnybkaja/kivlrtkxrsxy2/task-inputs

@lwasyl
Copy link

lwasyl commented Feb 24, 2023

Corresponding bug on Youtrack side for reference: https://youtrack.jetbrains.com/issue/KT-56929/Kotlin-tasks-not-cacheable-between-architectures

@AndreasTu
Copy link

This is maybe the same bug as #24031

@jbartok jbartok added a:regression This used to work and removed a:bug labels Feb 27, 2023
@eskatos eskatos added this to the 8.0.2 (unconfirmed) milestone Feb 28, 2023
@eskatos eskatos added in:execution-engine incremental, up-to-date, overlapping outputs 👋 team-triage Issues that need to be triaged by a specific team in:configuration-cache Configuration Caching closed:duplicate Duplicated or superseeded by another issue and removed to-triage a:regression This used to work in:execution-engine incremental, up-to-date, overlapping outputs 👋 team-triage Issues that need to be triaged by a specific team labels Feb 28, 2023
@eskatos eskatos removed this from the 8.0.2 (unconfirmed) milestone Feb 28, 2023
@eskatos
Copy link
Member

eskatos commented Feb 28, 2023

Thank you for your interest in Gradle!

This issue will be closed as a duplicate of

Please add your use case and 👍 to that issue.

@eskatos eskatos closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
@lwasyl
Copy link

lwasyl commented Feb 28, 2023

@eskatos Just to make sure, are you positive this is a duplicate of #24031? That issue is about different cache keys between different Gradle versions, the problem here doesn't involve Gradle 7.6 at all, it's about different cache key different OSes/architectures, and the same Gradle version is used on both of them 🤔

@eskatos
Copy link
Member

eskatos commented Feb 28, 2023

@lwasyl yep positive
The issue report has links to 7.6 build scans where this was working, this is what hinted at this being the same as #24031.
I could not reproduce with clean systems but could reproduce as soon as I ran builds with 7.6 beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:duplicate Duplicated or superseeded by another issue in:configuration-cache Configuration Caching
Projects
None yet
Development

No branches or pull requests

5 participants