Skip to content

alertmanager: support event recorder - #2707

Merged
Haleygo merged 2 commits into
masterfrom
alertmanager-event-recorder
Nov 26, 2026
Merged

Haleygo merged 2 commits into
masterfrom
alertmanager-event-recorder

Conversation

@AndrewChubatiuk

Copy link
Copy Markdown
Contributor

adding alertmanager event recorder support

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread docs/CHANGELOG.md Resolved
@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from cf000c3 to 3707805 Compare October 7, 2026 07:41

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch 2 times, most recently from 9a00ca9 to ff30fad Compare October 7, 2026 08:01
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from ff30fad to 39f37af Compare October 7, 2026 08:03

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread docs/CHANGELOG.md Resolved
@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 39f37af to 13122d0 Compare October 7, 2026 08:18
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 13122d0 to a5a8b38 Compare October 7, 2026 09:26
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from a5a8b38 to 3fc5193 Compare October 7, 2026 10:19
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 3fc5193 to 7feedc7 Compare October 7, 2026 10:43
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 7feedc7 to 56e09c2 Compare October 7, 2026 11:05
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 56e09c2 to 09db8b1 Compare October 7, 2026 11:24
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 09db8b1 to 51f9950 Compare October 7, 2026 13:05
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add an env var overriding this - in case image tag used is custom

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch 2 times, most recently from f0f68b1 to 13c9acb Compare October 7, 2026 13:37
@AndrewChubatiuk

Copy link
Copy Markdown
Contributor Author

@cubic-ai-dev

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@cubic-ai-dev

@AndrewChubatiuk I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 13c9acb to 7b532d7 Compare October 14, 2026 08:11
// 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}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. enable the flag for unparseable tags;
  2. 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated this as well

@AndrewChubatiuk
AndrewChubatiuk force-pushed the alertmanager-event-recorder branch from 85a8f18 to 1e0f850 Compare November 23, 2026 08:41
Comment thread docs/CHANGELOG.md Resolved
@Haleygo
Haleygo merged commit 9c288a0 into master Nov 26, 2026
7 checks passed
@Haleygo
Haleygo deleted the alertmanager-event-recorder branch November 26, 2026 06:23
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.

3 participants