Skip to content

Apidiff - #928

Merged
germanattanasio merged 11 commits into
watson-developer-cloud:developfrom
chohanbin:apidiff
Apr 23, 2018
Merged

germanattanasio merged 11 commits into
watson-developer-cloud:developfrom
chohanbin:apidiff

Conversation

@chohanbin

Copy link
Copy Markdown
Contributor

This pull request addresses Issue #741

Produce API diff of the current version of Java-SDK (the version opened in the working directory) and the latest release (published on Maven) by invoking ./apidiff.sh from the root java-sdk/.
Find the produced API diff report in java-sdk/build/reports/.

The script that uploads the produced API diffs to WDC GitHub IO page need to be tested with Travis.

@codecov-io

codecov-io commented Apr 17, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #928 into develop will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #928      +/-   ##
=============================================
- Coverage      38.79%   38.78%   -0.02%     
  Complexity      1438     1438              
=============================================
  Files            562      562              
  Lines          14398    14398              
  Branches         842      842              
=============================================
- Hits            5586     5584       -2     
- Misses          8487     8489       +2     
  Partials         325      325
Impacted Files Coverage Δ Complexity Δ
...m/watson/developer_cloud/util/CredentialUtils.java 60.86% <0%> (-1.74%) 30% <0%> (ø)

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 2a1f307...ac91141. Read the comment docs.

Comment thread apidiff.sh
@@ -0,0 +1,53 @@
#!/bin/bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we name this file to something like generate-api-diff.sh to make it slightly more descriptive? I think it would also make more sense to be in the .utility folder, which would involve moving directories a little bit in the script.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That sounds good. Adding the verb makes what the script is for clearer! And moving to .utility folder makes sense, since other documentation generation scripts are located there too.

Comment thread .utility/push-javadoc-to-gh-pages.sh Outdated
cp -f ../build/reports/java-sdk-api-diff* apidiff/
../.utility/generate_apidiff_index_html.sh > apidiff/index.html

# update the latest/ symlink

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Weird indentation here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh good catch. I replaced the tab character with four spaces in the new change.

Comment thread apidiff.sh Outdated
# TODO: Figure out how to set japicmp task's properties (oldClasspath and newClasspath) through command-line invocation.
./gradlew japicmp -PoldJarPath="${LATEST_RELEASE_JAR_PATH}" -PnewJarPath="${CURRENT_JAR_PATH}" -PoldJarVersion="${LATEST_RELEASE_VERSION}" -PnewJarVersion="${CURRENT_VERSION}"

# Step 8: Construct the filepath to the produced API diff.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need these comments? It seems like these steps are happening outside of this script, so it's just a little confusing to have them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I forgot to remove these.

@lpatino10 lpatino10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall looks really good! I left just a few comments, but once they're addressed I'm happy to merge.

@lpatino10 lpatino10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@germanattanasio
germanattanasio merged commit 3965166 into watson-developer-cloud:develop Apr 23, 2018
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.

4 participants