-
Notifications
You must be signed in to change notification settings - Fork 9
7903866: apidiff: add an example to the doc #26
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
Conversation
|
👋 Welcome back aph! A progress list of the required criteria for merging this PR into |
|
@theRealAph This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jonathan-gibbons) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
src/share/doc/apidiff.md
Outdated
| --jdk-build=/local/baseline-jdk/build/linux-x86_64-server-fastdebug --jdk-docs docs \ | ||
| --api sv \ | ||
| --jdk-build=/local/updated-jdk/build/linux-x86_64-server-fastdebug --jdk-docs docs \ |
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.
--jdk-docs is not an api-specific option, and need only be given once, separately from all the apis. It will apply to all the apis. And, it is only necessary if there are multiple *docs* directories in the build/.../images directory -- although it is not wrong to give it anyway, just in case.
Stylistically, I would put the first --api option on its own line, to better illustrate the similarity between the two different APIs, but that's a matter of personal style.
Stylistically, the use of = for some options but not others is curious.
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.
I'm finding all of this very hard to follow, mostly because I have no idea how apidiff is supposed to work. I'm just floundering about in the dark, really.
| --api sv \ | ||
| --jdk-build=/local/updated-jdk/build/linux-x86_64-server-fastdebug --jdk-docs docs \ | ||
| -d out \ | ||
| --compare-api-descriptions 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.
It is intended that --compare-api-descriptions should default to true, although it is not wrong to be explicit. If you found it to be necessary, that would be worth investigating.
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.
It is intended that
--compare-api-descriptionsshould default totrue, although it is not wrong to be explicit. If you found it to be necessary, that would be worth investigating.
I find it very hard to understand the ifs and buts in the description of this option, and @AlanBateman used the option this way. Please advise me to leave it in or take it out.
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.
I used it in the example I gave Andrew to be explicit, no other reason. In any case, I agree we need some recipes in the docs. If they include a path to a build then probably better to use a path to a release build as someone is unlikely to be using fast debug build for this kinda of thing.
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.
@AlanBateman @theRealAph
I will look to create more examples. At least part of the problem is the variety of ways that people might create the two instances of a build to be compared. For example, one can use two different repos, each with their own build (that has been my personal preference), or two different git workareas, or two differently named build configurations within the same repo.
It also didn't help that there was a bug in the version that people first started using, causing them to try weird command-line combinations to work around the bug. That bug has now been fixed.
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.
@AlanBateman @theRealAph I will look to create more examples.
Will you approve this one, please?
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.
My intent is to develop a section in the doc containing real, verified examples (backed up by some form of test script.) My thought is to start with the smallest command-line for testing 2 JDK builds, and to build up from there. I'd like to illustrate that the command line is not that complicated! You should have seen it before the --jdk-build option was introduced.
That all being said, it will take a (short) while to develop that update, so I'll approve this example as either an interim measure or as part of what is to come.
OK, thanks. Regardless of other sections in the docs with real, verified examples, it's still a really good idea to have a few simple examples at the end of the man page. Such examples help by effectively tying the long list of options to something more concrete. |
|
/integrate |
|
@theRealAph |
|
/sponsor |
|
@jonathan-gibbons @theRealAph Pushed as commit 3495601. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
It's an example, for example. We need more.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/apidiff.git pull/26/head:pull/26$ git checkout pull/26Update a local copy of the PR:
$ git checkout pull/26$ git pull https://git.openjdk.org/apidiff.git pull/26/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26View PR using the GUI difftool:
$ git pr show -t 26Using diff file
Download this PR as a diff file:
https://git.openjdk.org/apidiff/pull/26.diff
Webrev
Link to Webrev Comment