Skip to content

[CALCITE-4140] Add Gradle Remote Build Cache configuration#2081

Closed
vlsi wants to merge 1 commit intoapache:masterfrom
vlsi:build_cache
Closed

[CALCITE-4140] Add Gradle Remote Build Cache configuration#2081
vlsi wants to merge 1 commit intoapache:masterfrom
vlsi:build_cache

Conversation

@vlsi
Copy link
Copy Markdown
Contributor

@vlsi vlsi commented Jul 25, 2020

See https://issues.apache.org/jira/browse/CALCITE-4140


Gradle build cache enables to reuse build artifacts across different build executions: https://docs.gradle.org/current/userguide/build_cache.html

For instance, if linq4j code is not modified, its compileJava and javadoc results can be reused in the other builds (e.g. PR builds).

test tasks should probably not be cached as the tests often include integrations with databases, so we should execute them from scratch.

Note: the cache is sensitive to Gradle version, Java version, and extra files in the workspace, so the common practice is to seed the cache only from CI jobs.

There's ticket for ASF build cache: https://issues.apache.org/jira/browse/INFRA-20516, however, it is likely we won't be able to use it in GitHub Actions :-/

An alternative option is to setup AWS S3-backed cache via https://github.com/burrunan/gradle-s3-build-cache

@vlsi vlsi force-pushed the build_cache branch 6 times, most recently from 576d3fd to 0d3910c Compare July 25, 2020 19:41
@vlsi vlsi force-pushed the build_cache branch 7 times, most recently from 210ed72 to 96a26d6 Compare July 27, 2020 10:18
@vlsi vlsi closed this Nov 14, 2020
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.

2 participants