[
https://issues.apache.org/jira/browse/CASSANDRA-21403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Semb Wever updated CASSANDRA-21403:
-------------------------------------------
Fix Version/s: 5.0.9
6.0-alpha2
7.0
(was: 5.0.x)
(was: 6.x)
(was: 7.x)
Source Control Link:
https://github.com/apache/cassandra/commit/b78f654fff6cc5429ee07d9bf7e5978ed2710246
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> Preload maven dependencies and gradle binary in docker build/test images
> ------------------------------------------------------------------------
>
> Key: CASSANDRA-21403
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21403
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Build, CI
> Reporter: Michael Semb Wever
> Assignee: Michael Semb Wever
> Priority: Normal
> Fix For: 5.0.9, 6.0-alpha2, 7.0
>
> Attachments: ci_summary_thelastpickle_mck-21403-5.0_112.html,
> ci_summary_thelastpickle_mck-21403-5.0_148.html,
> ci_summary_thelastpickle_mck-21403-6.0_13.html,
> ci_summary_thelastpickle_mck-21403-6.0_25.html,
> ci_summary_thelastpickle_mck-21403-trunk_146.html,
> ci_summary_thelastpickle_mck-21403-trunk_93.html,
> results_details_thelastpickle_mck-21403-5.0_112.tar.xz,
> results_details_thelastpickle_mck-21403-5.0_148.tar.xz,
> results_details_thelastpickle_mck-21403-6.0_13.tar.xz,
> results_details_thelastpickle_mck-21403-6.0_25.tar.xz,
> results_details_thelastpickle_mck-21403-trunk_146.tar.xz,
> results_details_thelastpickle_mck-21403-trunk_93.tar.xz
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Maven dependencies (and the gradle binary for accord's gradle wrapper) were
> being downloaded on every CI pipeline run. This lead to hitting rate limits
> and runs failing.
> The docker containers mount the host's ~/.m2/repository to try to reduce this
> download cost, but CI can't do this for two reasons:
> 1. pre-ci.cassandra.a.o spins up new agents each build
> 2. ci-cassandra.a.o mounts a tmp directory, as it runs multiple executors on
> the same agent hosts, and multiple containers cannot use the same repository
> directory (or files become corrupt).
> The solution is to bake in the maven dependencies and gradle binary into the
> images, and rsync them into place when the container runs.
> The preloaded set of dependencies will drift over time as dependencies are
> added or versions bumped, but this is expected to be a minor issue remedied
> in time when the image is built and deployed again. (It can be freely rebuilt
> at any time too.)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]