fix(binary): drop intermediate static library search - #67
Conversation
Skip find on missing product directories and read target .a files from out/soong when obj/STATIC_LIBRARIES does not exist.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: fosslight/fosslight_android_scanner/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughBinary discovery now adds search commands only for existing directories. Module lookup retains relative directories for paths under ChangesBinary discovery
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change skips searches for missing directories, which avoids errors on newer Android builds. No concrete merge-blocking risk was found in the supplied changes. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Linked .so and executables are already collected from system and apex. Static .a files are not installed on the target.
Summary
obj/STATIC_LIBRARIESandout/soong/.intermediatesfor.afiles. Those are link inputs, not binaries installed on the target..sofiles and executables stay in the report through the existingsystem/andapex/<module>/searches.obj/STATIC_LIBRARIESno longer makesfindprintNo such file or directory.Test plan
obj/STATIC_LIBRARIESdoes not listlib*.afrom that directory.generic_arm64scan does not printfind: .../obj/STATIC_LIBRARIES: No such file or directory.system/binexecutables,system/lib64/*.so, andapex/<module>/binaries.