2928: Software Testing Day

Explain xkcd: It's 'cause you're dumb.
(Redirected from 2928)
Jump to: navigation, search
Software Testing Day
The company tried to document how often employees were celebrating Software Testing Day, but their recordkeeping system kept mysteriously crashing.
Title text: The company tried to document how often employees were celebrating Software Testing Day, but their recordkeeping system kept mysteriously crashing.

Explanation[edit]

Ambox notice.png This explanation may be incomplete or incorrect: Created by a NEGATIVE ONCE BOOKED EMPLOYEE, BEING PAID EVERY -1 MONTHS - Please change this comment when editing this page. Do NOT delete this tag too soon.
If you can address this issue, please edit the page! Thanks.

Quality Assurance (QA) engineers are responsible for ensuring the quality of some software product through the use of testing. This process often involves entering bizarre and/or nonsense inputs in an attempt to break the software. Cueball, a QA engineer in this case, expresses concern that the scheduling system doesn't crash. This could either be because as a QA engineer he is concerned about crashes in general, or that as a system used by QA engineers it likely has a lot of weird/invalid values that could cause a crash.

For example, here it seems that Software Testing Day, a day likely celebrated by QA engineers, takes place every −1 years on January 0th at 25:71 PM. That statement is nonsensical in the following ways:

  • The interval between different events is a scalar, so a negative value like “every −1 years” does not make sense.
  • The first day of the month is the 1st, not the 0th.
  • There are only 24 hours in a day, so “25” is too large.
    • In addition, the “PM” suggests that it is a 12-hour time, so the expected range of values for the hour is 1 to 12, making the “25” even more nonsensical.
  • There are only 60 minutes in an hour, so “71” is too large of a minute.

All numerical values are out of range, suggesting that a QA engineer picked this date to test the scheduling system. If the date were to be made sense through under/overflow, it would result on January 1st at 14:11 (2:11 PM). Apparently, though this date is nonsensical, the QA engineers have decided to make this date a celebration day. Both "January" and "PM" are likely correct values because for QA reasons these two items tend to be selected from predetermined lists since they have an extremely limited number of possible values, it's rarely possible to enter an invalid value for either of these.

The title text suggests that the recordkeeping system used to see how often employees celebrated Software Testing Day kept crashing, possibly due to the employees celebrating on January 0th or any nonsensical values. QA engineers may have also had the opportunity to do this purposefully with inputs such as negative amounts of celebrations.

In real life, such invalid dates would be rejected or coerced to be valid dates. Failing to account for invalid dates may result in errors, sometimes catastrophic, such as the February 29, 2012 Microsoft Azure outage caused by the server trying to generate a certificate valid until February 29, 2013, a date that does not exist on non-leap years.

Treatment of invalid dates varies by the chosen programming language and date-time library. Javascript, for example, would coerce January 0th into December 31st, and 25 o’clock into 1 o’clock the following day. While there is no way to directly create a Javascript Date object using 12-hour notation (because that requires text parsing, and the validation of the text input would just result in an invalid date), the following code snippet represents how far this correction can be abused:

// In Javascript, month 0 is January
const d = new Date(2024, 0, 0, 25+12, 71);
console.log(d); // prints “Mon Jan 01 2024 14:11:00” (exact format depends on your locale)

An event happening every −1 years is equivalent to one that happens every year, but the numbers are reversed; i.e. if this year hosts the 1st Software Testing Day, next year will host the 0th Software Testing Day. This is expected to cause issues in software that assumes that the 2nd Software Testing Day will occur after the 1st Software Testing Day, an assumption that time only moves in one direction that may or may not be reasonable.

The holiday may be due to the claim of "we really can't do anything else, during this automated process", using the same sort of logic as 303: Compiling justified for the programming team. Albeit that here we explicitly learn that a failure behind the scenes will cancel the 'sanctioned' pausing/idling-away of contracted work hours, much as a notable compilation/build error would interupt the others' few minutes of office sports.

Unusual date-time notation in real life[edit]

  • Seconds usually go from 0 to 59. However, when a leap second is added, December 31st, 23:59:59 UTC is followed by 23:59:60 before starting the new year.
  • "24:00" can be used to unamiguously state the closing midnight of a given date. i.e. the same as "00:00" upon the next, but without the ambiguity as to which 'midnight' bookending of the given date it might refer to, e.g. for deadlines.
  • It can be generally used to simplify the understanding of how much time is encompassed by a period starting at a pre-midnight time and ending at a post-midnight one.
  • Japan, in particular, very occasionally uses hour numbers greater than 24 to express times past midnight but before sunrise. For example, 25:00 on a Friday is the same time as 1:00 the following Saturday. This is mainly used to express the starting times of midnight TV programming and the closing times of bars and other establishments open late at night. The hours usually go up to 27, but numbers up to 30 (6AM of the following day) are also seldom seen. It allows the timepoint to 'belong' to the normal working day that precedes it, rather than setting it prior to the normally expected start of business for the day after (especially when that involved weekends).

Transcript[edit]

[Megan and Cueball stand facing each other.]
Megan: So, do you and the other QA engineers have any fun plans for the holiday?
Cueball: Yeah, assuming the scheduling system doesn't crash.
[Caption below the panel:]
Software Testing Day is a holiday celebrated every -1 years on January 0th at 25:71 PM.


comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!

Discussion

What holiday are they referring to? In the UK we will have a long weekend due to the Early May Bank Holiday. But May Day isn't a "thing" in the USA, is it? Or should we just assume this is set in Britain? Zeimusu (talk) 13:45, 4 May 2024 (UTC)

Well, that's refering to the official STD(!) set to be on January 0th (+24hr+12hr), so I don't think it's a topical scene.
It looks like our Leftpondian friends have official nationwide 'holidays' on: New Year's Day (1/Jan), Martin Luther King, Jr, Day. (3rd Monday in January), Inauguration Day (20/Jan, every 4 years), Presidents Day (3rd Monday in February), Memorial Day (last Monday in May), Juneteenth (19/Jun), Independence Day (4/Jul), Labor Day (1st Monday in September), Columbus Day (2nd Monday in October), Veterans Day (11/Nov), Thanksgiving Day (4th Thursday in November), Christmas Day (25/Dec). And then there'll be additional state/more local days, no doubt. (And, because of labo(u)r laws, or insufficient ones, I'm given to believe that might be more of an inconvenience/inapplicability to quite a lot of workers.)
But this seems to be a highly specific 'QA'/software-testers' tradition, either within a particular company or across all such professionals. At least within the xkcd universe, which might have all kinds of other strangenesses to it that we're only seeing the vaguest outline of through these comics. 172.71.242.188 17:37, 4 May 2024 (UTC)
"May Day isn't a thing in the USA, is it?" -- Personal holiday. At my house (Maine USA) a maypole is customary (if snow allows). When I was very young (1950s California) we celebrated in kindergarten, but I think religious bigots cancelled that. --PRR (talk) 19:55, 4 May 2024 (UTC)

I exapnded the "hours on/after midnight" section a bit. Nearly put down that the 'official' day at times used to start at 6:00AM (or dawn, depending upon whether some form of consistent timekeeping or just practical astronomical cycles dominated), so that the post-midnight activities of people (very unusual, for most, but would include liturgical ceremonies) also belonged to the prior daylight cycle. And that "noon" was the "ninth hour" of the day (~3PM, give or take), before clock changes and civil practice moved it to midday. - But this really is beyond the scope of the above explanation, so mentioning it here instead. 162.158.38.91 18:09, 4 May 2024 (UTC)