Skip to content

Commit 4efdb46

Browse files
committed
ci: remove the unused apt sources by content, not by filename
The first attempt named `google-chrome.list`, and `apt-get update` failed on the same URL: on ubuntu-24.04 the runner writes deb822 `.sources` files, so the filename was a guess and the guess was wrong. Selected by what the file CONTAINS now. That is the same correction `libs/hostlib.lua` records for library directories: a layout you assume is a layout you are wrong about on some machine.
1 parent 7d2f77b commit 4efdb46

4 files changed

Lines changed: 31 additions & 8 deletions

File tree

.agents/docs/2026-09-09-dlopen-surface-and-two-unwinders.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ else moves when they land".
662662
| | a non-hermetic binding, or `allow_host_libs` | silent, for the reason the artifact verdict is |
663663
| R6 (one unwinder) | a libc++ link line naming libstdc++ | `--unwindlib=libgcc` and hidden archives |
664664
| | every other link | byte-for-byte unchanged, asserted in `test_distribution.cpp` |
665+
| R7 (`compat:opencl` declared) | every SYCL project | the OpenCL back end loads; one shared library and one symlink farm added to the graph |
666+
| | the two defects in §8.5 | latent before, active from the moment a shared library entered a SYCL plan |
667+
| `compat.opencl` on Windows | a Windows OpenCL consumer | a loader to link, where there was none; no adapter, because the system loader needs no help |
665668

666669
The one regression this could cause is in §7's last item: an executable that
667670
deliberately re-exports the C++ standard library to a plugin it `dlopen`s. It

.github/workflows/cross-build-test.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,13 @@ jobs:
105105
# killed two cross-build jobs in setup, before a single byte was
106106
# compiled. Dropping the lists this job has no use for is what makes
107107
# the step's failure mean something about this job.
108-
sudo rm -f /etc/apt/sources.list.d/google-chrome.list \
109-
/etc/apt/sources.list.d/microsoft-prod.list || true
108+
#
109+
# BY CONTENT, NOT BY FILENAME. The first attempt removed
110+
# `google-chrome.list` and the update failed on the same URL: on
111+
# ubuntu-24.04 the runner writes deb822 `.sources` files, so the
112+
# name was a guess and the guess was wrong.
113+
sudo grep -rlE 'dl[.]google[.]com|packages[.]microsoft[.]com' \
114+
/etc/apt/sources.list.d/ 2>/dev/null | xargs -r sudo rm -f
110115
sudo apt-get update -qq
111116
sudo apt-get install -y qemu-user-static
112117
${{ matrix.qemu_bin }} --version | head -1
@@ -265,8 +270,13 @@ jobs:
265270
# killed two cross-build jobs in setup, before a single byte was
266271
# compiled. Dropping the lists this job has no use for is what makes
267272
# the step's failure mean something about this job.
268-
sudo rm -f /etc/apt/sources.list.d/google-chrome.list \
269-
/etc/apt/sources.list.d/microsoft-prod.list || true
273+
#
274+
# BY CONTENT, NOT BY FILENAME. The first attempt removed
275+
# `google-chrome.list` and the update failed on the same URL: on
276+
# ubuntu-24.04 the runner writes deb822 `.sources` files, so the
277+
# name was a guess and the guess was wrong.
278+
sudo grep -rlE 'dl[.]google[.]com|packages[.]microsoft[.]com' \
279+
/etc/apt/sources.list.d/ 2>/dev/null | xargs -r sudo rm -f
270280
sudo apt-get update -qq
271281
sudo apt-get install -y --download-only wine64 wine \
272282
|| sudo apt-get install -y --download-only wine

.github/workflows/openkal-cross.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,13 @@ jobs:
374374
# killed two cross-build jobs in setup, before a single byte was
375375
# compiled. Dropping the lists this job has no use for is what makes
376376
# the step's failure mean something about this job.
377-
sudo rm -f /etc/apt/sources.list.d/google-chrome.list \
378-
/etc/apt/sources.list.d/microsoft-prod.list || true
377+
#
378+
# BY CONTENT, NOT BY FILENAME. The first attempt removed
379+
# `google-chrome.list` and the update failed on the same URL: on
380+
# ubuntu-24.04 the runner writes deb822 `.sources` files, so the
381+
# name was a guess and the guess was wrong.
382+
sudo grep -rlE 'dl[.]google[.]com|packages[.]microsoft[.]com' \
383+
/etc/apt/sources.list.d/ 2>/dev/null | xargs -r sudo rm -f
379384
sudo apt-get update -qq && sudo apt-get install -y -qq qemu-user
380385
"$XLINGS_BIN" install xim:qemu-riscv -y
381386
XLINGS_HOME="${MCPP_HOME:-$HOME/.mcpp}/registry" \

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,13 @@ jobs:
281281
# killed two cross-build jobs in setup, before a single byte was
282282
# compiled. Dropping the lists this job has no use for is what makes
283283
# the step's failure mean something about this job.
284-
sudo rm -f /etc/apt/sources.list.d/google-chrome.list \
285-
/etc/apt/sources.list.d/microsoft-prod.list || true
284+
#
285+
# BY CONTENT, NOT BY FILENAME. The first attempt removed
286+
# `google-chrome.list` and the update failed on the same URL: on
287+
# ubuntu-24.04 the runner writes deb822 `.sources` files, so the
288+
# name was a guess and the guess was wrong.
289+
sudo grep -rlE 'dl[.]google[.]com|packages[.]microsoft[.]com' \
290+
/etc/apt/sources.list.d/ 2>/dev/null | xargs -r sudo rm -f
286291
sudo apt-get update -qq
287292
sudo apt-get install -y curl git build-essential qemu-user-static
288293
qemu-aarch64-static --version | head -1

0 commit comments

Comments
 (0)