René's URL Explorer Experiment


Title: fix(webapp): convert epoch ms to BigInt before nanosecond multiplication by oziass · Pull Request #5027 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(webapp): convert epoch ms to BigInt before nanosecond multiplication by oziass · Pull Request #5027 · triggerdotdev/trigger.dev

X Title: fix(webapp): convert epoch ms to BigInt before nanosecond multiplication by oziass · Pull Request #5027 · triggerdotdev/trigger.dev

Description: Multiplying epoch milliseconds by 1_000_000 as a Number exceeds Number.MAX_SAFE_INTEGER, so the product is rounded to a multiple of 256 before it is converted to BigInt. Span start times and durations could therefore be off by up to a few hundred nanoseconds. This updates getNowInNanoseconds and calculateDurationFromStart in common.server.ts to use convertDateToNanoseconds, and converts milliseconds to BigInt before multiplying by BigInt(1_000_000) in index.server.ts and runEngineHandlers.server.ts. Fixes #3292 /claim #3292 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Added colocated unit tests in apps/webapp/app/v3/eventRepository/common.server.test.ts covering exact epoch conversion, a real-clock nanosecond assertion, duration precision, and minimum duration. No fake timers are used. All four tests pass with NODE_ENV=test node ../../node_modules/vitest/vitest.mjs run app/v3/eventRepository/common.server.test.ts from apps/webapp. The test directory is included in Vitest discovery. The updated fork branch is oziass:job_42 at 33f68e7456275e66cee691c943e964f74f3ddfed. Changelog Fixed floating-point precision loss when converting millisecond timestamps to nanoseconds in the webapp event repository and run engine handlers. Screenshots N/A

Open Graph Description: Multiplying epoch milliseconds by 1_000_000 as a Number exceeds Number.MAX_SAFE_INTEGER, so the product is rounded to a multiple of 256 before it is converted to BigInt. Span start times and durati...

X Description: Multiplying epoch milliseconds by 1_000_000 as a Number exceeds Number.MAX_SAFE_INTEGER, so the product is rounded to a multiple of 256 before it is converted to BigInt. Span start times and durati...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/5027

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e0af337e-e239-152a-cdbf-1f58d3764584
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE054:1836D:52746:77D0D:6AFB0A1D
html-safe-nonce620ade4fff81c315c560ab3c65b0d8398833abe0918b8549c5a52afda13d9e38
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDU0OjE4MzZEOjUyNzQ2Ojc3RDBEOjZBRkIwQTFEIiwidmlzaXRvcl9pZCI6IjE2ODEwNDE3MzE3NzM3MjkzMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace8e5653600ea2856fb543c905e984184b7efff9ef5bb524f29456b0a7356bf1e
hovercard-subject-tagpull_request:4856652917
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/5027/files
twitter:imagehttps://avatars.githubusercontent.com/u/205464914?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/205464914?s=400&v=4
og:image:altMultiplying epoch milliseconds by 1_000_000 as a Number exceeds Number.MAX_SAFE_INTEGER, so the product is rounded to a multiple of 256 before it is converted to BigInt. Span start times and durati...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/5027/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F5027%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F5027%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
oziasshttps://github.com/oziass
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
oziass:job_42https://github.com/oziass/trigger.dev/tree/job_42
Conversation 7 https://github.com/triggerdotdev/trigger.dev/pull/5027
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/5027/commits
Checks 2 https://github.com/triggerdotdev/trigger.dev/pull/5027/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/5027/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
fix(webapp): convert epoch ms to BigInt before nanosecond multiplication https://github.com/triggerdotdev/trigger.dev/pull/5027/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/5027/files
d68ba3d fix(webapp): convert epoch ms to BigInt before nanosecond multiplication oziass Oct 14, 2026 https://github.com/triggerdotdev/trigger.dev/pull/5027/commits/d68ba3db55b9df6ccb913dbd742f25e1496f1915
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/5027/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
common.server.ts https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-eac5324b65ed27cd30c9b9ff9bed3a87ce2e3b646e69b726c4503f24cd0c26d8
index.server.ts https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-7132a9c1003446f1e81f0589c24b40219366e6b6652b4e11789bae24ecfd6eb6
runEngineHandlers.server.ts https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-445ae0a10c4158c5fcbabaa7bf3eb4761c9c9cc1ebc56c3b1aa0f49d5cc11d9f
eventRepositoryCommon.test.ts https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-c27d2bcd54b90f0589421f961b2ed5a7c052737abecb8a96a449bfa78b8c6651
apps/webapp/app/v3/eventRepository/common.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-eac5324b65ed27cd30c9b9ff9bed3a87ce2e3b646e69b726c4503f24cd0c26d8
View file https://github.com/oziass/trigger.dev/blob/d68ba3db55b9df6ccb913dbd742f25e1496f1915/apps/webapp/app/v3/eventRepository/common.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/5027/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-eac5324b65ed27cd30c9b9ff9bed3a87ce2e3b646e69b726c4503f24cd0c26d8
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-eac5324b65ed27cd30c9b9ff9bed3a87ce2e3b646e69b726c4503f24cd0c26d8
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-eac5324b65ed27cd30c9b9ff9bed3a87ce2e3b646e69b726c4503f24cd0c26d8
apps/webapp/app/v3/eventRepository/index.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-7132a9c1003446f1e81f0589c24b40219366e6b6652b4e11789bae24ecfd6eb6
View file https://github.com/oziass/trigger.dev/blob/d68ba3db55b9df6ccb913dbd742f25e1496f1915/apps/webapp/app/v3/eventRepository/index.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/5027/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-7132a9c1003446f1e81f0589c24b40219366e6b6652b4e11789bae24ecfd6eb6
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-7132a9c1003446f1e81f0589c24b40219366e6b6652b4e11789bae24ecfd6eb6
apps/webapp/app/v3/runEngineHandlers.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-445ae0a10c4158c5fcbabaa7bf3eb4761c9c9cc1ebc56c3b1aa0f49d5cc11d9f
View file https://github.com/oziass/trigger.dev/blob/d68ba3db55b9df6ccb913dbd742f25e1496f1915/apps/webapp/app/v3/runEngineHandlers.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/5027/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-445ae0a10c4158c5fcbabaa7bf3eb4761c9c9cc1ebc56c3b1aa0f49d5cc11d9f
https://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-445ae0a10c4158c5fcbabaa7bf3eb4761c9c9cc1ebc56c3b1aa0f49d5cc11d9f
apps/webapp/test/eventRepositoryCommon.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/5027/files#diff-c27d2bcd54b90f0589421f961b2ed5a7c052737abecb8a96a449bfa78b8c6651
View file https://github.com/oziass/trigger.dev/blob/d68ba3db55b9df6ccb913dbd742f25e1496f1915/apps/webapp/test/eventRepositoryCommon.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/5027/{{ revealButtonHref }}
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
Oct 14, 2026https://github.com/triggerdotdev/trigger.dev/pull/5027/files#r4269759056
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/5027
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
Oct 14, 2026https://github.com/triggerdotdev/trigger.dev/pull/5027/files#r4269758889
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/5027
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/5027/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.