Skip to content

Use develop build cache as a fallback in Gitlab CI jobs#3140

Merged
0xnm merged 4 commits into
developfrom
nogorodnikov/use-develop-branch-build-cache-fallback
Jan 26, 2026
Merged

Use develop build cache as a fallback in Gitlab CI jobs#3140
0xnm merged 4 commits into
developfrom
nogorodnikov/use-develop-branch-build-cache-fallback

Conversation

@0xnm

@0xnm 0xnm commented Jan 21, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Current pipeline is very long, it may take up to 1h to finish.

The caching strategy we use right now is a current branch name as a cache key, meaning for the first PR there is no cache.

This PR adds develop branch cache as a fallback by leveraging https://docs.gitlab.com/ci/caching/#global-fallback-key.

Also adding build cache to more jobs.

Restoring cache
Checking cache for nogorodnikov-use-develop-branch-build-cache-fallback-protected...
WARNING: received: 403 Forbidden                   
Failed to extract cache
Checking cache for develop...
Downloading cache from https://<url_here_removed>
Successfully extracted cache

Publish to Maven jobs don't use cache on purpose.

Also this PR enables build cache usage.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm marked this pull request as ready for review January 21, 2026 10:44
@0xnm
0xnm requested a review from a team as a code owner January 21, 2026 10:44
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jan 21, 2026

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 100.00%
Overall Coverage: 66.09% (-0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 80f0c69 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@kikoveiga

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

kikoveiga
kikoveiga previously approved these changes Jan 21, 2026
@codecov-commenter

codecov-commenter commented Jan 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.93%. Comparing base (1fdf798) to head (80f0c69).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3140      +/-   ##
===========================================
- Coverage    71.02%   70.93%   -0.08%     
===========================================
  Files          912      912              
  Lines        33525    33525              
  Branches      5635     5635              
===========================================
- Hits         23808    23780      -28     
- Misses        8149     8179      +30     
+ Partials      1568     1566       -2     

see 39 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ambushwork
ambushwork previously approved these changes Jan 22, 2026
@0xnm
0xnm force-pushed the nogorodnikov/use-develop-branch-build-cache-fallback branch from 1bdacb3 to 4b3bb3e Compare January 23, 2026 16:55
kikoveiga
kikoveiga previously approved these changes Jan 23, 2026
Comment thread ci/pipelines/default-pipeline.yml Outdated
Comment thread ci/pipelines/default-pipeline.yml
@0xnm
0xnm merged commit 47826d1 into develop Jan 26, 2026
26 checks passed
@0xnm
0xnm deleted the nogorodnikov/use-develop-branch-build-cache-fallback branch January 26, 2026 13:05
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.

5 participants