Skip to content

Refactor publishing on CI to use a single job#3122

Merged
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/refactor-publishing-to-single-job
Jan 12, 2026
Merged

Refactor publishing on CI to use a single job#3122
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/refactor-publishing-to-single-job

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Using a single invocation of gradle publishToSonatype command to publish all modules. Now we don't have to update publishing tasks when we add a new module.

The only potential downside of such change is that now all the modules will be built in the same container and the parallelism will be limited by the number of cores available there. Thus we can have a slight increase in the total build time in develop branch and during release.

However I don't expect the increase will be huge. We can check it here after the merge. I suspect that setting up the container, downloading gradle and other dependencies takes a significant chunk of the time https://gitlab.ddbuild.io/DataDog/dd-sdk-android/-/jobs/1336551097 (and now this will be done only once).

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

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)

@aleksandr-gringauz
aleksandr-gringauz force-pushed the aleksandr-gringauz/refactor-publishing-to-single-job branch from c2c9e36 to 5e5f69a Compare January 12, 2026 16:07
@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review January 12, 2026 16:19
@aleksandr-gringauz
aleksandr-gringauz requested a review from a team as a code owner January 12, 2026 16:19
@0xnm

0xnm commented Jan 12, 2026

Copy link
Copy Markdown
Member

The only potential downside of such change

There is also another one: if publication of a single module fails, we need to clean up staging area on Maven before restarting job, because we may have artefacts which are already there.

@datadog-official

datadog-official Bot commented Jan 12, 2026

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 94.34%
Overall Coverage: 65.84% (+0.04%)

View detailed report

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.80%. Comparing base (d5b8ec4) to head (5e5f69a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3122      +/-   ##
===========================================
+ Coverage    70.77%   70.80%   +0.03%     
===========================================
  Files          893      893              
  Lines        33014    33014              
  Branches      5554     5554              
===========================================
+ Hits         23363    23373      +10     
+ Misses        8102     8100       -2     
+ Partials      1549     1541       -8     

see 33 files with indirect coverage changes

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

@aleksandr-gringauz

aleksandr-gringauz commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

There is also another one: if publication of a single module fails, we need to clean up staging area on Maven before restarting job, because we may have artefacts which are already there.

Thanks for mentioning this. For now I think it shouldn't be a problem. IIUC after this change all the artifacts will be grouped in a single "deployment" in Sonatype, so if something fails we'll need to drop only one "deployment".

However I'm not a huge expert in this and haven't actually tried it, so I might be wrong.

Edited release page so that during release we don't forget about it.

@aleksandr-gringauz
aleksandr-gringauz merged commit 53a83b8 into develop Jan 12, 2026
26 checks passed
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/refactor-publishing-to-single-job branch January 12, 2026 17:35
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.

3 participants