Skip to content

Conversation

@vam-google
Copy link
Contributor

@vam-google vam-google commented Apr 10, 2018

  1. Fix javadoc takes a long time to generate #3084. Now create_site.sh takes 2 min 50 sec on my workstation (compared to around 1 hr 30 min before). Done mostly by disabling unused/incorrect reports generation.

  2. Remove unused/incorrect reports (reduces size of generated site by factor of 2). The most time consuming were the cobertura test coverage, code style and dependencies reports:

    2.1) For cobertura test coverage, since we were generating the report with -DdisableTests flag, the test coverage was constantly reported as 0 with huge reports full of zeros and "red" untested code: https://googlecloudplatform.github.io/google-cloud-java/0.42.1/cobertura/index.html

    2.2) For code style: it was far the most time consuming report, results of which are huge and which we ignore and they seem have no real value in our workflow (if it did, we should enforce that rules on build and fix them, instead of generating reports): https://googlecloudplatform.github.io/google-cloud-java/0.42.1/checkstyle-aggregate.html

    2.3) Dependencies report has marginal use, and is the only one I removed not because it was wrong, but was almos useless, but was the second most time consuming report among all (after the code style).

  3. Fix google-cloud-bom documentation discrepancies (looked completely differently, needed extra configuration, since it is not a child of the main pom)

  4. Fix site multimodule cross links (currently https://googlecloudplatform.github.io/google-cloud-java/0.42.1/modules.html is completely broken, for example try clicking on Google Cloud Java BOM, Google Cloud Dataproc and Google Cloud Datastore - all give different results and only dataproc kind of works).

More changes will be done in the context of moving grpc and proto artifacts under google-cloud-java (our maven plugins need update and currently we use deprecated (unsupported in newer versions) configuration.

1) Fix googleapis#3084. Now create_site.sh takes 2 min 50 sec on my workstation (compared to arond 1 hr 30 min before). Done mostly by disabling unused/incorrect reports generation.
2) Remove unused/incorrect reports (reduces size of generated site by factor of 2). The most time consuming were the `cobertura test coverage`, `code style` and `dependencies` reports:
    2.1) For cobertura test coverage, since we were generating tests with -DdisableTests flag, the test coverage is constantly reported as 0 with huge reports full of zeros and "red" untested code: https://googlecloudplatform.github.io/google-cloud-java/0.42.1/cobertura/index.html
    2.2) For `code style`: it was far the most time consuming report, results of which are huge and which we ignore and they seem have no real value:  https://googlecloudplatform.github.io/google-cloud-java/0.42.1/checkstyle-aggregate.html
    2.3) Dependencies report has marginal use, and is the only one I removed not because it was wrong, but was almos useless, but was the second most time consuming report among all (after the code style).
2) Fix google-cloud-bom documentation discrepancies (looked completely differently, needed extra configuration, since it is not a child of the main pom)
3) Fix site multimodule cross links (currently https://googlecloudplatform.github.io/google-cloud-java/0.42.1/modules.html is completely broken, for example try clicking on `Google Cloud Java BOM`, `Google Cloud Dataproc` and `Google Cloud Datastore` - all give different results and only dataproc kind of works).
4) More changes will be done in the context of moving grpc and proto artifacts under google-cloud-java (our maven plugins need update and currently we use deprecated (unsupported in newer versions) configuration.
@vam-google vam-google requested a review from pongad as a code owner April 10, 2018 19:37
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 10, 2018
Copy link
Member

@garrettjonesgoogle garrettjonesgoogle left a comment

Choose a reason for hiding this comment

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

LGTM after copyright fix

@@ -0,0 +1,32 @@
<!--
~ Copyright 2018 Google Inc. All Rights Reserved.

This comment was marked as spam.

@vam-google vam-google merged commit 696232f into googleapis:master Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javadoc takes a long time to generate

3 participants