-
Notifications
You must be signed in to change notification settings - Fork 142
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
Staging for version increment automation #684
Conversation
Signed-off-by: pgodithi <[email protected]>
Signed-off-by: pgodithi <[email protected]>
Referred old version increment PR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments, thanks
build.gradle
Outdated
include(name: "build.gradle") | ||
} | ||
} | ||
ant.replaceregexp(file:'sql-jdbc/build.gradle', match:"version '\\d+.\\d+.\\d+.\\d+'", replace:"version " + "'" + newVersion.tokenize('-')[0] + '.0' + "'", flags:'g', byline:true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remove this line? sql-jdbc was accidentally bumped in previous PR, but it's a driver and the version should be independent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So @joshuali925 there is no version increment in this file sql-jdbc/build.gradle'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed in my latest commit @joshuali925
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. the latest sql-jdbc release is 1.1.0.1
, the next one should be 1.2.0.0
or 2.0.0.0
depending on the changes, but should not be the same version as core and plugins
build.gradle
Outdated
fileset(dir: projectDir) { | ||
// Include the required files that needs to be updated with new Version | ||
include(name: ".github/workflows/sql-workbench-test-and-build-workflow.yml") | ||
include(name: "doctest/build.gradle") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also remove this? we don't have version defined in doctest/build.gradle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed in my latest commit @joshuali925
Signed-off-by: pgodithi <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #684 +/- ##
============================================
+ Coverage 94.70% 94.74% +0.04%
- Complexity 2825 2857 +32
============================================
Files 282 283 +1
Lines 7609 7676 +67
Branches 558 561 +3
============================================
+ Hits 7206 7273 +67
Misses 349 349
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
build.gradle
Outdated
fileset(dir: projectDir) { | ||
// Include the required files that needs to be updated with new Version | ||
include(name: ".github/workflows/sql-workbench-test-and-build-workflow.yml") | ||
include(name: "build.gradle") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one more question, is matching opensearch_version.tokenize('-')[0]
enough on build.gradle? e.g. should patterns be more strict to avoid accidentally matching other dependency versions or this is enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I can add more restrictive parsing, will push in my latest commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please check now @joshuali925
Sample PR with new change: prudhvigodithi#2
Does this sample PR for version increment looks good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved, last question: i see it's hard coded to use snapshot in build.gradle + '-SNAPSHOT"'
, will there be a case we use x.x.x
instead of x.x.x-SNAPSHOT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So until now we all build with -SNAPSHOT
except during main release.
@bbarani @peterzhuamazon
Signed-off-by: pgodithi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
Signed-off-by: pgodithi <[email protected]>
Renaming to task updateVersion following opensearch-project/opensearch-plugin-template-java#32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Version increment automation Signed-off-by: pgodithi <[email protected]> (cherry picked from commit 69ab0d3)
* Version increment automation Signed-off-by: pgodithi <[email protected]> (cherry picked from commit 69ab0d3) Signed-off-by: prudhvigodithi <[email protected]>
* Version increment automation Signed-off-by: pgodithi <[email protected]> (cherry picked from commit 69ab0d3) Signed-off-by: prudhvigodithi <[email protected]> Co-authored-by: Prudhvi Godithi <[email protected]>
Description
This is the staging PR for to execute workflows that auto raise the version increment PR's
Example: prudhvigodithi#1
Issues Resolved
Part of: opensearch-project/opensearch-build#1375
From solution: opensearch-project/opensearch-build#1375 (comment)
Related issue: #674
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.