aro-hcp: update makefile target for prometheus generation#81408
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughThe observability-prometheus CI step script was modified to conditionally select between "make test-alerts" and "make alerts" based on target availability, storing the selected target in ALERT_TARGET and using it in the uncommitted-changes error message. ChangesAlert Target Selection
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bennerv The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse auto-ack |
|
@bennerv: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@bennerv: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
In Azure/ARO-HCP#5900, a split of the generation and testing was added. Test now generates and tests the alerts, but
alertsitself will generate the alerts only and not test them.Prefer
make test-alerts, but support fallback tomake alertsuntil 5900 is merged.Summary by CodeRabbit
This update changes the aro-hcp observability Prometheus CI step to prefer upstream’s new
make test-alertsworkflow, which both generates and validates alert rules. If that target isn’t available yet, the step falls back to the oldermake alertsbehavior.In practice, this keeps the aro-hcp CI job aligned with the upstream split between alert generation and alert testing, while preserving compatibility until the new target is fully available. It also improves the failure message so it tells contributors to rerun whichever alert target was actually used.