Skip to content

chore(rocm): align devcontainer Dockerfile with pyproject deps#253

Merged
demandal25 merged 2 commits into
ROCm:amd-integrationfrom
demandal25:devcontainer-dockerfile-deps
Jun 15, 2026
Merged

chore(rocm): align devcontainer Dockerfile with pyproject deps#253
demandal25 merged 2 commits into
ROCm:amd-integrationfrom
demandal25:devcontainer-dockerfile-deps

Conversation

@demandal25

Copy link
Copy Markdown
Collaborator

Summary

Bring the ROCm devcontainer Dockerfile in line with pyproject.toml so the
built image satisfies every requirement out of the box, and fix a latent torch
install hazard.

What changed

  • .devcontainer/rocm/Dockerfile
    • Add pytest-rerunfailures — required by the documented test command
      (pytest -n auto --reruns 2) and listed under [project.optional-dependencies].dev; it was the only outright missing dep.
    • Pin scikit-build-core>=0.4.3 and setuptools-scm>=9.2 to match the
      constraints in [build-system].requires.
    • Switch the torch install from -f to --index-url. Both CLAUDE.md and
      README.md warn that -f lets pip silently fall back to a CPU-only wheel
      from PyPI; --index-url pins the resolver to AMD's ROCm repo.
    • Uppercase FROM ... AS to silence BuildKit's FromAsCasing lint warning.

Test plan

  • docker build arg surface unchanged (ROCM_VERSION / PY_VERSION / TORCH_VERSION / AITER_VERSION)
  • pre-commit run -a (passed on commit)

Add pytest-rerunfailures (needed by the --reruns test command), pin
scikit-build-core>=0.4.3 and setuptools-scm>=9.2 to match [build-system],
switch torch install from -f to --index-url to prevent silently pulling a
CPU-only wheel from PyPI, and uppercase the FROM ... AS alias.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 15, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the ROCm devcontainer Dockerfile so its Python environment matches the repository’s declared dev/build dependencies and installs the ROCm PyTorch wheel in a safer way (avoiding accidental CPU-only wheels).

Changes:

  • Add pytest-rerunfailures to the devcontainer image to match pyproject.toml’s dev extras and the documented pytest command.
  • Align build tooling constraints by pinning scikit-build-core>=0.4.3 and setuptools-scm>=9.2 to match [build-system].requires.
  • Install torch using --index-url https://repo.radeon.com/... (instead of -f) and fix FROM ... AS casing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@demandal25 demandal25 merged commit 073f47b into ROCm:amd-integration Jun 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants