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

Gitlab build cache improvements #6946

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

randomanderson
Copy link
Contributor

What Does This Do

Improves the gradle build cache when running the build in gitlab. The setup closely matches that of CircleCI.

There are 2 caches: a dependency cache and build cache. The dependency cache contains the gradle wrapper and all maven dependencies. The build cache is a cache of the currently running pipeline. Both caches can be controlled on a per-job basis using variables.

Motivation

Fixing the cache is important for #6837 .

Additional Notes

https://github.com/DataDog/auto_inject/pull/172 must be merged before this to use the proper gitlab runners.

try single policy

try directly in the job

simplify more

local variable

change variable name

Using correct runner
add some debugging messages

print debug info better

more adjustments

try saving the whole workspace
@randomanderson randomanderson added tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels Apr 25, 2024
@randomanderson randomanderson requested a review from a team as a code owner April 25, 2024 11:38
.gitlab-ci.yml Outdated Show resolved Hide resolved
@randomanderson randomanderson marked this pull request as draft April 25, 2024 15:53
@randomanderson
Copy link
Contributor Author

Converting to a draft while I investigate more tweaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: tooling Build & Tooling tag: no release notes Changes to exclude from release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants