Skip to content

Replace chrono and humantime with jiff - #3215

Open
palfrey wants to merge 1 commit into
TraceMachina:mainfrom
palfrey:replace-chrono-and-humantime
Open

palfrey wants to merge 1 commit into
TraceMachina:mainfrom
palfrey:replace-chrono-and-humantime

Conversation

@palfrey

@palfrey palfrey commented Nov 17, 2026

Copy link
Copy Markdown
Member

What and why

chrono and humantime are unmaintained. This PR replaces both of them with jiff which was noted by the maintainer of both of those as a good alternative.

How was this verified?

Mostly the test suite. Jiff does things in a few different ways, and there are some things (e.g. parsing of "1 year" ambiguities) that it does differently, but those are all cases where the exact behaviour shouldn't be relied on IMHO.

Risk

Low-ish. Jiff may well have some subtleties we don't test for, but v.s. using a pair of unmaintained dependencies, it's an acceptable trade-off.

AI assistance

None

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nativelink Ready Ready Preview Nov 17, 2026 4:07pm UTC
nativelink-aidm Ready Ready Preview Nov 17, 2026 4:07pm UTC

Request Review

@MarcusSorealheis

Copy link
Copy Markdown
Member

I was thinking about replacing chrono the other day and even forgot to write it down. Thank you.

@github-actions

Copy link
Copy Markdown
Contributor

Build results for this fork PR at e1234f68fe10:

Job Result Links
pull-request Passed Open the build · check run

Fork PRs cannot stream build events, so a trusted workflow publishes them after CI finishes and updates this comment as each job is published. Opening a build needs a Trace Machina sign-in; the check run lists the failing tests and their logs.

@palfrey
palfrey marked this pull request as ready for review November 17, 2026 16:45

This branch was successfully deployed

3 active deployments
public-ci — e1234f68 Deployed Nov 17, 2026 by palfrey via NativeLink / Linux (PR) #793
Preview – nativelink — e1234f68 Deployed Nov 17, 2026 by vercel[bot]
Preview – nativelink-aidm — e1234f68 Deployed Nov 17, 2026 by vercel[bot]
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.

2 participants