Conversation
It allows redefining jemalloc's page size for image targeting specific ARM machines.
📝 WalkthroughWalkthroughAdds two new Docker build arguments: Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
Dockerfile (1)
120-124: Propagate TARGET_CPU and jemalloc env to the final build.The second build RUN drops both
TARGET_CPUandJEMALLOC_SYS_WITH_LG_PAGE, so the finalxx-cargo buildignores these new knobs. Extend this command the same way as the earlierchef cookstep:RUN PKG_CONFIG="/usr/bin/$(xx-info)-pkg-config" \ PATH="$PATH:/opt/mold/bin" \ - RUSTFLAGS="${LINKER:+-C link-arg=-fuse-ld=}$LINKER $RUSTFLAGS" \ + RUSTFLAGS="${LINKER:+-C link-arg=-fuse-ld=}$LINKER ${TARGET_CPU:+-C target-cpu=}$TARGET_CPU $RUSTFLAGS" \ + JEMALLOC_SYS_WITH_LG_PAGE="${JEMALLOC_SYS_WITH_LG_PAGE}" \ xx-cargo build --profile $PROFILE ${FEATURES:+--features} $FEATURES --features=stacktrace ${GPU:+--features=gpu} --bin qdrant \ && PROFILE_DIR=$(if [ "$PROFILE" = dev ]; then echo debug; else echo $PROFILE; fi) \ && mv target/$(xx-cargo --print-target-triple)/$PROFILE_DIR/qdrant /qdrant/qdrant
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
Dockerfile(2 hunks)docs/DEVELOPMENT.md(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: test-consensus-compose
- GitHub Check: integration-tests-consensus
- GitHub Check: test-consistency
- GitHub Check: integration-tests
- GitHub Check: test-shard-snapshot-api-s3-minio
- GitHub Check: e2e-tests
- GitHub Check: rust-tests (macos-latest)
- GitHub Check: rust-tests (windows-latest)
- GitHub Check: rust-tests (ubuntu-latest)
- GitHub Check: rust-tests-no-rocksdb (ubuntu-latest)
- GitHub Check: lint
It cannot handle empty `JEMALLOC_SYS_WITH_LG_PAGE` value. So we have to skip it completely if it is empty.
* Add ARG `TARGET_CPU` to Dockerfile * Add ARG `JEMALLOC_SYS_WITH_LG_PAGE` to Dockerfile It allows redefining jemalloc's page size for image targeting specific ARM machines. Refs #3831. * Document Docker build parameters
TARGET_CPUandJEMALLOC_SYS_WITH_LG_PAGE;docs/DEVELOPMENT.md.All Submissions:
devbranch. Did you create your branch fromdev?