8000 Update core package by lpatino10 · Pull Request #1096 · watson-developer-cloud/java-sdk · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@lpatino10
Copy link
Contributor

This PR updates the core SDK package, mainly to fix #1095. Other core changes included in this update can be found here: https://github.com/IBM/java-sdk-core/releases/tag/7.1.0

Besides the core update, I reconfigured the automated release to fix an issue that had been occurring where bumpversion commits were being excluded from master.

@codecov-io
Copy link
codecov-io commented Nov 11, 2019

Codecov Report

Merging #1096 into master will increase coverage by 0.85%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1096      +/-   ##
============================================
+ Coverage     67.29%   68.14%   +0.85%     
- Complexity     3070     3153      +83     
============================================
  Files           658      658              
  Lines         17315    17315              
  Branches        945      945              
============================================
+ Hits          11652    11800     +148     
+ Misses         5261     5148     -113     
+ Partials        402      367      -35
Impacted Files Coverage Δ Complexity Δ
...tson/speech_to_text/v1/model/CreateJobOptions.java 64.93% <0%> (+2.59%) 28% <0%> (ø) ⬇️
...atson/speech_to_text/v1/model/AddAudioOptions.java 66.66% <0%> (+4.16%) 7% <0%> (ø) ⬇️
.../watson/speech_to_text/v1/model/LanguageModel.java 37.5% <0%> (+6.25%) 5% <0%> (+1%) ⬆️
.../watson/speech_to_text/v1/model/AcousticModel.java 50% <0%> (+7.14%) 6% <0%> (+1%) ⬆️
...com/ibm/watson/speech_to_text/v1/SpeechToText.java 92.77% <0%> (+9.14%) 131% <0%> (+39%) ⬆️
...m/watson/speech_to_text/v1/model/AudioListing.java 87.5% <0%> (+12.5%) 6% <0%> (+1%) ⬆️
...xt/v1/websocket/SpeechToTextWebSocketListener.java 72.97% <0%> (+14.86%) 15% <0%> (+6%) ⬆️
...om/ibm/watson/speech_to_text/v1/model/Grammar.java 50% <0%> (+16.66%) 2% <0%> (+1%) ⬆️
...tson/speech_to_text/v1/model/RecognizeOptions.java 69.78% <0%> (+18.7%) 22% <0%> (ø) ⬇️
...watson/speech_to_text/v1/model/ProcessedAudio.java 20% <0%> (+20%) 1% <0%> (+1%) ⬆️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7852f9...e156482. Read the comment docs.

Copy link
Contributor
@mediumTaj mediumTaj left a comment

Choose a reason for hiding this comment

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

👍 looks good, tagging phil as well

@mediumTaj mediumTaj requested a review from padamstx November 11, 2019 20:39
Copy link
Contributor
@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

Left a couple comments that you can deal with as you see fit.

{
"branch": "master",
"tagFormat": "java-sdk-${version}",
"debug": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

technically this doesn't need to be here... I think the debug flag is really just used to produce more verbose output in the travis build log (possibly... presumably... :) ).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I went ahead and added it just in case this change still isn't it so that I can fix it easier 😬

"tagFormat": "java-sdk-${version}",
"debug": true,
"plugins": [
"@semantic-release/changelog",
Copy link
Contributor

Choose a reason for hiding this comment

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

In the go and python cores, I didn't specify a "plugins" field. Instead, the list of plugins are listed in the "prepare" field.
I don't know what the difference is, but I do know that those two repos seems to be working correctly now :)
But the key is to ensure that the "git" plugin is executed last I think after the steps that create commits are finished.
Here's a link to the go core .releaserc file in case you want to take a look at that for comparison purposes:
https://github.com/IBM/go-sdk-core/blob/master/.releaserc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I saw that you were doing it a bit differently. The only reason I went with the "plugins" approach is that it seems to be the new standard way to define it, at least according to semantic-release documentation: https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#options

Since we're running npx semantic-release, we should be grabbing the latest version. I'm just a bit worried that some build in the future might grab a major release and remove support for what seems to be the old way of defining things. I tried to still re-arrange the order to match what you've done since that was presumably the issue.

compile project(':common')
testCompile project(':common').sourceSets.test.output
compile 'com.ibm.cloud:sdk-core:7.0.0'
compile 'com.ibm.cloud:sdk-core:7.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

If you end up using the latest version of the generator to generate the upcoming Watson sdk release, you'll need to upgrade to the new major version of the java core (8.0.0) after that is tagged (should be soon). Just a heads up.

@lpatino10 lpatino10 merged commit c52a817 into master Nov 11, 2019
@lpatino10 lpatino10 deleted the core-dependency-update branch November 11, 2019 22:04
@watson-github-bot
Copy link
Contributor

🎉 This PR is included in version 8.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Jar with dependencies contains unnecessary and potentially harmful dependencies

6 participants

0