8000 fixing javadocs by joshfischer1108 · Pull Request #3536 · apache/incubator-heron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

fixing javadocs #3536

Merged
merged 4 commits into from
Jun 7, 2020
Merged

fixing javadocs #3536

merged 4 commits into from
Jun 7, 2020

Conversation

joshfischer1108
Copy link
Member

This PR fixes the Java doc build for the website.

*/


package org.apache.heron.examples.streamlet;
Copy link
Member Author

Choose a reason for hiding this comment

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

This file caused a break in the build as the pulsar library wasn't included in the project anymore. We can add it back at a later time when/if we add a packaged pulsar spout to the contrib code base

Copy link
Contributor

Choose a reason for hiding this comment

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

Want me to take a look at fixing this before the merge?

Copy link
Member Author
@joshfischer1108 joshfischer1108 Jun 5, 2020

Choose a reason for hiding this comment

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

yeah that'd be great. It's probably better than just throwing it away.

Copy link
Member Author
@joshfischer1108 joshfischer1108 Jun 6, 2020

Choose a reason for hiding this comment

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

Hey @nicknezis I'm still getting those errors while generating javadocs when building locally after your push

/Users/joshfischer/Source/apache/incubator-heron/examples/src/java/org/apache/heron/examples/streamlet/SimplePulsarSourceTopology.java:34: error: package org.apache.pulsar.client.api does not exist
import org.apache.pulsar.client.api.Consumer;
                                   ^
/Users/joshfischer/Source/apache/incubator-heron/examples/src/java/org/apache/heron/examples/streamlet/SimplePulsarSourceTopology.java:35: error: package org.apache.pulsar.client.api does not exist
import org.apache.pulsar.client.api.PulsarClient;
                                   ^
/Users/joshfischer/Source/apache/incubator-heron/examples/src/java/org/apache/heron/examples/streamlet/SimplePulsarSourceTopology.java:36: error: package org.apache.pulsar.client.api does not exist
import org.apache.pulsar.client.api.PulsarClientException;
                                   ^
/Users/joshfischer/Source/apache/incubator-heron/examples/src/java/org/apache/heron/examples/streamlet/SimplePulsarSourceTopology.java:52: error: cannot find symbol
    private PulsarClient client;
            ^
  symbol:   class PulsarClient
  location: class PulsarSource
/Users/joshfischer/Source/apache/incubator-heron/examples/src/java/org/apache/heron/examples/streamlet/SimplePulsarSourceTopology.java:53: error: cannot find symbol
    private Consumer consumer;
            ^
  symbol:   class Consumer
  location: class PulsarSource
5 errors

Copy link
Member Author
@joshfischer1108 joshfischer1108 Jun 6, 2020

Choose a reason for hiding this comment

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

To reproduce execute the below from the root directory of the project:
$ cd website2/website && make javadocs

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird, I originally got the error, but then after the edit it went away. I do get a long list of warnings about invalid use of tags. I'll try a fresh git clone and see if it fails again.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. I was able to recreate the issue. Apparently at some point I had run bazel build --config=darwin examples/src/java/... and that made the problem go away. After running bazel clean --expunge, the issue came back. I'll keep looking into it.

Comment on lines -3 to 4
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": 607867898,
"__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": -512671146,
"conflict_resolution": {},
Copy link
Member Author
@joshfischer1108 joshfischer1108 Jun 6, 2020

Choose a reason for hiding this comment

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

I have a question outside the scope of this PR. It looks like this file is auto generated from the maven rule. Should this be checked into SCM?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so. So you can use the external_jvm_rules feature without this file, but anytime someone builds it will resolve the transitive dependencies and can lead to issues. Also performance and ability to do offline builds are impacted. Some good info on the feature here: https://github.com/bazelbuild/rules_jvm_external#pinning-artifacts-and-integration-with-bazels-downloader

One way to think of it is this. Before the WORKSPACE file had a longer list of Jar artifacts with SHA256, the tool now produces this file with the various files.

One key thing that I worry might trip someone up is that changes to the list of Maven dependencies in the WORKSPACE file aren't automatically honored. You have to first run bazel run @unpinned_maven//:pin to update the file. I put a comment in the WORKSPACE file as a reminder in case anyone tried to update versions of dependencies.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Thanks for the info. I'll make sure to read up on this.

@nwangtw
Copy link
Contributor
nwangtw commented Jun 6, 2020 via email

@joshfischer1108 joshfischer1108 merged commit d03c112 into master Jun 7, 2020
@joshfischer1108 joshfischer1108 deleted the joshfischer/java-docs-java11 branch June 7, 2020 12:56
@nwangtw
Copy link
Contributor
nwangtw commented Jun 8, 2020 via email

nicknezis added a commit that referenced this pull request Sep 14, 2020
* fixing javadocs

* Adding back Pulsar Streamlet example

* Excluding examples folder from javadocs

* clean up

Co-authored-by: Nicholas Nezis <nicholas.nezis@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0