Skip to content
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

BSP CI Sanitization #59

Open
ztnel opened this issue Apr 22, 2024 · 0 comments
Open

BSP CI Sanitization #59

ztnel opened this issue Apr 22, 2024 · 0 comments
Assignees
Labels
ioc IOC peripheral mapping changes qa Quality assurance and testing

Comments

@ztnel
Copy link
Contributor

ztnel commented Apr 22, 2024

Description

Now that the autogenerated BSP code is in lockstep with the project .ioc file, we should have a CI check to ensure that generation of the BSP via CubeMX does not deviate from what was committed. In a perfect world, the autogenerated code should not be committed to source control however, due to the complexity in running CubeMX headless and integrating it directly into the CMake build process, it is easier to source control the autogenerated code directly.

The most effective solution would be to implement a custom github action which hosts a headless CubeMX runtime and use it mode to run the following steps:

  1. Copy the BSP files into a tmp folder
  2. Run the code gen on the tmp folder
  3. Run a file diff comparing tmp to BSP
  4. Fail on any diffs, otherwise pass
@ztnel ztnel added qa Quality assurance and testing ioc IOC peripheral mapping changes labels Apr 22, 2024
@ztnel ztnel self-assigned this Apr 22, 2024
@ztnel ztnel changed the title BSP CI/CD Validation BSP CI Sanitization Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ioc IOC peripheral mapping changes qa Quality assurance and testing
Projects
None yet
Development

No branches or pull requests

1 participant