this post was submitted on 24 Jan 2024
1023 points (98.2% liked)

Programmer Humor

19660 readers
413 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
1023
Bug Fixing (programming.dev)
submitted 10 months ago by JPDev to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 10 months ago (4 children)
[–] [email protected] 11 points 10 months ago (1 children)
[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

Every sufficiently complicated system is indistinguishable from being alive, and living beings need some warm-up time.

[–] CodeMonkey 7 points 10 months ago* (last edited 10 months ago)

All the time. Causes include:

  • Test depends on an external system (database, package manager)
  • Race conditions
  • Failing the test cleared bad state (test expects test data not to be in the system and clears it when it exits)
  • Failing test set up unknown prerequisite (Build 2 tests depends on changes in Build 1 but build system built them out of order)
  • External forces messing with the test runner (test machine going to sleep or running out of resources)

We call those "flaky tests" and only fail a build if a given test cannot pass after 2 retries. (We also flag the test runs for manual review)

[–] [email protected] 4 points 10 months ago
[–] [email protected] 1 points 10 months ago

Not with code, but i write a lot of LaTeX and that often starts working on second compilation