Skip to content

Conversation

@biswapanda
Copy link
Contributor

@biswapanda biswapanda commented Jul 28, 2025

Overview:

deprecate sdk as dependency based

Why?

Dynamo-UX v2 simplifies deploy and launch process by completely removing dynamo sdk based pythonic layer and commands.

What changed -

  • Remove deploy/sdk as this is not being used anymore.
  • moved service config into planner

Closes: DYN-720

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

Summary by CodeRabbit

  • Bug Fixes

    • Removed all Python SDK files, documentation, CLI commands, and related test suites from the deploy/sdk directory.
    • Updated Docker and build configurations to exclude the SDK and its binaries.
    • Cleaned up references to SDK components in environment variables, Python paths, and build contexts.
  • Chores

    • Deleted SDK documentation, example pipelines, and test scripts.
    • Updated .gitignore and build configuration files to remove SDK-specific entries.

@biswapanda biswapanda changed the title feat: rm sdk dependency refactor: rm sdk dependency Jul 28, 2025
@github-actions github-actions bot added the feat label Jul 28, 2025
@biswapanda biswapanda self-assigned this Jul 28, 2025
@github-actions github-actions bot added refactor and removed feat labels Jul 28, 2025
@biswapanda biswapanda changed the title refactor: rm sdk dependency feat: deprecate sdk as dependency Jul 28, 2025
@github-actions github-actions bot added feat and removed refactor labels Jul 28, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Walkthrough

This change removes the entire Dynamo SDK Python package, including all CLI tools, core abstractions, resource management, protocol interfaces, decorators, deployment logic, tests, and related documentation. It also updates build scripts, Dockerfiles, and configuration files to eliminate references to the deleted SDK, CLI, and associated binaries.

Changes

Cohort / File(s) Change Summary
SDK Core & CLI Removal
deploy/sdk/src/dynamo/sdk/__init__.py, deploy/sdk/src/dynamo/sdk/cli/*, deploy/sdk/src/dynamo/sdk/core/*, deploy/sdk/src/dynamo/sdk/lib/*, deploy/sdk/src/dynamo/sdk/tests/*, deploy/sdk/src/dynamo/sdk/README.md, deploy/sdk/src/dynamo/sdk/docs/*
Deletes all SDK source files, CLI commands, protocol interfaces, core abstractions, resource management, decorators, loader utilities, exceptions, configuration logic, and all tests and documentation.
Build and Packaging Adjustments
.devcontainer/post-create.sh, Earthfile, .gitignore, pyproject.toml
Removes creation and symlinking of the dynamo-run binary, eliminates SDK source from build/package lists, and updates ignore rules.
Docker and Container Cleanup
container/Dockerfile.sglang, container/Dockerfile.sglang-wideep, container/Dockerfile.tensorrt_llm, container/Dockerfile.vllm
Removes references to SDK directories, binaries, and PYTHONPATH entries related to the deleted SDK and CLI in all relevant Dockerfiles.
Documentation and Example Cleanup
deploy/CONTRIBUTING.md, deploy/sdk/README.md, deploy/sdk/docs/cli/README.md, deploy/sdk/docs/sdk/README.md
Removes SDK-related documentation, quickstart guides, and testing instructions.
Test and Example Pipeline Removal
deploy/sdk/src/dynamo/sdk/tests/pipeline.py, deploy/sdk/src/dynamo/sdk/tests/config.yaml, deploy/sdk/src/dynamo/sdk/tests/test_*, deploy/sdk/tests/test_deployment.sh
Deletes all example pipelines, test configurations, and test scripts related to the SDK.

Sequence Diagram(s)

No sequence diagrams generated as the changes are purely deletions and configuration cleanups.

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~90+ minutes

Possibly related PRs

  • ai-dynamo/dynamo#1778: Removes the deploy/sdk/src/dynamo/sdk/cli/build.py file and unregisters the build command from the CLI, directly related to this PR's removal of build-related CLI code.
  • ai-dynamo/dynamo#924: Adds abstract service interfaces and endpoint abstractions to the SDK, which are now being removed in this PR.
  • ai-dynamo/dynamo#1920: Removes subprocess management and embedded Python subprocess code for engines from dynamo-run, closely related to this PR's removal of the embedded dynamo-run executable and CLI integration.

Poem

The SDK has hopped away,
No more CLI to run or play.
Dockerfiles swept, docs set free,
Pipelines gone, as clean as can be.
A rabbit waves—ears held high—
"On to new meadows, we say goodbye!"
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
.gitignore (1)

87-92: Deduplicate .build/ ignore rule

.build/ already appears at line 87; the re-addition at line 92 is redundant noise in version control rules.

-.build/
container/Dockerfile.vllm (1)

288-292: Avoid self-appending $PYTHONPATH twice

The new line expands to
ENV PYTHONPATH=:…:, inserting the current value twice when the variable is already empty at image-build time.
A simpler, idempotent form keeps the intent while avoiding duplicate separators.

-ENV PYTHONPATH=$PYTHONPATH:$HOME/dynamo/components/planner/src:$PYTHONPATH
+ENV PYTHONPATH=$HOME/dynamo/components/planner/src:$PYTHONPATH
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0cb01b3 and c287a03.

📒 Files selected for processing (50)
  • .devcontainer/post-create.sh (0 hunks)
  • .gitignore (1 hunks)
  • Earthfile (0 hunks)
  • container/Dockerfile.sglang (2 hunks)
  • container/Dockerfile.sglang-wideep (0 hunks)
  • container/Dockerfile.tensorrt_llm (0 hunks)
  • container/Dockerfile.vllm (1 hunks)
  • deploy/CONTRIBUTING.md (0 hunks)
  • deploy/sdk/README.md (0 hunks)
  • deploy/sdk/docs/cli/README.md (0 hunks)
  • deploy/sdk/docs/sdk/README.md (0 hunks)
  • deploy/sdk/src/dynamo/sdk/__init__.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/Dockerfile.template (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/allocator.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/circus.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/cli.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/env.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/run.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/run_executable.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/serve.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/serve_dynamo.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/serving.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/cli/utils.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/__init__.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/decorators/endpoint.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/lib.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/protocol/__init__.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/protocol/deployment.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/protocol/interface.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/runner/__init__.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/runner/common.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/runner/dynamo.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/core/runner/health.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/__init__.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/config.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/decorators.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/exceptions.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/image.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/loader.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/resource.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/lib/utils.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/config.yaml (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/pipeline.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/test_config.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/test_e2e_args.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/test_e2e_config.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/test_link.py (0 hunks)
  • deploy/sdk/src/dynamo/sdk/tests/test_resources.py (0 hunks)
  • deploy/sdk/tests/test_deployment.sh (0 hunks)
  • pyproject.toml (0 hunks)
💤 Files with no reviewable changes (47)
  • deploy/CONTRIBUTING.md
  • deploy/sdk/src/dynamo/sdk/core/init.py
  • deploy/sdk/docs/sdk/README.md
  • deploy/sdk/docs/cli/README.md
  • pyproject.toml
  • container/Dockerfile.sglang-wideep
  • deploy/sdk/src/dynamo/sdk/core/protocol/init.py
  • container/Dockerfile.tensorrt_llm
  • deploy/sdk/src/dynamo/sdk/lib/image.py
  • deploy/sdk/src/dynamo/sdk/lib/init.py
  • deploy/sdk/README.md
  • deploy/sdk/src/dynamo/sdk/cli/Dockerfile.template
  • deploy/sdk/src/dynamo/sdk/cli/run.py
  • deploy/sdk/src/dynamo/sdk/tests/test_resources.py
  • deploy/sdk/src/dynamo/sdk/tests/test_link.py
  • deploy/sdk/src/dynamo/sdk/tests/test_e2e_args.py
  • deploy/sdk/src/dynamo/sdk/cli/cli.py
  • deploy/sdk/src/dynamo/sdk/lib/exceptions.py
  • deploy/sdk/src/dynamo/sdk/cli/run_executable.py
  • deploy/sdk/src/dynamo/sdk/lib/decorators.py
  • deploy/sdk/src/dynamo/sdk/tests/test_e2e_config.py
  • deploy/sdk/src/dynamo/sdk/cli/allocator.py
  • deploy/sdk/src/dynamo/sdk/core/protocol/deployment.py
  • deploy/sdk/src/dynamo/sdk/cli/env.py
  • deploy/sdk/src/dynamo/sdk/core/decorators/endpoint.py
  • deploy/sdk/src/dynamo/sdk/core/runner/health.py
  • deploy/sdk/src/dynamo/sdk/tests/pipeline.py
  • deploy/sdk/src/dynamo/sdk/tests/config.yaml
  • deploy/sdk/src/dynamo/sdk/cli/serving.py
  • .devcontainer/post-create.sh
  • deploy/sdk/src/dynamo/sdk/lib/loader.py
  • deploy/sdk/src/dynamo/sdk/core/runner/init.py
  • deploy/sdk/tests/test_deployment.sh
  • deploy/sdk/src/dynamo/sdk/cli/circus.py
  • Earthfile
  • deploy/sdk/src/dynamo/sdk/cli/serve_dynamo.py
  • deploy/sdk/src/dynamo/sdk/lib/utils.py
  • deploy/sdk/src/dynamo/sdk/core/runner/common.py
  • deploy/sdk/src/dynamo/sdk/cli/utils.py
  • deploy/sdk/src/dynamo/sdk/core/protocol/interface.py
  • deploy/sdk/src/dynamo/sdk/lib/config.py
  • deploy/sdk/src/dynamo/sdk/cli/serve.py
  • deploy/sdk/src/dynamo/sdk/tests/test_config.py
  • deploy/sdk/src/dynamo/sdk/init.py
  • deploy/sdk/src/dynamo/sdk/lib/resource.py
  • deploy/sdk/src/dynamo/sdk/core/runner/dynamo.py
  • deploy/sdk/src/dynamo/sdk/core/lib.py
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: biswapanda
PR: ai-dynamo/dynamo#1412
File: lib/bindings/python/src/dynamo/runtime/logging.py:100-100
Timestamp: 2025-06-06T21:48:35.214Z
Learning: In the Dynamo codebase, BentoML has been completely removed from all executable code, with only documentation and attribution references remaining. The error_loggers configuration in lib/bindings/python/src/dynamo/runtime/logging.py should not include "bentoml" since those modules no longer exist.
container/Dockerfile.vllm (1)

Learnt from: grahamking
PR: #1177
File: container/Dockerfile.vllm:102-105
Timestamp: 2025-05-28T22:54:46.875Z
Learning: In Dockerfiles, when appending to environment variables that may not exist in the base image, Docker validation will fail if you reference undefined variables with ${VARIABLE} syntax. In such cases, setting the environment variable directly (e.g., ENV CPATH=/usr/include) rather than appending is the appropriate approach.

container/Dockerfile.sglang (2)

Learnt from: nnshah1
PR: #1444
File: tests/fault_tolerance/scenarios.py:57-57
Timestamp: 2025-07-01T15:39:56.789Z
Learning: The fault tolerance tests in tests/fault_tolerance/ are designed to run only in the mounted container environment, so hardcoded absolute paths with /workspace/ prefix are intentional and should not be changed to relative paths.

Learnt from: julienmancuso
PR: #1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level PodSecurityContext with runAsUser, runAsGroup, and fsGroup all set to 1000, and then selectively override the user at the individual container level (e.g., RunAsUser: 0 for Kaniko) when root is required.

⏰ 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). (1)
  • GitHub Check: Build and Test - vllm

@biswapanda biswapanda enabled auto-merge (squash) July 28, 2025 21:08
@biswapanda biswapanda disabled auto-merge July 28, 2025 21:08
@copy-pr-bot
Copy link

copy-pr-bot bot commented Jul 28, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@biswapanda biswapanda enabled auto-merge (squash) July 28, 2025 22:07
Copy link
Contributor

@hhzhang16 hhzhang16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with respect to planner work

@alec-flowers
Copy link
Contributor

Awesome!

@biswapanda biswapanda merged commit 4747790 into main Jul 29, 2025
13 of 14 checks passed
@biswapanda biswapanda deleted the bis/rm-sdk branch July 29, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants