10 years ago, someone wrote a test for Servo that included an expiry in 2026

https://mastodon.social/@jdm_/116429380667467307

Article

  • A Servo test written ~2016 hardcoded a date expected to be safely in the future.
  • That date is now 2026, causing the test to fail.
  • PR to fix it reveals cascading date errors: weekdays also wrong in the replacement.
  • Highlights fragility of hardcoded dates in long-lived test suites.

Discussion

  • Commenters recommend deterministic time bubbles (like Go’s testing/synctest) over hardcoded dates.
  • One commenter notes the idea of intentional expiry dates as forced code review is appealing.
  • SAML certificate story: similar 10-year time bomb now 7 years in, dreading expiry.
  • Y2K parallel drawn — 1980s code authors never imagined systems surviving that long.

Discuss on HN


Type Link
Added Apr 21, 2026
Modified Apr 21, 2026