warp icon indicating copy to clipboard operation
warp copied to clipboard

Add a devcontainer for Warp repository development

Open thomasbrugman opened this issue 7 months ago • 1 comments

Pre-submit Checks

Describe the solution you'd like?

Add a .devcontainer setup to this repository so public OSS contributors can open the Warp codebase in a reproducible, fully provisioned Linux development environment.

The initial devcontainer should focus on source-build and non-GUI development workflows, not on launching the Warp GUI from inside the container. It should include:

  • .devcontainer/devcontainer.json configured for VS Code Dev Containers.
  • A dedicated .devcontainer/Dockerfile, preferably based on Ubuntu LTS.
  • The pinned Rust toolchain from rust-toolchain.toml (1.92.0 with rustfmt and clippy).
  • Linux build/test dependencies currently captured by the Linux bootstrap scripts and docker/agent-dev/Dockerfile.
  • Cargo tooling used by the repo, including cargo-binstall, cargo-nextest, wgslfmt, diesel_cli, and likely cargo-watch because the repo's VS Code tasks reference it.
  • Node and Corepack for the Yarn-based subprojects.
  • Go and related repo tooling for parity with the existing docker/agent-dev/Dockerfile.
  • Common public CLIs such as gh, gcloud, Claude Code, Codex, and Gemini CLI, without bundling credentials or requiring private/internal auth.
  • A non-root devcontainer user with passwordless sudo.
  • Cache-friendly mounts for Cargo and build outputs.
  • VS Code extension recommendations matching the repo's .vscode/extensions.json.
  • A short .devcontainer/README.md explaining usage, first-build cost, validation commands, and the explicit no-GUI/display-forwarding scope.

The implementation should avoid running ./script/bootstrap automatically because it can install packages and prompt for auth. Dependencies should be installed noninteractively in the image instead.

This is distinct from broader product requests for Warp itself to support arbitrary DevContainer sessions, such as #4460, and from packaging Warp as a devcontainer feature, such as #6164. This request is specifically about making warpdotdev/warp easier to build and test from a reproducible contributor environment.

Is your feature request related to a problem? Please describe.

Building Warp from source requires a large set of Rust, Linux native, cargo, Node, Go, and test dependencies. New contributors currently need to run platform bootstrap scripts and reconcile local system differences before they can build, test, or use the repo's VS Code tasks.

The repository already has useful pieces of this setup in docker/agent-dev/Dockerfile, docker/linux-dev/Dockerfile, Linux bootstrap scripts, and .vscode/ settings, but there is no standard .devcontainer/ entry point. That makes the contributor path less reproducible than it could be, especially for users who already work in VS Code Dev Containers or Codespaces-style environments.

Additional context

A concrete implementation plan exists in the repo-local planning notes at .kilo/plans/1777466337444-jolly-squid.md from the initial exploration.

Important scope decisions from that plan:

  • Audience: public OSS contributors by default.
  • Image/tooling: fully loaded rather than minimal.
  • GUI scope: no first-version GUI app execution or display forwarding support.
  • Credentials: install public CLIs but do not authenticate gh, gcloud, or any private/internal tooling automatically.

Suggested validation:

  • Build the devcontainer image locally.
  • Confirm rustc --version uses the pinned Rust toolchain.
  • Confirm cargo nextest, wgslfmt, Node/Corepack/Yarn, Go tooling, gh, gcloud, and coding-agent CLIs are available.
  • Run cargo fmt --check.
  • Run cargo check --workspace --exclude command-signatures-v2 or a narrower smoke check if full workspace validation is too slow.
  • Do not require GUI launch or display-forwarded integration tests for the first version.

Operating system (OS)

Linux

How important is this feature to you?

10

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

Ignore

thomasbrugman avatar Apr 29 '26 12:04 thomasbrugman

@Githubguy132010

Here's what I found while triaging this issue:

This looks like a repository contributor-environment enhancement rather than a Warp DevContainer product integration. It appears distinct from #4460 and #6164 because it targets building and testing this repository, not running Warp inside arbitrary DevContainers or packaging Warp as a devcontainer feature.

Maintainer details

I concluded that feature request asks for a first-party VS Code devcontainer so public contributors can build and test the Warp repository in a reproducible Linux environment..

Triage summary

This is a well-scoped enhancement request for a first-party VS Code Dev Container focused on source-build and non-GUI development workflows for public contributors.

Evidence from the current repository

  • The repository currently has no .devcontainer/ entry point.
  • The pinned Rust toolchain is declared in rust-toolchain.toml with Rust 1.92.0, rustfmt, and clippy.
  • Existing Linux setup knowledge is split across docker/agent-dev/Dockerfile, docker/linux-dev/Dockerfile, script/linux/install_build_deps, script/linux/install_test_deps, and the cargo install helper scripts.
  • VS Code extension recommendations and tasks already exist in .vscode/extensions.json and .vscode/tasks.json; the tasks include cargo watch, which supports including cargo-watch in the requested image.
  • The referenced repo-local planning note at .kilo/plans/1777466337444-jolly-squid.md was not present in this checkout, so this triage does not rely on that file.

Duplicate check

I did not find a likely duplicate among the provided recent/open issue candidates. I also checked the related DevContainer issues called out in the report: #4460 is about Warp supporting arbitrary DevContainer sessions as a product feature, and #6164 is about packaging Warp as a devcontainer feature. This issue is narrower and targets this repository's contributor development environment.

Reproducibility

High. The absence of a .devcontainer/ setup is directly verifiable, and the report provides concrete desired scope, constraints, and validation commands.

Likely implementation surface

The likely change would add .devcontainer/devcontainer.json, .devcontainer/Dockerfile, and .devcontainer/README.md, using the existing Linux Dockerfiles, bootstrap dependency scripts, Rust toolchain file, and VS Code metadata as source material. The implementation should avoid automatically running ./script/bootstrap and should not attempt first-version GUI/display-forwarding support.

Follow-up

No reporter follow-up appears necessary for initial triage; remaining decisions are maintainer implementation choices such as exact image size/tooling defaults and validation budget.

This is my automated analysis and may be incorrect. A maintainer will verify the details.

Powered by Oz

warp-for-oss[bot] avatar Apr 29 '26 12:04 warp-for-oss[bot]