Repository navigation
ci: automate arm64 selftest verification and ABI-aware inheritance on base rebuilds - #106
Merged
Merged
Conversation
组件审计报告底座 这次没有改动配方,没审什么。 CI 实跑 selftest(arm64 + termux-docker)这次没有要跑的。 环境同 App 里 Claude 的 Bash 工具(PREFIX / HOME / TMPDIR / termux-exec),没有 GPU、屏幕、Shizuku。通过只说明「装得上、跑得起来」,安卓特有的问题仍要真机。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
目前每次
cccodroid重打 devkit 底座,市场仓库几乎所有 56 个组件都会同时失去验证状态:build-index.mjs的inheritBlocker()要求baseDeps里每个底座包版本字符串完全一致,只要bash/openssl/zlib/python等出现补丁漂移,继承就全部失效;ubuntu-24.04-arm+termux/termux-docker:aarch64原生 bionic 运行环境(目前仅在check.yml用于 PR 审计),但没有接进build.yml;而当前 56 个组件中只有 5 个声明了硬件需求(GPU),其余 51 个(91%)都是纯 CLI / 语言 / 无头工具。配套
greyoak111/cccodroid#245(#206SONAME ABI 漂移检测),本 PR 旨在把“每次重打工具包都要在真机上重验 56 个组件”降到“只需真机验 ≤ 5 个硬件组件 + 极少数 CI 失败项”。改动内容
tools/ci-verify-base.mjs:ubuntu-24.04-arm+termux/termux-docker:aarch64真实底座快照中,按分片(--shard i/N)自动筛选不依赖手机硬件(!needs.gpu && !needs.display && !needs.shizuku)、有selftest且尚未验过的组件;requires中的组件和可选module:*模块)→ 跑first-run.sh(PIP_NO_INDEX=1)→ 实跑selftest;gzSha256)输出供索引合并;硬件组件强制跳过,留给真机。.github/workflows/build.yml:build→verify-ci(4 分片ubuntu-24.04-arm并行)→index(合并历史与本轮ci-verified.json并签名上传);workflow_dispatch增加skip_ci_verify开关,紧急重签索引时可跳过容器验证。tools/build-index.mjs(三级验证体系,向后兼容旧版 App):kind: "device":直接真机验证(verified.json);kind: "inherited":ABI 兼容继承——优先对比devkit.lock.json的abi.sonames,老锁文件退回abi-policy.json(共享库/运行时策略)。baseDeps仅发生补丁/次版本/CLI 主版本漂移时不再作废继承;只有ABI-MAJOR(如libicu 78→79对实际依赖libicu的组件)才阻断继承;kind: "ci-arm64":非硬件组件且gzSha256完全一致的 CI arm64 selftest 通过记录(硬件组件禁止走此档)。requires继承回收循环里未跳过module:<id>的隐患。tools/verify-device.mjs:--pending跳过本机不支持的组件(!c.unsupported,避免 Adreno 机误跑 Mali 驱动),默认只验仍未验证的少数硬件/失败组件;新增--include-ci可按需把仅 CI 验过的组件也纳入真机复验。tools/test-verify.mjs& 更新docs/recipe.md:覆盖 ABI 继承判定、SONAME 覆盖、硬件组件判定与分片合并逻辑。本地验证
node --check全部改动脚本:OKnode --test tools/test-verify.mjs:3/3 PASSnode tools/check-recipes.mjs:ALL PASS