Skip to content

Conversation

@bamboo
Copy link
Member

@bamboo bamboo commented Aug 18, 2025

Fixes #20969

Reviewing cheatsheet

Before merging the PR, comments starting with

  • ❌ ❓must be fixed
  • 🤔 💅 should be fixed
  • 💭 may be fixed
  • 🎉 celebrate happy things

@bamboo bamboo added this to the 9.2.0 RC1 milestone Aug 18, 2025
@bamboo bamboo self-assigned this Aug 18, 2025
@bamboo bamboo requested a review from a team as a code owner August 18, 2025 20:21
@bamboo bamboo requested review from alllex and mlopatkin and removed request for a team August 18, 2025 20:21
@bamboo bamboo added in:configuration-cache Configuration Caching a:performance-improvement Performance improvement potential labels Aug 18, 2025
@bamboo
Copy link
Member Author

bamboo commented Aug 18, 2025

@bot-gradle test ACC

@bot-gradle

This comment has been minimized.

@bot-gradle
Copy link
Collaborator

@bot-gradle
Copy link
Collaborator

@bot-gradle
Copy link
Collaborator

@bamboo bamboo marked this pull request as draft August 19, 2025 03:29
Copy link
Member

@mlopatkin mlopatkin left a comment

Choose a reason for hiding this comment

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

🎉

outputContains "configuration cache cannot be reused because Gradle property 'foo' has changed."
}

def "invalidates cache when system property used at configuration time changes on disk"() {
Copy link
Member

Choose a reason for hiding this comment

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

💅 Should we also test that we reuse the cache if the system property is never read?

outputContains "configuration cache cannot be reused because Gradle property 'foo' has changed."
}

def "invalidates cache when system property used at configuration time changes on disk"() {
Copy link
Member

Choose a reason for hiding this comment

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

💅 I would also add a test where a system property is set in the file, used only at execution time, to verify that the change to it is visible, while still getting a cache hit.

@bamboo bamboo removed their assignment Aug 22, 2025
@bamboo bamboo modified the milestones: 9.2.0 RC1, 9.3.0 RC1 Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:performance-improvement Performance improvement potential in:configuration-cache Configuration Caching

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project properties not used at configuration time can still invalidate configuration cache

4 participants