Skip to content

ci: fix reusable workflow inputs after upstream integration - #4

Merged
heDuke merged 2 commits into
mainfrom
fix/ci-reusable-inputs
Oct 17, 2026
Merged

heDuke merged 2 commits into
mainfrom
fix/ci-reusable-inputs

Conversation

@heDuke

@heDuke heDuke commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

PR builds of Build Manager fail with startup_failure (e.g. run 39031041935 on PR #3) because reusable-workflow inputs no longer match after cec8cc4 ("Integrate upstream and expressive workflows [skip ci]"). actionlint on main reports:

  • build-manager.yml:97-98 passes expected_size2 / expected_hash2 to build-lkm.yml, which now only declares package_name, expected_size, expected_hash.
  • build-lkm.yml:37 passes package_name to ddk-lkm.yml, which does not declare it (it has expected_size/hash, expected_size2/hash2, manager_package, ddk_release, kmi).

Main's commits since then were [skip ci], so this was never caught. husky-release.yml calls ddk-lkm.yml directly and is unaffected (not changed here).

Fix: restore build-lkm.yml to its pre-cec8cc4e form

  • *2 instead of expected_*: before cec8cc4, PR builds passed the throw-away PR keystore (generated in generate-key, CN=KernelSU PR Build) as expected_size2/hash2 → ddk-lkm.yml → KSU_EXPECTED_SIZE2/HASH2, i.e. the secondary / PR manager signature. ddk-lkm.yml still treats *2 as the PR slot (when only *2 is set it also sets KSU_IS_PR_BUILD=1 and KSU_PACKAGE_NAME=me.weishu.kernelsu.pr), while expected_size/hash is the production primary slot that husky-release.yml pins to the HuskySU release key (with an explicit "do NOT set SIZE2/HASH2" comment). Feeding the PR key into the primary slot would blur that distinction, so the PR key stays on *2, same as before.
  • package_name dropped (no caller set it; ddk-lkm.yml has no such input — the equivalent is manager_package).
  • ddk_release: '20260313' pinned as before.
  • android17-6.18 dropped from the matrix: there is no ghcr.io/ylarod/ddk-min:android17-6.18-20260313 image (only -20260828), and the fork's ddk-lkm.yml x64 path has no 6.18 MO= handling yet. Supporting android17 needs the full upstream ddk bump (build: bump ddk to 20260828, support android17-6.18 tiann/KernelSU#3663) and is left for a follow-up.

Validated with actionlint (0 findings).

Follow-up commit (1d6f796)

ksud-extra.yml (also from cec8cc4) did mv ksuinit-riscv64/ksuinit, but ksuinit.yml only builds aarch64/x86_64, so all build-ksud-extra jobs failed (cannot stat ksuinit-riscv64/ksuinit, run 39031381273). The host targets built there do not embed a riscv64 ksuinit; restored the pre-cec8cc4e step. Run 39032372395: all jobs green.

build-manager.yml passes the PR-build signing key to build-lkm.yml as
expected_size2/expected_hash2, but cec8cc4 replaced build-lkm.yml's inputs
with upstream's package_name/expected_size/expected_hash and forwarded
package_name to ddk-lkm.yml, which does not declare it. GitHub rejects the
run at startup (startup_failure).

Restore build-lkm.yml to its pre-cec8cc4e form: accept expected_size2/hash2
and forward them to ddk-lkm.yml as *2 (secondary/PR signature), pin
ddk_release 20260313, and drop android17-6.18 from the matrix since no
ghcr.io/ylarod/ddk-min:android17-6.18-20260313 image exists.
cec8cc4 added 'mv ksuinit-riscv64/ksuinit' to ksud-extra.yml, but
ksuinit.yml only builds/uploads aarch64 and x86_64, so every
build-ksud-extra job failed with 'cannot stat ksuinit-riscv64/ksuinit'.
The extra (host) targets don't embed a riscv64 ksuinit; restore the
pre-cec8cc4e step.
@heDuke
heDuke merged commit 54b9b90 into main Oct 17, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant