Skip to content

chore(ci): add sbom cache - #21

Open
noahp wants to merge 1 commit into
mainfrom
noahp/sbom-cache
Open

chore(ci): add sbom cache#21
noahp wants to merge 1 commit into
mainfrom
noahp/sbom-cache

Conversation

@noahp

@noahp noahp commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

west ncs-sbom is REALLY slow. It turns out it runs scancode on every
source file in the build (working backwards from object files in the
build directory), single-threaded- and every time scancode starts, it
takes a few seconds to load its license database into memory.

Pretty annoying.

Luckily there's an option for a cache!

On a cold run, west ncs-sbom takes about 12 minutes.
With the cache warmed up, it's about 4 minutes.

Since we're using github's cache, these will expire after 7 days afaik :/ but at least repeated builds will be speedy.

`west ncs-sbom` is REALLY slow. It turns out it runs `scancode` on every
source file in the build (working backwards from object files in the
build directory), single-threaded- and every time `scancode` starts, it
takes a few seconds to load its license database into memory.

Pretty annoying.

Luckily there's an option for a cache, let's try it out.
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

@noahp
noahp marked this pull request as ready for review September 3, 2026 15:46
@noahp
noahp requested review from a team and gregersrygg as code owners September 3, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants