Repository navigation
fix(renesas): lib-select uses the Portenta core; build the C33 in ci-full (#2131 stage 0) - #2138
Merged
Merged
Conversation
Add tests/platform/portenta_c33 (blink) and a ci-full matrix row beside the UNO R4 WiFi, so Linux builds the C33 as well as the Windows-only ignored acceptance test. ci-full.yml is rendered from ci/board_families.json, and every SOT board had to own a build-<board>.yml. Adding a workflow file is not allowed, so a board can now be marked "matrix_only": it is built by the ci-full matrix and the path-selected PR boards, has no workflow file, and is never handed to the nightly dispatcher. Refs #2131
`fbuild lib-select` built its Renesas framework from `RenesasCores::new`, which is always the `renesas_uno` core, so a Portenta C33 project reported the UNO core's libraries dir while the build compiled against `renesas_portenta`. Expose `renesas::installed_cores` (the family -> core kind selection and platform_packages override the build already uses, as nrf52::installed_cores does for #2042) and use it from lib-select. Refs #2131
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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.
Stage 0 of #2131 (hardware-free). Two commits: the bug fix, and the test project + CI row. No deploy/upload work, no VID/PID anywhere.
1.
fbuild lib-selectreported the UNO core for a Portenta C33crates/fbuild-cli/src/lib_select.rsbuilt the Renesas framework fromRenesasCores::new, which is alwaysRenesasCoreKind::Uno. The build picks the kind from the MCU family (RenesasCoreKind::for_family), so a C33 project compiled againstrenesas_portentawhile lib-select inspectedrenesas_uno.Fix:
fbuild_build::renesas::installed_cores(project_dir, env, board)exposes the selection the build already makes (family -> kind, plus the env'splatform_packagesoverride) and lib-select calls it. Same shape asnrf52::installed_coresfrom #2070. No second resolver: it calls the orchestrator's existingrenesas_packages_from_resolved.RED (helper extracted with the old behaviour, new tests failing):
GREEN:
Real binary, on the new project and on the UNO R4 WiFi one:
Decision: what name lib-select reports
framework-arduinorenesasfor both cores (chosen). The bug is the directory; the name is unchanged for UNO R4 users and scripts.framework-arduinorenesas-uno/-portenta). More precise, but changes existing UNO R4 output in a bug-fix commit.corefield to the JSON. New output surface nobody asked for.2.
tests/platform/portenta_c33/and aci-fullrowBlink project mirroring
tests/platform/uno_r4_wifi/(with READMEs), a row intests/platform/README.md, and aci-full.ymlmatrix row beside the UNO R4 WiFi.Decision: how to add a
ci-fullrow without a new workflow fileci-full.ymlis rendered fromci/board_families.json, and the renderer required every SOT board to own abuild-<board>.yml(it fails on "SOT references workflows that don't exist on disk"). The issue and the repo owner's standing rule both say no new workflow file.build-portenta_c33.ymllike every other board. Rejected: a new workflow file.ci-full.yml. Rejected:render_workflows.py --check(ci-workflow-drift.yml) fails on the next run."matrix_only": truein the SOT (chosen). The renderer andselect_boards.pylearn that such a board has no file: it is in theci-fullmatrix and in the path-selected PR board matrix, and is never handed to the nightly dispatcher (gh workflow runon a file that does not exist would fail the dispatch job). Itsworkflowvalue is an id without.yml.Consequence of (c): the C33 has no README badge and no nightly run of its own. It builds on
ci-full(release validation) and on any PR that touchescrates/fbuild-build-arm/src/renesas/**or its test dir.docs/BOARD_STATUS.mdand the root README list badges per workflow file, so they are unchanged.Only
ci-full.ymlchanged on re-render; the 80build-*.yml,ci-test.yml,ci-minimal.ymlandnightly-platforms.ymlare byte-identical.Verification
soldr cargo test -p fbuild-cli --bin fbuild lib_select-- 8 passed;soldr cargo test -p fbuild-build-arm renesas-- 45 passedsoldr cargo clippy -p fbuild-cli -p fbuild-build-arm --all-targets -- -D warningsuv run --no-sync python -m ci.run_dylint --package fbuild-cli/--package fbuild-build-armuv run --with pyyaml --no-project python -m unittest ci.test_select_boards ci.test_fractional_workflows-- 54 passeduv run --no-project python ci/render_workflows.py --check-- cleanci/check_python_types.py: 0 errors),ci/check_python_complexity.pyNot verified locally: a full
fbuild buildof the new project (the dev daemon on this machine belongs to another session). TheArduino Portenta C33job ofci-fullon this PR is that proof.Refs #2131 (stays open for the hardware-blocked stages).