Elektrine lite

← Feed

@jdm_@mastodon.social

Post #1380434

2026-04-19 04:02 UTC

10 years ago, someone wrote a unit test for @servo that included a cookie expiry date of April 18, 2026. At that time Servo was only 3 years old and I'm sure 10 years in the future sounded like a long time! Well, we're still here, and now our CI is broken until I can get another maintainer to merge https://github.com/servo/servo/pull/44341 .

Replies (13)

  • @Signez@mastodon.social 2026-04-19 07:54

    @jdm_ @servo let's hope medecine and society improve enough that you'll be fixing this test happily in a century!

    Open ##1434194

  • @hywan@floss.social 2026-04-19 08:14

    @jdm_ @servo 100 years later: “100 years ago, someone updated a unit test for @servo that included a cookie…” 😁

    Open ##1434195

  • @gsuberland@chaos.social 2026-04-19 09:33

    @jdm_ @servo would it not make more sense to get the current year from the system time, add 10, and inject that, so it's robustly and permanently in the future?

    Open ##1434197

  • @msmelo@bolha.one 2026-04-19 10:36

    @jdm_ @servo let's make more 10 years :Capyblob_Peek:

    Open ##1434209

  • @robinsyl@meow.social 2026-04-19 11:26

    @jdm_ now I feel less stupid about having caused the same problem in my employer's codebase, but I solved it by making it always "current year + 10"

    Open ##1434210

  • @betabug@mastodon.sdf.org 2026-04-19 11:55

    @jdm_ @servo Been there, fixed that kind of tests ... multiple times. Also the ones that break only when the end of the month falls on a Friday. Or when the tests are run within 30min before midnight on a Tuesday. Or when the current week spans two months and the tests that checks "something this week" and "something next week" find a different month. Etc. etc.

    Open ##1434211

  • @agturcz@circumstances.run 2026-04-19 14:02

    @jdm_ @servo I have comments. No, wait, I have COMMENTS.

    Open ##1434216

  • @cks@mastodon.social 2026-04-19 20:09

    @jdm_ @whitequark Us, more than ten years ago: "We need a private TLS certificate authority root certificate for our VPN servers, surely the default lifetime of ten years is good enough." Us, ten years after generating the certificate: "Who could have possibly foreseen that a computer science department would still be here ten years later." (Okay, 'and using the same VPN systems'. Our new CA root certificates have a much longer lifetime, although not 100 years for TLS reasons.)

    Open ##1434217

  • @jdm_@mastodon.social and thats why all my test stuff always expires at 9999

    Open ##1434218

  • @valenting@fosstodon.org 2026-04-20 17:21

    @jdm_ @servo if cookies are still a thing in 100 years then we have failed 🫠

    Open ##1469534

  • @vriesk@hachyderm.io 2026-04-23 09:24

    @jdm_ @servo Fun fact: I like to set some absurd dates in many unit tests, and then discover that the particular time library doesn't like them. Like, I want a geological eon (defined as minimum 500M years)! I want this to trigger when Butlerian Jihad starts! .. and then get a no, because a year can only have 4 decimal digits, or some amount of nano/microseconds 64-bit integer or whatnot overflows.

    Open ##1576651

  • @ellis@transfem.social 2026-04-19 10:42

    @jdm_@mastodon.social @servo@floss.social 100 years in the future sounds like a long time too. ​:neocat_laugh:​

    Open ##1696723

  • @mmu_man@m.g3l.org 2026-04-27 11:34

    @jdm_ @servo well, the test worked I guess 😄

    Open ##1868804