You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "PragmaTwice (via GitHub)" <gi...@apache.org> on 2025/11/11 12:10:13 UTC

[PR] build: support to cache archive of fetched dependencies [kvrocks]

PragmaTwice opened a new pull request, #3257:
URL: https://github.com/apache/kvrocks/pull/3257

   This patch adds a new cmake variable `DEPS_FETCH_DIR`:
   - fetched dependence archives will be put to this dir;
   - if the archive file in this dir exists, downloading phase will be skipped.
   
   Hence this patch enables "offline building" of kvrocks.
   
   Steps for offline building:
   
   1. in an online environment, fetch kvrocks source repo and run cmake with `-DDEPS_FETCH_DIR=<dep-dir>`.
   2. copy kvrocks source code along with `build/<dep-dir>` to a offline environment.
   3. in the offline environment, build kvrocks with `-DDEPS_FETCH_DIR=<dep-dir>`.
   
   An example of files in the dep dir:
   ```sh
   $ ll build/deps
   total 40M
   -rw-r--r-- 1 twice twice  559K Nov 11 18:44 cpptrace-v1.0.3.zip
   -rw-r--r-- 1 twice twice  747K Nov 11 18:43 fmt-12.1.0.zip
   -rw-r--r-- 1 twice twice  1.1M Nov 11 18:42 gtest-v1.17.0.zip
   -rw-r--r-- 1 twice twice  958K Nov 11 18:42 jemalloc-5.3.0.zip
   -rw-r--r-- 1 twice twice  2.2M Nov 11 18:43 jsoncons-v1.4.3.zip
   -rw-r--r-- 1 twice twice  904K Nov 11 18:43 libevent-release-2.1.12-stable.zip
   -rw-r--r-- 1 twice twice  1.2M Nov 11 18:44 luajit-c0a8e68325ec261a77bde1c8eabad398168ffe74.zip
   -rw-r--r-- 1 twice twice  479K Nov 11 18:42 lz4-v1.10.0.zip
   -rw-r--r-- 1 twice twice  460K Nov 11 18:43 pegtl-3.2.8.zip
   -rw-r--r-- 1 twice twice 1015K Nov 11 18:44 rangev3-0.12.0.zip
   -rw-r--r-- 1 twice twice   15M Nov 11 18:43 rocksdb-v10.6.2.zip
   -rw-r--r-- 1 twice twice  1.2M Nov 11 18:42 snappy-1.2.2-rtti.zip
   -rw-r--r-- 1 twice twice   70K Nov 11 18:43 span-v0.11.0.zip
   -rw-r--r-- 1 twice twice  355K Nov 11 18:43 spdlog-v1.16.0.zip
   -rw-r--r-- 1 twice twice  7.4M Nov 11 18:43 tbb-v2022.3.0.zip
   -rw-r--r-- 1 twice twice   98K Nov 11 18:43 trie-906e6abd1e7063f1dacd3a6b270aa654b525eb0a.zip
   -rw-r--r-- 1 twice twice  1.2M Nov 11 18:43 xxhash-v0.8.3.zip
   -rw-r--r-- 1 twice twice  2.5M Nov 11 18:42 zlib-2.2.4.zip
   -rw-r--r-- 1 twice twice  2.7M Nov 11 18:43 zstd-v1.5.7.zip
   ```
   


-- 
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: issues-unsubscribe@kvrocks.apache.org

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


Re: [PR] build: support to cache archives of fetched dependencies [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice merged PR #3257:
URL: https://github.com/apache/kvrocks/pull/3257


-- 
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: issues-unsubscribe@kvrocks.apache.org

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


Re: [PR] build: support to cache archives of fetched dependencies [kvrocks]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #3257:
URL: https://github.com/apache/kvrocks/pull/3257#issuecomment-3517819146

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3257) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3257&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3257&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_kvrocks&pullRequest=3257&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [61.9% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3257&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [1.2% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3257&metric=new_duplicated_lines_density&view=list)  
     
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3257)
   
   


-- 
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: issues-unsubscribe@kvrocks.apache.org

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


Re: [PR] build: support to cache archives of fetched dependencies [kvrocks]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #3257:
URL: https://github.com/apache/kvrocks/pull/3257#issuecomment-3517093664

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3257) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3257&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_kvrocks&pullRequest=3257&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_kvrocks&pullRequest=3257&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [61.9% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3257&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [1.2% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_kvrocks&pullRequest=3257&metric=new_duplicated_lines_density&view=list)  
     
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_kvrocks&pullRequest=3257)
   
   


-- 
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: issues-unsubscribe@kvrocks.apache.org

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