Repository navigation
Conversation
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist and GitHub Actions security/correctness review at 2b305b3025e1f6fdf558786f7e10eddfafdba9e9.
What looks good
- GitHub Actions security: Uses
pull_request(notpull_request_target), least-privilegepermissions: contents: read,concurrencywithcancel-in-progress: true, explicittimeout-minutes(120/60),max-parallel: 4,fail-fast: false, no untrusted${{ github.event.* }}interpolation intorun:commands, andactions/checkout@v4matching the other workflows in this repo.RUST_VERSION: '1.96.0'matcheshost-tests.yml,LIBCLANG_PATH: /usr/lib/llvm-18/libmatchessep-source.yml, andtools/aurora-bindgen/build.pyverifies source/patch/Cargo.lockSHA-256 digests. - New
.kunitconfigfiles: Bothdrivers/mfd/macsmc.kunitconfigandsecurity/keys/trusted-keys/tests/.kunitconfigare well-formed and exercised real suites in the fork run (macsmc: 34 tests, 33 passed;trusted-keys: 9 tests, 8 passed, 1 expected built-in skiptrusted_source_after_mark_readonly). - §1–§4, §6: Pass (no model gating, no runtime hacks, clean human commit identity and
Signed-off-bywithAssisted-by:in PR body, naming clean).
Blockers
-
Upstream CI has not run/passed on
aurora-silicon/linux#2995:- Both
Apple build and KUnit(45207739249) andHost tests(45207739460) are inaction_required(fork PR pending maintainer workflow approval;statusCheckRollupis empty). - While fork run
Alyx-ML/linux#45197403929passed all 18 jobs on409ae02ff724(whose only diff from2b305b3025e1is dropping'ci/**'fromon.push.branches),Host testshas not run at all for this head, andintegration/aurorahas advanced by 4 commits since base160ca431b325including#2974(drivers/media/platform/apple/ave/Kconfig,Makefile, and AVE KUnit tests). Maintainer-approved upstream CI needs to pass on the PR before merge.
- Both
-
Unfiltered
on.pushonintegration/auroraspawns 18 runners on every commit:.github/workflows/apple-build-kunit.yml:43-44triggerspush: branches: [integration/aurora]with nopaths:filter, unlikeon.pull_requestabove it and unlikedt-checks.yml(which mirrors itspaths:filter ontopush:).- Every unrelated merge to
integration/aurora(docs, DTS, non-Apple subsystems) will launch all 18 jobs (~100 runner-minutes / ~34.5 min wall-clock per push), andcancel-in-progress: trueongithub.refwill churn runners on back-to-back merges. Mirror thepaths:filter ontopush:(or droppush:if PR +workflow_dispatchis sufficient).
-
Duplicate KUnit matrix entries running the exact same suites twice:
ane-boot(drivers/accel/ane/boot.kunitconfig) andane-transport(drivers/accel/ane/transport.kunitconfig) both enableCONFIG_DRM_ACCEL_ANE_FW_KUNIT_TEST=yand executed the exact same 256 tests across the same 13 suites in the fork run (~15m13s combined), differing only inUBSAN_SHIFTvs.KASAN_INLINE.avd(drivers/media/platform/apple/avd/tests/.kunitconfig) andavd-pm(drivers/media/platform/apple/avd/avd-pm.kunitconfig) both enableCONFIG_VIDEO_APPLE_AVD_KUNIT_TEST=yand executed the exact same 81 tests (apple-avd-{variant,h264,queue,pm,hevc,job,vp9});CONFIG_PM_SLEEPis not referenced by any C source underdrivers/media/platform/apple/avd/.- Deduplicate these (or explain in the workflow comment if two distinct sanitizer/PM configs are deliberately required).
Non-blocking notes
make LLVM=1 ARCH=arm64 <dir>/compiles both=yand=m.oobjects (includingRUSTC [M]forasahi_core.o,aop.o,sep.o,pmp.o), which is fast (~6.5m) and catches compile/type errors, though it skipsmodpost/.kolinking (so missingEXPORT_SYMBOLorMODULE_DESCRIPTION/MODULE_LICENSEin=mmodules is not checked here).- The header comment (
apple-build-kunit.yml:12-14) and commit message mention onlysep-source.ymlandmt7932-kunit.yml, whereasintegration/auroraalso hasapple-drm-kunit.yml(display.kunitconfig) andpmgr-pwrstate-kunit.yml(.kunitconfig.pmgr-pwrstate) — neither is duplicated in the matrix, so there is no overlap.
Assisted-by: LLM (Gemini 4 Neon)
CI compiled only apple-sep.o and the DWC3 object. It ran only sep.kunitconfig and mt7932.kunitconfig. Most Apple drivers and their kunitconfig files had no CI at all. A change that broke them was only found on hardware. The new workflow has two jobs: - apple-build: arm64 defconfig plus asahi.config with LLVM=1 and Rust 1.96.0 (the host-tests pin), with the tree's own bindgen. It checks that every Apple driver is still in .config, so a driver that drops out cannot pass by building nothing. Then it compiles the Apple driver directories and the core files the user4k and KSM work touches. - kunit: one arm64 QEMU run per suite (ANE boot and PM; DCP fabric and topology; asahi; spi-hid; AVD; AVE; ISP; JPEG; ProRes; scaler; macsmc; CLPC; trusted keys). fail-fast is off. Suites that already have their own workflow are not repeated: sep, mt7932, the Apple display suite (apple-drm-kunit.yml) and pmgr-pwrstate. Two kunitconfigs are left out because another one runs the same suites: ane transport.kunitconfig (boot.kunitconfig also sets UBSAN_SHIFT, and KASAN_INLINE is the default) and avd-pm.kunitconfig (PM_SLEEP is on by default on arm64). push on integration/aurora uses the same paths filter as pull_request, as dt-checks.yml does, so an unrelated merge does not start the jobs. Two suites had no kunitconfig, so add them: - drivers/mfd/macsmc.kunitconfig runs the macsmc MFD and macsmc-power KUnit tests. - security/keys/trusted-keys/tests/.kunitconfig runs trusted_source, the tests for trust sources registered at runtime. PR aurora-silicon#2697 adds the AVE host harnesses to host-tests. This does not overlap with it. Verified: the YAML parses, every matrix kunitconfig exists in this tree, and the push and pull_request paths lists are the same. Signed-off-by: Alyx-ML <256263590+Alyx-ML@users.noreply.github.com>
2b305b3 to
e7daf69
Compare
|
Thanks for the review. I have pushed a new version, rebased on
On the notes:
Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal Pre-PR Checklist Re-Review (§1–§6) — REQUEST_CHANGES
Re-reviewed commit e7daf694732bf91042481030c7447c74be4b4d64 (rebased onto 377060f3688a, interdiff 2b305b3025e1..e7daf694732b) against all three Wave 83 blockers.
Resolved Wave 83 Blockers
- Blocker 2 (
on.pushpaths:filter) — RESOLVED:.github/workflows/apple-build-kunit.yml:46-71now mirrors all 23paths:patterns fromon.pull_requestontoon.push(matchingdt-checks.yml), preventing unrelated merges tointegration/aurorafrom spawning the 16 jobs. - Blocker 3 (duplicate KUnit matrix entries) — RESOLVED:
ane-transportandavd-pmare removed with clear inline rationale (boot.kunitconfigis a strict superset oftransport.kunitconfigwithUBSAN_SHIFT=yand defaultKASAN_INLINE;PM_SLEEPis already enabled by default on arm64 foravd). Verified all 15 matrixkunitconfigpaths exist on377060f3688aor are added by this PR (drivers/mfd/macsmc.kunitconfig,security/keys/trusted-keys/tests/.kunitconfig), and header comments / commit message now accurately referenceapple-drm-kunit.ymlandpmgr-pwrstate-kunit.yml. - Fork verification & security check: Verified fork runs
Alyx-ML/linux45235399937(16/16 jobs passed) and45235400352(Host testspassed) on27ad5f56718d, whose only diff vs.e7daf694732bis the test-only branch/path trigger adjustment. GitHub Actions security remains clean (pull_requestonly,permissions: contents: read,concurrencywithcancel-in-progress: true, explicittimeout-minutes,max-parallel: 4,fail-fast: false, no untrusted${{ github.event.* }}interpolation intorun:).
Remaining Blocker
- Upstream CI on
aurora-silicon/linux#2995has not yet run/passed (Wave 83 Blocker 1):- Both upstream workflow runs for
e7daf694732bf91042481030c7447c74be4b4d64—Apple build and KUnit(45240184287) andHost tests(45240184162) — are still inaction_requiredawaiting human maintainer workflow approval (statusCheckRollupis empty,mergeStateStatus: UNSTABLE). - No code changes are needed. Once a human maintainer approves the fork workflow runs on
aurora-silicon/linux#2995and bothApple build and KUnitandHost testsfinish green one7daf694732bf91042481030c7447c74be4b4d64, this PR is ready to approve and merge.
- Both upstream workflow runs for
Pre-PR Checklist Summary (§1–§6)
- §1 No model gating: PASS.
- §2 Production-ready, no hacks: PASS (workflow & kunitconfig structure clean; all Wave 83 technical findings resolved).
- §3 Safety: PASS (GitHub Actions security audited clean; least-privilege
contents: read). - §4 Clean-room & attribution: PASS — commit
e7daf694732bf91042481030c7447c74be4b4d64carries human author/committer (Alyx-ML) and humanSigned-off-by:only, zero AI trailers in commit,Assisted-by:disclosed in PR body. - §5 Evidence: BLOCKED on live upstream CI execution (
action_requiredon45240184287and45240184162; fork runs passed 16/16 + Host tests). - §6 Naming: PASS.
Assisted-by: LLM (Gemini 4 Neon)
Part of the #2755 split.
Summary
Not repeated here, because another workflow or kunitconfig already runs them:
sep,mt7932,apple-drm-kunit.yml,pmgr-pwrstate-kunit.yml, ANEtransport.kunitconfigandavd-pm.kunitconfig.Evidence
apple-sep.oand the DWC3 object, and ran two kunitconfigs.377060f3688a(the currentintegration/aurora), in the fork:Apple build and KUnit passed (16 of 16 jobs), Host tests passed.
The fork branch differs from this PR only by a test-only commit that adds
ci/**to thepush triggers and drops the push paths filter, so the push always runs.
Merge Danger
Door: two-way
Blast Radius: CI minutes
16 jobs on PRs and merges that touch Apple drivers. No kernel code changes.
Assisted-by: LLM (Claude:Opus 5.5)