skip to content
Alvin Lucillo

Failfast and an introspection

/ 2 min read

💻 Tech

In Go, failfast is a flag that you can pass to the go test command. It will stop the test execution after the first failure which is helpful if you don’t have to wait for the entire test suite to finish. Usually, this is used in CI/CD pipelines.

For example:

go test ./cmd/... -failfast

φ Philosophy

Imagine you’re a villager in a busy community in a valley. Your days are filled with day-to-day activities, some pedestrian, others exhilarating. You can easily visualize what your life will be like in the years to come; heck, even your epitaph. That’s your “earthly” part of life. It’s structured, somewhat predictable, and linear. Then there’s a place at the summit of a mountain near your village where you can see the vastness of the world. You can see how insignificant you are considering the world you live in and the universe. That’s your “ethereal” part of life. Focusing too much on the “earthly” side makes you feel as if life has dried up out of you, while spending too much time on the “ethereal” side makes you out of touch with reality. It’s a balancing act between those sides just like how our bodies balance the joy and pain scale.