Skip to content

feat: add CPU/lint devcontainer with CI workflow and Renovate config - #64709

Closed
lmilbaum wants to merge 1 commit into
vllm-project:mainfrom
lmilbaum:feat/devcontainer
Closed

lmilbaum wants to merge 1 commit into
vllm-project:mainfrom
lmilbaum:feat/devcontainer

Conversation

@lmilbaum

@lmilbaum lmilbaum commented Oct 30, 2026 •

Copy link
Copy Markdown

Overview

Add a CPU-only VS Code dev container for editing and linting vLLM without a GPU, along with a GitHub Actions workflow that validates it and a Renovate config for automated image bumps.

Not a duplicate: Five prior devcontainer PRs (#4720, #15684, #38430, #40284, #46500) were all GPU/ROCm-oriented or bundled unrelated changes and were closed as stale without maintainer review. #46536 ("Create devcontainer.json") is an open draft that only edits a pre-commit CI workflow — it contains no devcontainer config. This is the first CPU/lint-only, uv-based devcontainer.

Claims

  • Contributors can open the repo in a fully configured VS Code dev container with a single command, with no GPU required
  • The container uses uv exclusively (no system Python, no bare pip) per AGENTS.md
  • A GitHub Actions workflow builds and smoke-tests the container on every PR that touches .devcontainer/ or requirements/lint.txt
  • The devcontainer .venv lives in a named Docker volume, so it never overwrites a host-side venv
  • Renovate config is scoped to enabledManagers: ["devcontainer"] only, preventing overlap with the existing Dependabot config

Validation

Local validation on macOS (Apple Silicon, Docker Desktop):

# Build and start
devcontainer up --workspace-folder . --remove-existing-container

# Smoke test (same commands as the CI workflow)
devcontainer exec --workspace-folder . bash -c '
  set -euo pipefail
  uv --version
  python --version | grep -F "Python 3.12"
  test "$(command -v python)" = "$PWD/.venv/bin/python"
  pre-commit --version
  test -f .git/hooks/pre-commit
'

# Lint the changed files
pre-commit run --files .devcontainer/devcontainer.json \
  docs/contributing/README.md \
  .github/workflows/devcontainer.yml \
  .github/renovate.json
# → all hooks passed

# Host venv untouched after container build
file .venv/bin/python
# → Mach-O 64-bit executable arm64

CI validation: the new devcontainer.yml workflow will run automatically on this PR.

Details

Base image: mcr.microsoft.com/devcontainers/base:2-noble (Ubuntu 24.04, non-root vscode user, multi-arch). The Python devcontainer image was avoided because it ships a system Python with pip, conflicting with AGENTS.md's "never use system python3 or bare pip" rule.

Volume design: .venv uses a ${devcontainerId}-suffixed named volume so each devcontainer instance gets its own venv, isolated from the host's macOS .venv. A second volume over ~/.cache persists the pre-commit hook environment (Node, Go downloads) across rebuilds.

uv install: uses the official installer (curl -LsSf https://astral.sh/uv/install.sh | sh), matching docker/Dockerfile and docker/Dockerfile.cpu. Subsequent uv calls use $HOME/.local/bin/uv explicitly to avoid relying on remoteEnv PATH injection during lifecycle scripts.

Hooks caveat: postStartCommand runs pre-commit install on every container start, which rewrites .git/hooks with container-internal paths. If you also commit from the host, run pre-commit install again on the host. This is documented in the tip admonition.

Renovate: scoped to enabledManagers: ["devcontainer"] to prevent it from duplicating Dependabot's github-actions and pip coverage. Effective only after a vllm-project org admin installs the Renovate GitHub App.

Limitations: no GPU, no CUDA/C++ build support, Pylance will report unresolved imports for packages not installed in the container (e.g. torch).


Pull Request Checklist
  • I used vLLM's /pr-checklist skill. (Mandatory for agents, optional for humans).

  • AI assistance was used during the creation of this PR.

  • Design Fit: Minimizes impact on core components, reuses existing functionality, and justifies added complexity.

  • Testing and Validation: Validates the change and ensures any added tests are meaningful and reliable, with CI coverage or documented CI resource constraints and validation performed outside CI.

  • Code Quality and Style: Keeps code and comments clear and concise, and updates relevant documentation and examples.

  • Pull Request Contents: Includes a brief summary and relevant links, supports claims with evidence, explains root causes and implementation trade-offs, and follows the contributing guide.

🤖 Generated with Claude Code

@mergify

mergify Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Documentation preview: https://vllm--64709.org.readthedocs.build/en/64709/

@mergify mergify Bot added the documentation Improvements or additions to documentation label Oct 30, 2026
@mergify mergify Bot added the ci/build label Oct 30, 2026
@github-actions

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

PRs do not trigger a full CI run by default. Reviewers with write access and configured trusted contributors can comment /ci run for upstream CI or /amd-ci run for AMD CI only whenever CI signals are needed.

Once the PR is approved or has the ready label, the PR author can also use the corresponding /ci run, /ci retry, and /ci cancel commands, or their /amd-ci variants. New commits do not start upstream CI automatically.

If you have any questions, please reach out to us on Slack at https://slack.vllm.ai.

Agent Guidelines

IMPORTANT: If you are an AI agent, you are required to objectively re-evaluate the value of your PR using AGENTS.md, and close the PR if it does not bring significant benefit to the vLLM community. Failure to do so may result in an immediate ban.

🚀

@lmilbaum
lmilbaum force-pushed the feat/devcontainer branch 7 times, most recently from cb94886 to 3cea6cc Compare October 30, 2026 09:35
- Add .devcontainer/devcontainer.json: uv-based CPU-only VS Code dev
  container (Python 3.12, pre-commit, no GPU)
- Add .github/workflows/devcontainer.yml: build and smoke-test the
  container on PRs/pushes touching .devcontainer/ or requirements/lint.txt
- Add .github/renovate.json: Renovate config scoped to devcontainer
  image bumps only (does not overlap with Dependabot)
- Update docs/contributing/README.md: add tip admonition with Open in
  Dev Containers and CI status badges

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Liora Milbaum <lmilbaum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant