-
Notifications
You must be signed in to change notification settings - Fork 753
fix: copy workspace as part of ci-min stage #1291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe Dockerfiles for three different environments were updated to change when and where the source code is copied into the container during the build process. The Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
container/Dockerfile.tensorrt_llm (1)
303-304: Combine COPY layers to improve caching and reduce image layersYou can merge the Cargo cache and workspace copies into a single Docker layer to reduce build time and image size. For example:
-COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME -COPY . /workspace +COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME \ + . /workspaceAlso consider adding a
.dockerignoreto exclude unnecessary files from the build context.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
container/Dockerfile.sglang(1 hunks)container/Dockerfile.tensorrt_llm(1 hunks)container/Dockerfile.vllm(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Build and Test - vllm
🔇 Additional comments (2)
container/Dockerfile.sglang (1)
328-329: Source code now copied inci_minimumstageMoving
COPY . /workspaceinto theci_minimumstage ensures the source is available early and avoids redundant copies later in thedevstage. This aligns with the PR objective and maintains consistency across Dockerfiles.container/Dockerfile.vllm (1)
406-407: Relocated workspace copy toci_minimumstageThe
COPY . /workspacemoved to theci_minimumstage properly makes the full source available before building C bindings and removes duplication from thedevstage.
saturley-hall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a copy-paste error from PR 1177
Overview:
fix repo copy for ci min images, move up from dev image stage
Summary by CodeRabbit