Repository navigation
Remove dead code, unused tools and duplicate CI builds (-623) - #371
Merged
Merged
Conversation
- rtkit_quiesce_ap(): its only caller, the ANS hand-over quiesce, went away in adf5580 ("nvme: power a post-M4 ANS off after use, and start it from off"). rtkit_quiesce_ap_power() stays; the shutdown path still uses it. - uartproxy_wait_dockchannel(): its caller was dropped in 75665c7 ("boot: replace Neo build profiles with runtime USB selection"); uartproxy_wait_stage1() covers the DockChannel window. - secboot_flavour(): added with the Stage 1 flavours (f82845c) but never called. The flavour name is still published in the DT. - stage1_proxy_action_needs_cleanup(): only the host test called it. main.c checks the payload action itself, and the ordering test in test_stage1_proxy.py still guards the CDC cleanup before a native handoff. Drop the matching test lines. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
- ESP_BOOT_HOST (sptm_virt_esp.c, from 62f365b) swaps in "esp_boot_host.h" for a host test harness under tests/esp_boot_host. That harness was never committed on any branch, so the switch can only break the build. - AFK_TRACE (afk.c, dcp_iboot.c, from 841cbef) wraps four AFK and DCP iBoot message hexdumps. No Makefile option, CI job, doc, test or release build defines it. The images built without either switch are unchanged in behaviour. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
cdc_reconnect.py (added in 7d3464a for the J700 tether) never gained a caller: nothing in proxyclient/, tools/ or tests/ imports it apart from its own test. boot_cdc.py (bf80900) does the same job, is what boot_j813.py and boot_j873.py use, and is the path docs/cdc-boot.md documents. The unused copy also defaults to a USB-C controller reset (flags 0x6) that boot_cdc.py refuses on purpose. Remove the module and its test. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
package_j700.py packaged the first J700 builds. d6bd1c4 dropped the documentation steps that used it, and tools/package_release.py (405eb2f) has been the only packager since: release.yml and docs/RELEASING.md call package_release.py, and nothing else calls package_j700.py apart from its own test. The rebrand left one of its checks comparing against {"aura", "aura"}, which shows nobody runs it. Remove the script and its test. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
- build.yml's stage1-clang job (macOS clang) runs the same Stage 1 link that stage1-size.yml's clang-macos job runs, and clang-macos also checks the room left. Move the one build only stage1-clang had, the ESP Stage 2 link with macOS clang, into clang-macos and remove stage1-clang. This saves a macOS runner per push. - esp-stage2-size.yml's first step, labelled "plain stage 2", builds RELEASE=1 CHAINLOADING=1 without ESP_STAGE2, which is Stage 1; the next step's make clean throws it away and stage1-size.yml's fedora job already builds it with the same toolchain. Remove the step. - SPTM_VIRT_GUARDED=1 is passed to make in esp-stage2-size.yml, but no Makefile has ever read it. Drop it. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
- udev/80-aura.rules adds each symlink twice (SYMLINK+="aura", SYMLINK+="aura"): the rebrand in bf03ba9 renamed the old alias onto the new name. Keep one of each. - The README still says the original device aliases are kept and calls the aura package name inherited; bf03ba9 dropped the aliases and renamed the package. - It says Mach-O boot-object support "will be reviewed separately"; that support was merged in 11852c7 and has its own doc. - It points to Rust crate licences "in their vendor directories"; the tree has no rust/vendor, cargo fetches the crates. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 19, 2026
clang-format wants one blank line where the removed #ifdef block was. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 20, 2026
DjDeveloperr
approved these changes
Nov 21, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 7f6d670 and checked the claims against main, not just the PR text.
- I test-merged it onto current main (afc8ec1): the merge is clean. In the merged tree,
git grep -wforrtkit_quiesce_ap,secboot_flavour,uartproxy_wait_dockchannel,stage1_proxy_action_needs_cleanup,AFK_TRACE,ESP_BOOT_HOST,cdc_reconnect,package_j700andSPTM_VIRT_GUARDEDfinds nothing. None of the other open aura PRs' diffs use any of them. - The dropped
esp-stage2-sizestep really is a Stage 1 build:$COMMONisRELEASE=1 CHAINLOADING=1withoutESP_STAGE2. The macOS-clang ESP Stage 2 link moves intoclang-macosunchanged, and that job is green on this head. - Nit: the new header comment in
.github/workflows/esp-stage2-size.yml:5runs past 100 columns.
Hardware gate: not needed. Every C hunk removes uncalled or compiled-out code, and the rest is CI, a host tool, the README and udev. Main has moved in .github/workflows/ since 5c70a29, so I'm updating the branch and will merge once CI is green on the new head.
Assisted-by: Claude Opus 5.5
RyanTheTide
commented
Nov 21, 2026
RyanTheTide
left a comment
Contributor
Author
There was a problem hiding this comment.
No blockers. I only checked what Dj's review didn't cover, and found nothing removed that is still used.
- No other workflow or proof job depends on what this removes. No workflow in the tree uses
workflow_runorneeds:onstage1-clang.release.ymlanddocs/RELEASING.mddon't mention it orpackage_j700. main has no required status checks, so dropping thestage1-clangcheck can't leave PRs waiting on a check that no longer runs. The only remaining mentions ofstage1-clangare historical lines indocs/releases/1.0.0b7..b12.md, which are fine as they are. - The moved ESP Stage 2 link runs the same command, with the same
push/pull_request: maintriggers and the samemacos-26runner. - A code search across the org finds no other repo that uses
cdc_reconnect,package_j700,AFK_TRACEor the four removed functions. - The udev rules still give one
auraand oneaura-secsymlink each.
This head's CI is still pending. Check that clang-macos shows both links and that ESP stage 2 vital size prints the margin. No hardware row is needed.
Assisted-by: LLM (Claude:Opus 5.5)
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.
Problem
aura carries code, tools and CI jobs that nothing uses any more: functions with no caller, preprocessor switches that no build defines, two host tools that were replaced, CI steps that repeat another job's build, and README and udev text left over from the rebrand.
Change
Six independent commits, one per removal set, each reviewable on its own, plus a one-line clang-format fix for the second one. Net: -623 lines (20 insertions, 643 deletions, 22 files).
None of this changes what an image does at runtime. The C changes remove uncalled or compiled-out code, and the images keep their sizes.
Testing
RELEASE=1 CHAINLOADING=1(Stage 1),+ESP_STAGE2=1,SECBOOT=enforce SECBOOT_FLAVOUR=secure, andSPTM_VIRT=1 SPTM_VIRT_ESP=1 AURACTL=1. All link, aura.bin sizes are unchanged, and the warning lists match main's exactly. The stacked head was built on a second host (system clang and Rust,BUILDSTD=1, the way the Fedora CI job builds) in the same five configurations: all link, and the sizes and warning lists match main's.pytest tests/python: main gives 746 passed, 2 failed, 27 skipped. The 2 failures aretest_loadobjs.py, where the build host'snmlists two symbols that share an address in the other order. Each commit shows the same 2 failures and drops only the tests of what it removes. The stacked head gives 736 passed with the same 2 failures: 746 minus the 9cdc_reconnecttests and the 1package_j700test.Still to run
This PR's CI, which also checks the CI commit:
clang-macosmust link Stage 1 and the ESP Stage 2, andesp-stage2-sizemust report the vital size. No hardware row is needed because no removed code was reachable at runtime.865c078 Remove four exported functions that nothing calls (-71)
Problem
Four exported functions have no caller left:
rtkit_quiesce_ap()(src/rtkit.c)uartproxy_wait_dockchannel()(src/uartproxy.c)uartproxy_wait_stage1()covers the DockChannel windowsecboot_flavour()(src/secboot.c)flavour_namestage1_proxy_action_needs_cleanup()(src/stage1_proxy.c)main.cchecks the payload action itselfChange
Remove the four functions and their prototypes, plus the test lines that called them or checked their source.
rtkit_quiesce_ap_power()stays because the shutdown path uses it. The ordering test intest_stage1_proxy.py, which checks that CDC cleanup comes before a native hand-off, also stays. Net: -71 lines.Testing
RELEASE=1 CHAINLOADING=1(Stage 1),+ESP_STAGE2=1,SECBOOT=enforce SECBOOT_FLAVOUR=secure, andSPTM_VIRT=1 SPTM_VIRT_ESP=1 AURACTL=1. All link, image sizes are unchanged, and the warning lists match main's exactly in each configuration.pytest tests/python: 746 passed, 2 failed, 27 skipped, the same as main (the 2 failures aretest_loadobjs.py, where the buildbox'snmlists two symbols that share an address in the other order). The removed lines were assertions inside existing tests, so the test count is unchanged.Still to run
No hardware row: none of these functions could be reached at runtime before the change.
Evidence
traces/boot/20261120-deadweight-boot/on the lab S500.72d2961 Remove two compile-time switches that no build sets (-20)
Problem
Two preprocessor switches are never defined by any build:
ESP_BOOT_HOSTinsrc/sptm_virt_esp.c(62f365b) swaps the includes foresp_boot_host.h, a host harness undertests/esp_boot_hostthat was never committed on any branch. Setting it can only break the build.AFK_TRACEinsrc/afk.candsrc/dcp_iboot.c(841cbef) wraps four message hexdumps. No Makefile option, CI job, doc, test, kit or release build defines it.Change
Remove both switches and the code under them. Net: -20 lines.
Testing
pytest tests/python: 746 passed, 2 failed, 27 skipped, the same as main (the 2 failures aretest_loadobjs.py, where the buildbox'snmlists two symbols that share an address in the other order).Still to run
No hardware row: the removed code was compiled out of every image.
Evidence
None of the open aura PRs references either switch. Logs:
traces/boot/20261120-deadweight-boot/on the lab S500.54498b1 proxyclient: remove the unused cdc_reconnect module (-363)
Problem
proxyclient/aura/cdc_reconnect.pyhas never had a caller. It was added for the J700 tether in 7d3464a, andproxyclient/aura/boot_cdc.py(bf80900) took over that job:boot_j813.pyandboot_j873.pyuse it, anddocs/cdc-boot.mddocuments it. The unused module also defaults to a USB-C controller reset (flags=0x6), whichboot_cdc.pyrefuses on purpose.Change
Remove
proxyclient/aura/cdc_reconnect.pyand its test,tests/python/test_cdc_reconnect.py. Net: -363 lines.Testing
pytest tests/pythonon the branch: 737 passed, 2 failed, 27 skipped. main gives 746 passed with the same 2 failures (test_loadobjs.py, where the buildbox'snmlists two symbols that share an address in the other order). The 9 missing passes are the removed module's own tests.Still to run
Nothing. This is host-side Python with no hardware path.
Evidence: no callers
gh search code --owner aurora-silicon cdc_reconnectfinds only these two files.cdc_reconnectortransition_to_cdc. Rename Asahi properties to aurora and m1n1 to aura #313 changes a comment line in both files; that hunk goes away with the files.tests/test_hw_cdc.pyandcontrib/probes/j700-cdc-qualify.pyimportm1n1.cdc_reconnectfrom a separately pinned m1n1 checkout (resident/m1n1-clean-full5), not from this tree. They don't change.git log -S transition_to_cdcshows no commit that ever called it outside its test.Evidence directory (build and test logs):
traces/boot/20261120-deadweight-boot/on the lab S500.ed3123c tools: remove the superseded package_j700.py (-145)
Problem
tools/package_j700.pypackaged the first J700 builds. d6bd1c4 removed the documentation steps that used it, and since 405eb2ftools/package_release.pyhas been the only packager:release.ymlanddocs/RELEASING.mdcall it. Nothing callspackage_j700.pyexcept its own test. The rebrand turned one of its checks into a comparison against{"aura", "aura"}, a sign that nobody runs it.Change
Remove
tools/package_j700.pyandtests/python/test_package_j700.py. Net: -145 lines.Testing
pytest tests/pythonon the branch: 745 passed, 2 failed, 27 skipped. main gives 746 passed with the same 2 failures (test_loadobjs.py, where the buildbox'snmlists two symbols that share an address in the other order). The one missing pass is the removed test.Still to run
Nothing. Host-side tool only.
Evidence: no callers
gh search code --owner aurora-silicon package_j700: only the test file in this repo.kits/aura,kits/test: no reference.package_release.py, used byrelease.yml.bb26b03 ci: drop the builds another job already runs (-24)
Problem
Two CI jobs build things another job already builds:
build.yml'sstage1-clangjob (macOS clang) runs the same Stage 1 link as theclang-macosjob instage1-size.yml, which also checks the room left. Its only unique build is the ESP Stage 2 link with macOS clang.esp-stage2-size.yml, labelled "plain stage 2", buildsRELEASE=1 CHAINLOADING=1withoutESP_STAGE2, which is a Stage 1. The next step'smake cleandiscards it, andstage1-size.yml'sfedorajob already builds the same thing.esp-stage2-size.ymlalso passesSPTM_VIRT_GUARDED=1, which no Makefile on any branch has ever read.Change
clang-macos. Removestage1-clang, which saves one macOS runner per push and PR.esp-stage2-size.ymland fix its header comment.SPTM_VIRT_GUARDED=1.Net: -24 lines.
Testing
build.ymlandstage1-size.ymlrun on push and pull_request to main, so moving the step keeps the same triggers.gmakeline fromstage1-clang, run after the Stage 1 room check.Still to run
Watch this PR's CI:
clang-macosmust link both images, andesp-stage2-sizemust report the vital size.Evidence
#246 (macos-hv-install, draft) also writes
SPTM_VIRT_GUARDED=1into a JSON of build flags; it has no effect there either.stage1-clangdates from 2026-11-06.clang-macos(tools/stage1_size.sh, 2026-11-13) has covered its Stage 1 link since then and also enforces the headroom floor.70cc97e README, udev: drop leftovers from the rebrand (+1)
Problem
The rebrand to aura (bf03ba9) left some text behind:
udev/80-aura.rulesadds each symlink twice (SYMLINK+="aura", SYMLINK+="aura"), because the old alias was renamed onto the new name.aurapackage name "inherited". Neither is true since bf03ba9.docs/macho-boot-object.md.rust/vendor; cargo fetches the crates.Change
Keep one symlink per rule and correct the three README passages. Net: +1 line.
Testing
Text only.
udevadm verifyisn't available on the build host, but the rules keep the same syntax with one assignment fewer.Still to run
Nothing.
Assisted-by: LLM (Claude:Opus 5.5)