Skip to content

Conversation

WVerlaek
Copy link
Member

@WVerlaek WVerlaek commented Sep 9, 2025

Description

To speed up SBOM generation on larger packages

Related Issue(s)

Fixes #

How to test

Documentation

/hold

WVerlaek and others added 2 commits September 9, 2025 13:26
- Add parallelism configuration option to WorkspaceSBOM struct
- Default to runtime.NumCPU() for optimal performance based on benchmarking
- Allow custom parallelism values via YAML configuration
- Add validation to ensure minimum parallelism of 1
- Include performance logging showing parallelism and CPU core count
- Update documentation with configuration examples and performance notes

Performance improvements:
- Up to 16% faster SBOM generation for large repositories
- Minimal impact on small repositories
- Scales optimally with available CPU cores

Co-authored-by: Ona <no-reply@ona.com>
…is 0

- Remove verbose build logging for SBOM parallelism configuration
- Update logic to default to CPU core count when parallelism is 0 or negative
- Simplify validation logic for cleaner code
- Maintain backward compatibility while improving user experience

Co-authored-by: Ona <no-reply@ona.com>
@WVerlaek WVerlaek marked this pull request as ready for review September 9, 2025 13:35
@WVerlaek
Copy link
Member Author

WVerlaek commented Sep 9, 2025

@corneliusludmann would you be able to review this? Makes SBOM run in parallel to speed up the main CI builds

@WVerlaek WVerlaek merged commit bfe3f21 into main Sep 9, 2025
6 checks passed
@WVerlaek WVerlaek deleted the feature/sbom-parallelism branch September 9, 2025 13:43
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