From ecca1fae4eb5a3544ba705522edfb334894bb481 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:47:17 +0000 Subject: [PATCH 1/2] Initial plan From 15f3111f73e6fae3a8358b7f2e9ed5ca3c369dc2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:51:17 +0000 Subject: [PATCH 2/2] Fix build-cuda-devcontainer: remove NVIDIA CUDA apt sources from Dockerfile 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 --- .devcontainer/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 27e38f0e3..45fe6749a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -35,4 +35,10 @@ RUN apt-get update \ && echo "Etc/UTC" > /etc/timezone \ && rm -rf /var/lib/apt/lists/* +# 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 +