Repository navigation
ci: drop third-party apt sources, add apt retries, and show failing TAP lines - #3481
Conversation
Hosted Ubuntu 24.04 runners pre-install third-party apt sources such as packages.microsoft.com under /etc/apt/sources.list.d/. Workflows that pass -o APT::Update::Error-Mode=any abort with exit code 100 whenever one of those unused repositories returns a transient 403/5xx (observed on PR #3270 and PR #2603). Drop non-ubuntu.sources files from /etc/apt/sources.list.d/ before apt-get update and pass -o Acquire::Retries=3 to apt-get update/install across the Ubuntu runner workflows. All packages installed by these workflows come from the standard signed Ubuntu archives. Also update tools/asahi/run-host-tests.py so failed suites print any 'not ok ' TAP lines before the 40-line log tail; previously a failure early in a long suite like apple-dcp scrolled off the tail and could not be identified without downloading the artifact zip. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 036aef80 once its CI is green, including the kernel-release build and smoke jobs on the arm runners
Blockers: none.
Checked: Every touched job runs on a GitHub-hosted, throwaway runner (ubuntu-24.04, ubuntu-latest, ubuntu-24.04-arm, ubuntu-26.04-arm). None is self-hosted, so deleting /etc/apt/sources.list.d/* except ubuntu.sources changes nothing that outlives the job. APT::Update::Error-Mode=any is kept, so a real archive failure still fails the job. Acquire::Retries=3 only adds retries. The dwc3-atc-compile job gains the same mirror and source handling as the others, and it runs on ubuntu-24.04 (x86), so pointing apt-mirrors.txt at archive.ubuntu.com is right there. The run-host-tests.py change only prints the first 40 not ok TAP lines before the log tail it already printed. No kernel code changes. No attribution.
Notes
- Read at
036aef80: all 8 workflow diffs (withruns-onfor every job they touch) and therun-host-tests.pyhunk. - What would break this: an image whose main Ubuntu source is not named
ubuntu.sourceswould be left with no sources, andapt-get updatewould then fail loudly. That holds for the noble images. Thekernel-releasesmoke job onubuntu-26.04-armis the one to watch in this PR's CI. If it ever moves to a differently named source file, keep the deletion to known third-party files (for examplemicrosoft-prod.list).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Code review PASS at 036aef80fc.
Verified:
- Dropping non-
ubuntu.sourcesthird-party apt source lists beforeapt-get update -o APT::Update::Error-Mode=anyand addingAcquire::Retries=3across the 8 Ubuntu workflows eliminates transient third-party 403/5xx CI flakes cleanly without weakening signature/error checks on Ubuntu archives. Signed-off-bypresent.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What
apple-build-kunit.yml,apple-drm-kunit.yml,dt-checks.yml,host-tests.yml,kernel-release.yml,mt7932-kunit.yml,pmgr-pwrstate-kunit.yml,sep-source.yml):ubuntu-24.04runners ship pre-configured third-party apt sources (e.g.packages.microsoft.com) under/etc/apt/sources.list.d/. Because our workflows pass-o APT::Update::Error-Mode=any, any transient 403/5xx from an unused third-party repo abortsapt-get updatewith exit code 100 (seen on PR iommu/apple-dart: revert the stream-window intersection that crashes the J613 display #3270 and PR J704 (MacBook Pro 14" M5): HDMI port #2603).ubuntu.sourcesfiles from/etc/apt/sources.list.d/beforeapt-get update(keeping the official signed Ubuntu archive/security suites) and pass-o Acquire::Retries=3toapt-get updateandapt-get install.tools/asahi/run-host-tests.py:apple-dcpwith 90+ cases), printing only the last 40 lines of the log hides earlynot oklines behind trailing passing cases. Print up to 40not oklines before the tail so failures are immediately visible in the CI job log.Tested
Tested: no runtime change. Validated all 8 modified workflow YAML files with PyYAML, compiled
tools/asahi/run-host-tests.pywithpy_compile, and ranpython3 -I tools/asahi/run-host-tests.py --only dcpext26-edid --jobs 2(1/1 passed).Risk
Risk: two-way · CI workflows and host-test runner output only (no kernel code change; plain revert undoes it).
Not yet
host-tests,dt-checks,pr-text) on this PR head.