Skip to content

Feature flag BaseTrigger retransmit + Add Metrics#1936

Merged
DylanTinianov merged 10 commits intomainfrom
base-trigger-retry-config
Mar 30, 2026
Merged

Feature flag BaseTrigger retransmit + Add Metrics#1936
DylanTinianov merged 10 commits intomainfrom
base-trigger-retry-config

Conversation

@DylanTinianov
Copy link
Copy Markdown
Contributor

@DylanTinianov DylanTinianov commented Mar 27, 2026

Adds a feature flag for enabling base trigger to retransmit events.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2026

⚠️ API Diff Results - github.com/smartcontractkit/chainlink-common

⚠️ Breaking Changes (2)

pkg/capabilities.BaseTriggerMetrics (2)
  • IncAckError — ➕ Added

  • IncAckMemoryOutcome — ➕ Added

✅ Compatible Changes (6)

pkg/capabilities (2)
  • NewBaseTriggerCapabilityWithCRESettings — ➕ Added

  • ResolveBaseTriggerRetryInterval — ➕ Added

pkg/capabilities.(*BaseTriggerBeholderMetrics) (2)
  • IncAckError — ➕ Added

  • IncAckMemoryOutcome — ➕ Added

pkg/settings/cresettings.Schema (2)
  • BaseTriggerRetransmitEnabled — ➕ Added

  • BaseTriggerRetryInterval — ➕ Added


📄 View full apidiff report

@DylanTinianov DylanTinianov marked this pull request as ready for review March 30, 2026 14:12
@DylanTinianov DylanTinianov requested a review from a team as a code owner March 30, 2026 14:12
@DylanTinianov DylanTinianov changed the title Feature flag BaseTrigger retransmit Feature flag BaseTrigger retransmit in CRE Settings Mar 30, 2026
@DylanTinianov DylanTinianov enabled auto-merge March 30, 2026 14:19
Comment thread pkg/settings/cresettings/defaults.json Outdated
@DylanTinianov DylanTinianov changed the title Feature flag BaseTrigger retransmit in CRE Settings Feature flag BaseTrigger retransmit + Add Metrics Mar 30, 2026
b.metrics.IncAckError("store_delete_failed")
return err
}
if found {
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.

sorry, why not just add found to Infow? I.e., Infow(,..., "found", found).

case hadTriggerBucket && !hadEventKey:
b.lggr.Infow("base trigger ACK: event id not in in-memory pending map for trigger (may exist only in store; reconciling)",
"capabilityID", b.capabilityId, "triggerID", triggerId, "eventID", eventId)
case !hadTriggerBucket:
Copy link
Copy Markdown
Contributor

@pavel-raykov pavel-raykov Mar 30, 2026

Choose a reason for hiding this comment

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

similarly, here - can't you just output "hadTriggerBucket", hadTriggerBucket (and other params) in the Infow params?

@DylanTinianov DylanTinianov added this pull request to the merge queue Mar 30, 2026
@DylanTinianov DylanTinianov removed this pull request from the merge queue due to a manual request Mar 30, 2026
@DylanTinianov DylanTinianov added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit d23fb50 Mar 30, 2026
30 of 32 checks passed
@DylanTinianov DylanTinianov deleted the base-trigger-retry-config branch March 30, 2026 17:02
@bolekk
Copy link
Copy Markdown
Contributor

bolekk commented Mar 30, 2026

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.

4 participants