SREP-3844: add label-based filtered changelog outputs#5438
Open
dustman9000 wants to merge 1 commit intoapp-sre:masterfrom
Open
SREP-3844: add label-based filtered changelog outputs#5438dustman9000 wants to merge 1 commit intoapp-sre:masterfrom
dustman9000 wants to merge 1 commit intoapp-sre:masterfrom
Conversation
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
edeb847 to
3cf0ea4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add label-based filtered changelog outputs to the change-log-tracking integration. This produces a separate
bundle-diffs-rosa.jsonfile containing only changelog items that affect apps labeled withrosa: "true"in app-interface.Changes:
labelsfield to the common apps GraphQL query and Pydantic modelbundle-diffs.json, iterate overLABEL_FILTERED_OUTPUTSto produce filtered outputs based on app labelsLABEL_FILTERED_OUTPUTSdict so additional filters can be added easilyContext:
rosa: "true"(merged)Jira: https://issues.redhat.com/browse/SREP-3844
Test plan
bundle-diffs-rosa.jsonis produced in S3