package_core: deduplicate `llext-edk` headers in core packages #694
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.340
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #694"
general
weight: 0.35
facchinm
Every board variant ships its own
llext-edk/includetree, and most of those headers are byte-identical across boards. This PR moves the shared headers into a singlevariants/includedirectory when packaging in CI, which makes each core package much smaller.Changes
extra/dedupe_includes.py(new): takes two or more variant names and finds the files that are byte-identical at the same path in every variant'sllext-edk/include. It moves one copy of each tovariants/<common-dir>and deletes the duplicates. Each variant'sincludes.txtis updated to match:- an include directory that ends up empty is repointed to the common directory and removed;
- an include directory that keeps some files gets an extra entry for the common directory, after the original, so the variant's own headers are still found first.
--dry-runonly reports what would be done.extra/package_core.sh: runs the dedup on the included variants that have an EDK, then addsvariants/include/to the archive. It is skipped if fewer than 2 such variants are left. It only runs whenGITHUB_ACTIONSis set, because it changes the working tree in place (each packaging job starts from a fresh checkout).platform.txt: the-imacrosfiles (zephyr/autoconf.h,zephyr/toolchain/zephyr_stdint.h) are now found through the include path instead of a fixed{build.variant.path}/llext-edk/...path.zephyr_stdint.his the same on every board, so it gets moved. Every variant'sincludes.txtalready has the right directories, so this works whether or not the headers were deduplicated.Results (
zephyr_unoq, 2 boards)Testing
zephyr_unoqwithGITHUB_ACTIONS=1and checked that every-iwithprefixbeforepath in the unpacked package resolves.autoconf.hcoming from each variant's own directory.GITHUB_ACTIONS) leaves the working tree untouched.zephyr_mainandzephyr_contribpackages, and boards other than the two Q boards.