fix(firmware): produce the firmware SBOM when detection finds firmware #341

Merged
sharang merged 1 commits from feat/firmware-by-detection into main 2026-09-23 13:37:13 +00:00
Owner

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.ai/code/session_01EYKjxacrr6K88DruUmP48p

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
sharang added 1 commit 2026-09-23 13:08:49 +00:00
fix(firmware): produce the firmware SBOM when detection finds firmware (#338)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 27m21s
3d6d4745ba
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
sharang force-pushed feat/firmware-by-detection from f6f599f1a6 to 3d6d4745ba 2026-09-23 13:08:49 +00:00 Compare
sharang merged commit dae80043e6 into main 2026-09-23 13:37:13 +00:00
Sign in to join this conversation.