You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/01/19 02:56:00 UTC

[GitHub] [shardingsphere] sandynz opened a new issue #14878: Download springframework from maven repository might cost several minutes in GitHub CI maven building

sandynz opened a new issue #14878:
URL: https://github.com/apache/shardingsphere/issues/14878


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   On build phase, no matter JDBC or Proxy.
   
   ### Expected behavior
   Pick spring dependency from maven center quickly.
   
   ### Actual behavior
   It might cost several minutes to decide which spring version to be used.
   
   From my forked ShardingSphere GitHub CI:
   [workflow 4853448367]( https://github.com/sandynz/shardingsphere/runs/4853448367?check_suite_focus=true )
   [INFO] shardingsphere-jdbc-spring-boot-starter-infra ...... SUCCESS [04:05 min]
   [workflow 4853448153]( https://github.com/sandynz/shardingsphere/runs/4853448153?check_suite_focus=true )
   [INFO] shardingsphere-jdbc-spring-boot-starter-infra ...... SUCCESS [07:31 min]
   [workflow 4853448201]( https://github.com/sandynz/shardingsphere/runs/4853448201?check_suite_focus=true )
   [INFO] shardingsphere-jdbc-spring-boot-starter-infra ...... SUCCESS [10:14 min]
   
   From ShardingSphere GitHub CI:
   [workflow 4852056251]( https://github.com/apache/shardingsphere/runs/4852056251?check_suite_focus=true )
   [INFO] shardingsphere-jdbc-spring-boot-starter-infra ...... SUCCESS [09:21 min]
   From `Build with Maven` raw log:
   ```
   2022-01-18T11:17:46.7257630Z [INFO] --< org.apache.shardingsphere:shardingsphere-jdbc-spring-boot-starter-infra >--
   2022-01-18T11:17:46.7258596Z [INFO] Building shardingsphere-jdbc-spring-boot-starter-infra 5.0.1-SNAPSHOT [138/210]
   2022-01-18T11:17:46.7259465Z [INFO] --------------------------------[ jar ]---------------------------------
   2022-01-18T11:17:46.7309526Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/boot/spring-boot-starter/maven-metadata.xml
   2022-01-18T11:17:46.7324861Z [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter/maven-metadata.xml
   2022-01-18T11:17:47.2007675Z [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter/maven-metadata.xml (5.9 kB at 13 kB/s)
   2022-01-18T11:17:47.2352737Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/boot/spring-boot-starter-test/maven-metadata.xml
   2022-01-18T11:17:47.2375007Z [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-test/maven-metadata.xml
   2022-01-18T11:17:47.5738046Z [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-test/maven-metadata.xml (5.9 kB at 17 kB/s)
   ...
   2022-01-18T11:18:06.5473990Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.6.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:18:16.7192655Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.6.BUILD-SNAPSHOT/maven-metadata.xml (2.0 kB at 200 B/s)
   2022-01-18T11:18:16.7233722Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/spring-core/4.3.6.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:18:16.7243141Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.6.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:18:17.5518822Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.6.BUILD-SNAPSHOT/maven-metadata.xml (2.0 kB at 2.5 kB/s)
   ...
   2022-01-18T11:26:12.0523448Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:26:21.5379531Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/maven-metadata.xml (1.2 kB at 131 B/s)
   2022-01-18T11:26:21.5415694Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/spring-test-4.3.31.BUILD-20201209.083215-1.pom
   2022-01-18T11:26:21.8290702Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/spring-test-4.3.31.BUILD-20201209.083215-1.pom
   2022-01-18T11:26:32.6794103Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/spring-test-4.3.31.BUILD-20201209.083215-1.pom (8.3 kB at 761 B/s)
   2022-01-18T11:26:32.6813640Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:26:32.6825251Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/maven-metadata.xml
   2022-01-18T11:26:34.1894377Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/maven-metadata.xml (1.2 kB at 824 B/s)
   2022-01-18T11:26:34.1907984Z [INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/spring-core-4.3.31.BUILD-20201209.083215-1.pom
   2022-01-18T11:26:34.4748460Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/spring-core-4.3.31.BUILD-20201209.083215-1.pom
   2022-01-18T11:26:50.4644042Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-core/4.3.31.BUILD-SNAPSHOT/spring-core-4.3.31.BUILD-20201209.083215-1.pom (2.5 kB at 155 B/s)
   2022-01-18T11:26:50.4856945Z [INFO] Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/spring-test-4.3.31.BUILD-20201209.083215-1.jar
   2022-01-18T11:26:57.5465754Z [INFO] Downloaded from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/spring-test/4.3.31.BUILD-SNAPSHOT/spring-test-4.3.31.BUILD-20201209.083215-1.jar (605 kB at 86 kB/s)
   2022-01-18T11:26:57.5486394Z [INFO] 
   2022-01-18T11:26:57.5487638Z [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ shardingsphere-jdbc-spring-boot-starter-infra ---
   ```
   
   The cost time range is from `2022-01-18T11:17:46.7257630Z` to `2022-01-18T11:26:57.5465754Z`, more than `9` minutes.
   
   It try to load a bunch of `BUILD-SNAPSHOT` (`4.3.6.BUILD-SNAPSHOT` to `4.3.31.BUILD-SNAPSHOT`) from `apache.snapshots`, `central` and `spring-snapshots` repository.
   
   ### Reason analyze (If you can)
   Maybe snapshot repository is enabled and spring version range in maven dependency doesn't exclude snapshot version.
   
   In `pom.xml`:
   ```
           <springframework.version>[4.3.6.RELEASE,5.0.0.M1)</springframework.version>
           <spring-boot.version>[1.5.20.RELEASE,2.0.0.M1)</spring-boot.version>
   ```
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   Submit a PR
   
   ### Example codes for reproduce this issue (such as a github link).
   Check log in [GitHub Actions]( https://github.com/apache/shardingsphere/actions )
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] sandynz commented on issue #14878: Download springframework from maven repository might cost several minutes in GitHub CI maven building

Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #14878:
URL: https://github.com/apache/shardingsphere/issues/14878#issuecomment-1016214555


   Check it later after self-hosted runners are ready in GitHub actions.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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