-
Notifications
You must be signed in to change notification settings - Fork 7.8k
ci(soc): Centralize SoC config in CI and add README #12143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Test Results 90 files 90 suites 27m 28s ⏱️ For more details on these failures, see this check. Results for commit 8b8b3fe. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description of Change
This pull request introduces a centralized configuration for System-on-Chip (SoC) targets in CI scripts, refactoring the way SoC lists and properties are managed across the project. The main improvement is the introduction of a new
socs_config.shfile, which defines all supported SoCs, their properties, and helper functions. All relevant CI scripts are updated to source this configuration, reducing duplication and making it easier to add or update SoC support. Several scripts are also refactored to use these centralized lists and helper functions, and logic is added to handle default behaviors for building and running tests across multiple targets.Centralization of SoC Configuration:
.github/scripts/socs_config.shcontaining all SoC lists, target groups, IDF version mappings, helper functions for property lookup, and computed arrays for build/test targets. This file is now sourced by all major CI scripts to provide a single source of truth for SoC support.Refactoring CI Scripts to Use Centralized Config:
find_all_boards.sh,on-push.sh,tests_build.sh,tests_matrix.sh, andtests_run.shto sourcesocs_config.shand use its arrays and helper functions instead of hardcoded SoC lists. [1] [2] [3] [4] [5]Build and Test Logic Improvements:
on-push.sh,tests_build.sh,tests_run.sh) to loop over the centralizedBUILD_TEST_TARGETSarray instead of hardcoded targets, and to handle default behaviors when no target or sketch is specified, enabling builds/runs for all targets or all sketches as appropriate. [1] [2] [3] [4] [5]QEMU and Architecture Handling:
tests_run.shto use helper functions fromsocs_config.shfor QEMU support and architecture detection, improving maintainability and ensuring only supported targets are run in QEMU.New Script for Official Variant Change Detection:
check_official_variants.sh, a script to determine if CI workflows should run based on whether official variants were changed, using the centralized SoC lists for accurate detection.Test Scenarios
Locally and GitLab CI.