Skip to content

Enable the Gradle build cache - #10602

Merged
nastra merged 4 commits into
apache:mainfrom
snazy:enable-build-cache
Jul 3, 2024
Merged

nastra merged 4 commits into
apache:mainfrom
snazy:enable-build-cache

Conversation

@snazy

@snazy snazy commented Jun 28, 2024

Copy link
Copy Markdown
Member

... and explicitly disable the Gradle configuration cache.

@github-actions github-actions Bot added the build label Jun 28, 2024
Comment thread gradle.properties Outdated
org.gradle.configureondemand=true
# explicitly disable the configuration cache
org.gradle.unsafe.configuration-cache=false
#org.gradle.unsafe.configuration-cache-problems=warn

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

left over?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, intentional.

Comment thread gradle.properties Outdated
Comment on lines +27 to +34
# enable the Gradle build cache
org.gradle.caching=true
# enable Gradle parallel builds
org.gradle.parallel=true
# configure only necessary Gradle tasks
org.gradle.configureondemand=true
# explicitly disable the configuration cache
org.gradle.unsafe.configuration-cache=false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The meaning of the configuration is something a reader will be able to look up. These comments are OK, but it would be great to capture the reasoning -- the rationale why we're setting these configuration the way we're setting them. This is important in case someone thinks it would be good to change them further. The rationale informs what to watch out for.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 on adding some reasoning as to why certain things are enabled

Comment thread gradle.properties Outdated
Comment on lines +27 to +34
# enable the Gradle build cache
org.gradle.caching=true
# enable Gradle parallel builds
org.gradle.parallel=true
# configure only necessary Gradle tasks
org.gradle.configureondemand=true
# explicitly disable the configuration cache
org.gradle.unsafe.configuration-cache=false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i am not very familiar with gradle configuration. what is the meaning of "unsafe" in the config option name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Considered "unsafe" to use. It's a property name defined by Gradle.

Comment thread gradle.properties Outdated
org.gradle.configureondemand=true
# explicitly disable the configuration cache
org.gradle.configuration-cache=false
#org.gradle.configuration-cache-problems=warn

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd remove this line as I don't see a good enough reason to keep it here

@snazy
snazy force-pushed the enable-build-cache branch from 0266844 to 35e7b8b Compare July 1, 2024 14:26
@nastra
nastra merged commit d255c87 into apache:main Jul 3, 2024
@snazy
snazy deleted the enable-build-cache branch July 3, 2024 13:26
jasonf20 pushed a commit to jasonf20/iceberg that referenced this pull request Aug 4, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants