-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: prevent nanosecond timestamp overflow in event repository #4499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -240,7 +240,7 @@ async function recordRunEvent( | |
| runId: foundRun.friendlyId, | ||
| ...attributes, | ||
| }, | ||
| startTime: BigInt((startTime?.getTime() ?? Date.now()) * 1_000_000), | ||
| startTime: BigInt(startTime?.getTime() ?? Date.now()) * BigInt(1_000_000), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Fix changes stored timestamp values; verify no downstream equality/dedup depends on old rounded values Timestamps produced by Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| ...optionsRest, | ||
| }); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Server-only change ships without a release-notes entry
This change only touches server code under
apps/webapp/but no.server-changes/note was added (seeCONTRIBUTING.mdandAGENTS.md), so the fix will be missing from the user-visible release notes.Impact: Users reading the release notes won't see that the timestamp accuracy issue was fixed.
Repository rule: server-only PRs require a .server-changes entry
CONTRIBUTING.mdstates: "If your PR only changes server components (apps/webapp/,apps/supervisor/, etc.) with no package changes, add a.server-changes/file so the change appears in release notes." The diff modifies onlyapps/webapp/app/v3/eventRepository/common.server.ts,apps/webapp/app/v3/eventRepository/index.server.tsandapps/webapp/app/v3/runEngineHandlers.server.ts, and the branch adds no file under.server-changes/. The file needs frontmatterarea: webappandtype: fixplus a one-line user-facing description.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.