Skip to content

SREP-3844: add label-based filtered changelog outputs#5438

Open
dustman9000 wants to merge 1 commit intoapp-sre:masterfrom
dustman9000:srep-3844-rosa-changelog-filter
Open

SREP-3844: add label-based filtered changelog outputs#5438
dustman9000 wants to merge 1 commit intoapp-sre:masterfrom
dustman9000:srep-3844-rosa-changelog-filter

Conversation

@dustman9000
Copy link

Summary

Add label-based filtered changelog outputs to the change-log-tracking integration. This produces a separate bundle-diffs-rosa.json file containing only changelog items that affect apps labeled with rosa: "true" in app-interface.

Changes:

  • Added labels field to the common apps GraphQL query and Pydantic model
  • After writing the main bundle-diffs.json, iterate over LABEL_FILTERED_OUTPUTS to produce filtered outputs based on app labels
  • Generic design via LABEL_FILTERED_OUTPUTS dict so additional filters can be added easily
  • Added test for ROSA label filtering

Context:

  • 47 ROSA-related app.yml files in app-interface were tagged with rosa: "true" (merged)
  • ROSA system entity registered in inscope catalog (merged)
  • This PR produces the filtered data; a follow-up app-interface MR will add the ConfigMap to expose it in Backstage

Jira: https://issues.redhat.com/browse/SREP-3844

Test plan

  • Existing tests pass (3 parametrized + 1 new)
  • New test validates ROSA-labeled apps appear in filtered output
  • Deploy to stage and verify bundle-diffs-rosa.json is produced in S3

Add support for producing filtered changelog outputs based on app
labels in the change-log-tracking integration. Configuration is driven
by the LABEL_FILTERED_OUTPUTS dict, making it easy to add new product
filters.

For ROSA, this produces bundle-diffs-rosa.json containing only items
affecting apps labeled rosa: "true", with a virtual rosa-platform app
injected for Backstage progressive-delivery plugin matching.

Also adds Prometheus metrics for Grafana dashboards:
- change_log_commit_processed_total
- change_log_app_change_total{app, label_filter}
- change_log_change_type_total{change_type, label_filter}
- change_log_items{label_filter} (gauge)
- change_log_processing_error_total

Adds labels field to the common apps GraphQL query so app labels are
available to the integration.

Jira: https://issues.redhat.com/browse/SREP-3844
@dustman9000 dustman9000 force-pushed the srep-3844-rosa-changelog-filter branch from edeb847 to 3cf0ea4 Compare March 5, 2026 15:18
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.

1 participant