Skip to content

ci: drop third-party apt sources, add apt retries, and show failing TAP lines - #3481

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/ci-apt-thirdparty-and-tap-summary
Nov 29, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/ci-apt-thirdparty-and-tap-summary

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What

  1. Eliminate third-party apt flakes across 8 Ubuntu workflows (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):
  2. Surface failing TAP lines in tools/asahi/run-host-tests.py:
    • When a host-test suite fails (e.g. apple-dcp with 90+ cases), printing only the last 40 lines of the log hides early not ok lines behind trailing passing cases. Print up to 40 not ok lines 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.py with py_compile, and ran python3 -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

  • Hosted CI (host-tests, dt-checks, pr-text) on this PR head.

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>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners November 28, 2026 04:52

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (with runs-on for every job they touch) and the run-host-tests.py hunk.
  • What would break this: an image whose main Ubuntu source is not named ubuntu.sources would be left with no sources, and apt-get update would then fail loudly. That holds for the noble images. The kernel-release smoke job on ubuntu-26.04-arm is 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 example microsoft-prod.list).

@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) area:release Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 036aef80: not ready yet

Check Detail
CI at head ok 33 checks passed
Review no approved by satchlj, but GitHub does not count it yet (code owner from Core or Omarchy Mac needed, or approval went stale)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · CI workflows and host-test runner output only (no kernel code change; plain revert undoes it).

Areas: area:gpu, area:release

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review PASS at 036aef80fc.

Verified:

  • Dropping non-ubuntu.sources third-party apt source lists before apt-get update -o APT::Update::Error-Mode=any and adding Acquire::Retries=3 across the 8 Ubuntu workflows eliminates transient third-party 403/5xx CI flakes cleanly without weakening signature/error checks on Ubuntu archives.
  • Signed-off-by present.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 036aef80. App approved; test/CI/tools files only, so no hardware row applies. Merges 1 h from now under the 6-point rule once hosted CI is green, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 036aef80. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: test/CI/tools-only. (5) There's no blocking review. (6) Dj was pinged here 61 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 0e23c3d into main Nov 29, 2026
35 of 36 checks passed
@RyanTheTide
RyanTheTide deleted the fix/ci-apt-thirdparty-and-tap-summary branch November 29, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) area:release Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants