[ 
https://issues.apache.org/jira/browse/BEAM-9444?focusedWorklogId=534857&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-534857
 ]

ASF GitHub Bot logged work on BEAM-9444:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Jan/21 14:02
            Start Date: 12/Jan/21 14:02
    Worklog Time Spent: 10m 
      Work Description: codecov[bot] edited a comment on pull request #13732:
URL: https://github.com/apache/beam/pull/13732#issuecomment-758664639


   # [Codecov](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=h1) Report
   > Merging 
[#13732](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=desc) (2a4caf6) 
into 
[master](https://codecov.io/gh/apache/beam/commit/6c9da02d553cc0d39d29b0293c9b37ac0ceec73e?el=desc)
 (6c9da02) will **decrease** coverage by `0.00%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/beam/pull/13732/graphs/tree.svg?width=650&height=150&src=pr&token=qcbbAh8Fj1)](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #13732      +/-   ##
   ==========================================
   - Coverage   82.75%   82.74%   -0.01%     
   ==========================================
     Files         466      466              
     Lines       57520    57520              
   ==========================================
   - Hits        47598    47597       -1     
   - Misses       9922     9923       +1     
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=tree) | Coverage 
Δ | |
   |---|---|---|
   | 
[sdks/python/apache\_beam/runners/direct/executor.py](https://codecov.io/gh/apache/beam/pull/13732/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy9kaXJlY3QvZXhlY3V0b3IucHk=)
 | `96.29% <0.00%> (-0.53%)` | :arrow_down: |
   | 
[...hon/apache\_beam/runners/worker/bundle\_processor.py](https://codecov.io/gh/apache/beam/pull/13732/diff?src=pr&el=tree#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy93b3JrZXIvYnVuZGxlX3Byb2Nlc3Nvci5weQ==)
 | `93.83% <0.00%> (+0.12%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at 
Codecov](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=continue).
   > **Legend** - [Click here to learn 
more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by 
[Codecov](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=footer). Last 
update 
[6c9da02...2a4caf6](https://codecov.io/gh/apache/beam/pull/13732?src=pr&el=lastupdated).
 Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 534857)
    Time Spent: 20h  (was: 19h 50m)

> Shall we use GCP Libraries BOM to specify Google-related library versions?
> --------------------------------------------------------------------------
>
>                 Key: BEAM-9444
>                 URL: https://issues.apache.org/jira/browse/BEAM-9444
>             Project: Beam
>          Issue Type: Task
>          Components: build-system
>            Reporter: Tomo Suzuki
>            Assignee: Kiley Sok
>            Priority: P3
>             Fix For: 2.26.0
>
>         Attachments: Screen Shot 2020-03-13 at 13.33.01.png, Screen Shot 
> 2020-03-17 at 16.01.16.png
>
>          Time Spent: 20h
>  Remaining Estimate: 0h
>
> Shall we use GCP Libraries BOM to specify Google-related library versions?
>   
>  I've been working on Beam's dependency upgrades in the past few months. I 
> think it's time to consider a long-term solution to keep the libraries 
> up-to-date with small maintenance effort. To achieve that, I propose Beam to 
> use GCP Libraries BOM to set the Google-related library versions, rather than 
> trying to make changes in each of ~30 Google libraries.
>   
> h1. Background
> A BOM is pom.xml that provides dependencyManagement to importing projects.
>   
>  GCP Libraries BOM is a BOM that includes many Google Cloud related libraries 
> + gRPC + protobuf. We (Google Cloud Java Diamond Dependency team) maintain 
> the BOM so that the set of the libraries are compatible with each other.
>   
> h1. Implementation
> Notes for obstacles.
> h2. BeamModulePlugin's "force" does not take BOM into account (thus fails)
> {{forcedModules}} via version resolution strategy is playing bad. This causes
> {noformat}
> A problem occurred evaluating project ':sdks:java:extensions:sql'. 
> Could not resolve all dependencies for configuration 
> ':sdks:java:extensions:sql:fmppTemplates'.
> Invalid format: 'com.google.cloud:google-cloud-core'. Group, name and version 
> cannot be empty. Correct example: 'org.gradle:gradle-core:1.0'{noformat}
> !Screen Shot 2020-03-13 at 13.33.01.png|width=489,height=287! 
>   
> h2. :sdks:java:maven-archetypes:examples needs the version of 
> google-http-client
> The task requires the version for the library:
> {code:java}
>     'google-http-client.version': 
> dependencies.create(project.library.java.google_http_client).getVersion(),
> {code}
> This would generate NullPointerException. Running gradlew without the 
> subproject:
>   
> {code:java}
> ./gradlew -p sdks/java check -x :sdks:java:maven-archetypes:examples:check
> {code}
> h1. Problem in Gradle-generated pom files
> The generated Maven artifact POM has invalid data due to the BOM change. For 
> example my locally installed 
> {{~/.m2/repository/org/apache/beam/beam-sdks-java-io-google-cloud-platform/2.21.0-SNAPSHOT/beam-sdks-java-io-google-cloud-platform-2.21.0-SNAPSHOT.pom}}
>  had the following problems.
> h2. The GCP Libraries BOM showing up in dependencies section:
> {noformat}
>   <dependencies>
>     <dependency>
>       <groupId>com.google.cloud</groupId>
>       <artifactId>libraries-bom</artifactId>
>       <version>4.2.0</version>
>       <scope>compile</scope>
>       <exclusions>
>         <exclusion>
>           <groupId>com.google.guava</groupId>
>           <artifactId>guava-jdk5</artifactId>
>         </exclusion>...
>       </exclusions>
>     </dependency>
> {noformat}
> h2. The artifact that use the BOM in Gradle is missing version in the 
> dependency.
> {noformat}
>     <dependency>
>       <groupId>com.google.api</groupId>
>       <artifactId>gax</artifactId>
>       <version/>
>       <scope>compile</scope>
>       ...
>     </dependency>
> {noformat}
> h1. DependencyManagement section in generated pom.xml
> How can I check whether a entry in dependencies is "platform"?
> !Screen Shot 2020-03-17 at 16.01.16.png|width=504,height=344!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to