Skip to content

[CRE] Engine: fix a bug in eventAge calculation#21985

Merged
bolekk merged 1 commit intodevelopfrom
engine_age_check
Apr 14, 2026
Merged

[CRE] Engine: fix a bug in eventAge calculation#21985
bolekk merged 1 commit intodevelopfrom
engine_age_check

Conversation

@bolekk
Copy link
Copy Markdown
Contributor

@bolekk bolekk commented Apr 13, 2026

Incorrect subtraction leading to negative numbers.

@bolekk bolekk requested a review from a team as a code owner April 13, 2026 03:04
@github-actions
Copy link
Copy Markdown
Contributor

👋 bolekk, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 13, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link
Copy Markdown

@bolekk bolekk enabled auto-merge April 14, 2026 00:50
return
}
eventAge := queueHead.timestamp.Sub(e.cfg.Clock.Now())
eventAge := e.cfg.Clock.Now().Sub(queueHead.timestamp)
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.

Since?

Suggested change
eventAge := e.cfg.Clock.Now().Sub(queueHead.timestamp)
eventAge := e.cfg.Clock.Since(queueHead.timestamp)

@bolekk bolekk added this pull request to the merge queue Apr 14, 2026
Merged via the queue into develop with commit ae52d5a Apr 14, 2026
201 of 205 checks passed
@bolekk bolekk deleted the engine_age_check branch April 14, 2026 01:36
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