Skip to content

kmod VM test: the runners' apt mirror, apt timeouts, a line per step - #220

Merged
compot-dev merged 1 commit into
masterfrom
kmod-apt-mirror
Nov 23, 2026
Merged

compot-dev merged 1 commit into
masterfrom
kmod-apt-mirror

Conversation

@compot-dev

Copy link
Copy Markdown
Collaborator

The Kernel module VM test job on master (1102755, run 45146272831) was cancelled at its 30-minute timeout twice in a row, both times with no output after docker pull ubuntu:24.04: tests/kmod/run-vm.sh sat in a silent apt-get. At the same time archive.ubuntu.com took 10 s for InRelease from here, while azure.archive.ubuntu.com and mirrors.edge.kernel.org took 0.2 s. So the release of 6.2.0 did not go out.

  • run-vm.sh: Acquire::http::Timeout "30" and Acquire::Retries "3", so a slow mirror fails in minutes; APT_MIRROR, when given, replaces archive.ubuntu.com and security.ubuntu.com in the Ubuntu container's sources; apt: update / apt: install lines, so the log shows where it is.
  • docker/test-kmod-vm.sh passes APT_MIRROR into the container; CI sets it to http://azure.archive.ubuntu.com/ubuntu, the runners' own mirror.

no-release: tests and CI only. Its merge also re-runs master's CI, which releases 6.2.0.

Local (Docker): APT_MIRROR=http://mirrors.edge.kernel.org/ubuntu CAMEX_BINARY=build/camex-x86_64 docker/test-kmod-vm.sh ubuntu:24.04 — VM TEST: PASS in 58 s.

…s and retries, a line before each apt step

archive.ubuntu.com answered slowly enough on 2026-11-23 that the job sat
silently in apt for its whole 30 minutes, twice, and master's release
of 6.2.0 did not go out.
@compot-dev compot-dev added the no-release Changes the build or the code without changing the binaries: no new version, no release label Nov 23, 2026
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Prevent mirror stalls in the kernel module VM test

🐞 Bug fix ⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Route CI's Ubuntu package downloads through the runners' Azure mirror to avoid stalled releases.
• Bound apt waits with timeouts and retries, and log the start of each package step.
• Allow local VM tests to select an Ubuntu mirror through APT_MIRROR.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 1658f32
Diagram

graph TD
  CI["VM test job"] --> Wrapper["Docker wrapper"] --> Script["Container test script"] --> Apt["APT setup"] --> Guest["QEMU guest test"]
  Mirror["Azure mirror"] --> Apt
Loading
High-Level Assessment

Keep mirror selection at the CI boundary and apt safeguards inside the container: this preserves the default local behavior while addressing the stalled package step. A fixed mirror in the test script would unnecessarily constrain local runs.

Files changed (3) +20 / -1

Bug fix (2) +17 / -1
test-kmod-vm.shPass the optional apt mirror into the test container +4/-1

Pass the optional apt mirror into the test container

• Documents APT_MIRROR and forwards its value when creating the Docker container. Unset values retain the image's configured package sources.

docker/test-kmod-vm.sh

run-vm.shBound apt waits and expose package-step progress +13/-0

Bound apt waits and expose package-step progress

• Configures a 30-second HTTP timeout and three retries, optionally replaces Ubuntu archive and security source URLs, and logs the start of apt update and install.

tests/kmod/run-vm.sh

Other (1) +3 / -0
build.ymlSelect the Azure Ubuntu mirror for the VM test +3/-0

Select the Azure Ubuntu mirror for the VM test

• Sets APT_MIRROR for the kernel module VM test job to the runners' Azure mirror, avoiding the default archive that previously stalled CI.

.github/workflows/build.yml

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@compot-dev
compot-dev merged commit 16c29dc into master Nov 23, 2026
18 of 19 checks passed
@compot-dev
compot-dev deleted the kmod-apt-mirror branch November 23, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Changes the build or the code without changing the binaries: no new version, no release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant