Repository navigation
alertmanager: support event recorder - #2707
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Click Fix with cubic on a comment, or reply @cubic-dev-ai fix this, and cubic writes the fix.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
cf000c3 to
3707805
Compare
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
9a00ca9 to
ff30fad
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
ff30fad to
39f37af
Compare
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
39f37af to
13122d0
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Requires human review: Auto-approval blocked because this review re-detected 3 unresolved issues already reported by Cubic.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
13122d0 to
a5a8b38
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
a5a8b38 to
3fc5193
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Requires human review: Auto-approval blocked because this review re-detected 2 unresolved issues already reported by Cubic.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
3fc5193 to
7feedc7
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
7feedc7 to
56e09c2
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
56e09c2 to
09db8b1
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
09db8b1 to
51f9950
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
| @@ -659,6 +674,9 @@ func addFeatureFlags(args []string, cr *vmv1beta1.VMAlertmanager) []string { | |||
| if amVersion.GreaterThanEqual(utf8MinVersion) { | |||
There was a problem hiding this comment.
We should add an env var overriding this - in case image tag used is custom
f0f68b1 to
13c9acb
Compare
|
@cubic-ai-dev |
@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Requires human review: Auto-approval blocked because this review re-detected 2 unresolved issues already reported by Cubic.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
13c9acb to
7b532d7
Compare
7b532d7 to
85a8f18
Compare
| // unparseable tag: addFeatureFlags cannot determine support for any feature, | ||
| // so none are emitted (pre-existing fallback, unrelated to eventRecorder) | ||
| f(opts{ | ||
| cr: newCR("latest", &vmv1beta1.VMAlertmanagerEventRecorder{StdoutOutput: true}), |
There was a problem hiding this comment.
latest doesn't append the feature flag, but the eventRecorderSupported() returns true:
// An unparseable tag is treated as
// supported, since it may be a non-semver custom build.
func eventRecorderSupported(cr *vmv1beta1.VMAlertmanager) bool {
so buildConfig still writes event_recorder into the config.
Alertmanager works with those since it won't start the revcorder when the flag is not passed, but the config is still redundant.
I think we should either:
- enable the flag for unparseable tags;
- keep this case as is and make eventRecorderSupported stop returning true for unparseable tags.
I'm ok with both, and I chose the option1 for the recent vtagent version check, as the non-semver tag is usually latest or main, which likely refer to newer versions. It would be nice to make these checks consistent inside operator.
There was a problem hiding this comment.
updated this as well
85a8f18 to
1e0f850
Compare
Signed-off-by: Hui Wang <[email protected]>
adding alertmanager event recorder support