The firmware SBOM only ran when the target type chosen in the wizard was a firmware type. A customer who onboards an STM32 project as "Backend / API" got no firmware SBOM, even though classification had recognised the Make/CMake build.
What
classify_and_store runs the firmware SBOM when the chosen type or the classification's suggested type is firmware (bare metal, RTOS, Yocto).
Doc comment fixes in firmware_sbom.rs and classify_and_store.
Not included: pre-selecting the detected type in the wizard. Detection only runs after the target is created, so that belongs to the onboarding rework.
Verification
New nightly target fw-make-onboarded-as-service (fixtures/nightly/firmware/make as backend_service): its baseline equals fw-make's (toolchain:arm-none-eabi-gcc@).
Full local nightly (bless, then compare on a second fresh DB): no other baseline changed, so no non-firmware target is mistaken for firmware.
Part of the pilot P0 (#338), item C.
## Why
The firmware SBOM only ran when the target type chosen in the wizard was a firmware type. A customer who onboards an STM32 project as "Backend / API" got no firmware SBOM, even though classification had recognised the Make/CMake build.
## What
- `classify_and_store` runs the firmware SBOM when the chosen type **or** the classification's suggested type is firmware (bare metal, RTOS, Yocto).
- Doc comment fixes in `firmware_sbom.rs` and `classify_and_store`.
- Not included: pre-selecting the detected type in the wizard. Detection only runs after the target is created, so that belongs to the onboarding rework.
## Verification
- New nightly target `fw-make-onboarded-as-service` (`fixtures/nightly/firmware/make` as `backend_service`): its baseline equals `fw-make`'s (`toolchain:arm-none-eabi-gcc@`).
- Full local nightly (bless, then compare on a second fresh DB): no other baseline changed, so no non-firmware target is mistaken for firmware.
- fmt; clippy with the CI flags.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
The firmware SBOM only ran when the target type picked at onboarding was
a firmware type. An STM32 project onboarded as "backend service" got no
firmware SBOM, although classification recognised its build system.
It now also runs when the classification suggests a firmware type. The
nightly onboards the Make firmware fixture as a backend service
(fw-make-onboarded-as-service) and gets the same SBOM as fw-make.
Also moves a doc comment in firmware_sbom.rs back onto its function, and
merges the two doc comments on classify_and_store.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of the pilot P0 (#338), item C.
Why
The firmware SBOM only ran when the target type chosen in the wizard was a firmware type. A customer who onboards an STM32 project as "Backend / API" got no firmware SBOM, even though classification had recognised the Make/CMake build.
What
classify_and_storeruns the firmware SBOM when the chosen type or the classification's suggested type is firmware (bare metal, RTOS, Yocto).firmware_sbom.rsandclassify_and_store.Verification
fw-make-onboarded-as-service(fixtures/nightly/firmware/makeasbackend_service): its baseline equalsfw-make's (toolchain:arm-none-eabi-gcc@).🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
f6f599f1a6to3d6d4745ba