Skip to content

Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability#408

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-cuda-devcontainer-failure
Draft

Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability#408
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-build-cuda-devcontainer-failure

Conversation

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown

The build-cuda-devcontainer CI job fails intermittently because the nvidia/cuda base image registers the NVIDIA CUDA apt repo, and when the common-utils devcontainer feature runs apt-get update, it hits that repo during a mirror sync — resulting in a hash mismatch error and exit code 100.

The CUDA toolkit is already bundled in the base image; the apt repo serves no purpose after the Dockerfile RUN steps complete.

Changes

  • .devcontainer/Dockerfile: Add a final RUN step that removes NVIDIA CUDA apt source lists and cleans the apt cache, so subsequent apt-get update calls by devcontainer features only hit stable Ubuntu mirrors:
# Remove NVIDIA CUDA apt sources to prevent devcontainer feature installation failures.
# CUDA is already provided by the base image; the apt repo is not needed and causes
# intermittent "mirror sync in progress" errors when devcontainer features run apt-get update.
RUN rm -f /etc/apt/sources.list.d/cuda*.list /etc/apt/sources.list.d/nvidia*.list \
    && apt-get clean

…erfile

The devcontainer build fails intermittently because the nvidia/cuda base image
adds a NVIDIA CUDA apt repository, and when the common-utils devcontainer feature
runs apt-get update, it hits the NVIDIA CUDA repo which can experience temporary
mirror sync issues (e.g., "File has unexpected size... Mirror sync in progress?").

Since CUDA is already provided by the base image and no additional CUDA packages
are installed via apt in the Dockerfile, removing the NVIDIA CUDA apt sources
prevents these intermittent failures without any loss of functionality.

Fixes job: https://github.com/psc-code/psc/actions/runs/26962348562/job/79555760599
Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-cuda-devcontainer Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability Jun 4, 2026
Copilot AI requested a review from germasch June 4, 2026 21:51
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