-
Suggestion
-
Resolution: Unresolved
-
None
Compass currently doesn't fully support monorepos. While you can map components using a YAML file, the metrics are only calculated based on the repository's default branch. This makes it hard to track and calculate metrics for projects with multiple components in a single repository.
Monorepos are repositories that contain several projects or components, usually organized in a specific directory structure. Each project or component has its own lifecycle, dependencies, and configurations.
Compass combines and reports all metrics based on the default branch of the repository. This means the metrics do not accurately reflect the state of individual components. Important changes and statuses for specific components might be missed if they aren't in the default branch. This can lead to misleading data and incomplete insights.
While full monorepo support is not yet available, Compass now allows you to stop SCM powered metrics from monorepo components. Currently this is supported via the UI or API, not config-as-code -> https://developer.atlassian.com/cloud/compass/config-as-code/manage-components-with-config-as-code/#managing-multiple-components-with-config-as-code-in-a-single-repository