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

Publish SNAPSHOT builds to sonatype on pushes to develop #1093

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

fuzzybinary
Copy link
Member

@fuzzybinary fuzzybinary commented Oct 18, 2022

What does this PR do?

Add 'SNAPSHOT' as a version tag, and default new versions to it. Change the build so that develop triggers all publish stages.

Motivation

The cross platform frameworks would like to work from SNAPSHOTS in order to speed up development.

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)

@@ -317,6 +326,7 @@ publish:release-timber:
tags: [ "runner:main" ]
only:
- tags
- develop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you add this here, doesn't this mean that this task will always be performed when develop builds ? That means we are going to push snapshots every time we merge something in develop, is that correct ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's the goal

@@ -317,6 +326,7 @@ publish:release-timber:
tags: [ "runner:main" ]
only:
- tags
- develop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's the goal

@xgouchet xgouchet requested a review from mariusc83 October 20, 2022 08:04
@@ -17,7 +17,7 @@ object AndroidConfig {
const val MIN_SDK_FOR_COMPOSE = 21
const val BUILD_TOOLS_VERSION = "31.0.0"

val VERSION = Version(1, 15, 0, Version.Type.Dev)
val VERSION = Version(1, 15, 0, Version.Type.Snapshot)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it enough to publish the snapshot on Sonatype? will it skip staging/approval step if version has -SNAPSHOT suffix? Or will it be some other PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sonatype will automatically skip staging based on the -SNAPSHOT suffix

@fuzzybinary fuzzybinary marked this pull request as ready for review October 20, 2022 13:50
@fuzzybinary fuzzybinary requested a review from a team as a code owner October 20, 2022 13:50
@fuzzybinary fuzzybinary force-pushed the RUMM-2579-snapshot-builds branch from 77bdb3a to c1dbcbd Compare October 20, 2022 14:10
@xgouchet xgouchet requested a review from 0xnm October 20, 2022 14:25
@codecov-commenter
Copy link

Codecov Report

Merging #1093 (c1dbcbd) into develop (1c9981a) will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1093      +/-   ##
===========================================
+ Coverage    83.20%   83.23%   +0.02%     
===========================================
  Files          273      273              
  Lines         9348     9348              
  Branches      1503     1503              
===========================================
+ Hits          7778     7780       +2     
- Misses        1149     1151       +2     
+ Partials       421      417       -4     
Impacted Files Coverage Δ
...droid/rum/tracking/ActivityViewTrackingStrategy.kt 86.54% <0.00%> (-1.92%) ⬇️
...ain/java/com/datadog/opentracing/PendingTrace.java 56.03% <0.00%> (-1.72%) ⬇️
...rc/main/java/com/datadog/opentracing/DDTracer.java 54.81% <0.00%> (-1.26%) ⬇️
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 88.65% <0.00%> (+2.16%) ⬆️
...droid/rum/tracking/FragmentViewTrackingStrategy.kt 86.96% <0.00%> (+4.35%) ⬆️
...ndroid/core/internal/persistence/file/EventMeta.kt 90.00% <0.00%> (+10.00%) ⬆️

@fuzzybinary fuzzybinary merged commit 3f38162 into develop Oct 20, 2022
@fuzzybinary fuzzybinary deleted the RUMM-2579-snapshot-builds branch October 20, 2022 14:34
@xgouchet xgouchet added this to the 1.15.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants