Settings

Theme

How do you spend the five minutes a build takes?

16 points by paedubucher 5 years ago · 24 comments · 1 min read


Building software or applying configuration changes (Ansible, Puppet) takes some time. If it's just a couple of seconds, you wait for it to finish. If it is a matter of hours, you do something else and check back later.

But what do you do if a build takes about five minutes? Starting another task (like programming) is hardly possible, because you don't get anything meaningful done in five minutes. Checking emails, chat messages, or the the phone either doesn't fill up the time (no new messages) or just sidetracks you (starting another task that takes longer than five minutes).

Checking some random websites or social media is also a bad idea, especially if you have a lot of those five minute builds during the day, because then it creates a habit of distraction.

How do you spend that time?

Skhalar 5 years ago

Depends on where I am.

WFH: swivel my chair to my personal computer and work on personal stuff.

Office: Google random things, take a quick walk to stretch legs, get coffee, look at phone.

kubanczyk 5 years ago

I stand up, look away from any screen, sometimes walk, and "process it all".

Meaning: observe as my thoughts flow until they slow down a bit. Regain my balance. That's all. This brings ideas, sometimes even creative ideas, without any particular effort. Occasionally the conclusion pops up that for the last two hours I missed the forest for the trees.

If I'm in the office and someone asks me what's going on I just respond "The work.", because it's kinda true.

jmercouris 5 years ago

I make sure my build doesn't take five minutes.

  • paedubucherOP 5 years ago

    I meant "build" in the broadest sense. Could also be provisioning a VM or building a docker image.

    • jmercouris 5 years ago

      I don't do any of those things. I work in a Lisp environment, incremental compilation. No need to rebuild the world! The idea that compilation needs to be a big thing is a Unix idea.

      • opwieurposiu 5 years ago

        In regards to working in a Lisp environment:

        A little girl walked into a pet shop and asked in the sweetest lisp: "Excuthe me, mithter, do you keep widdle wabbits?" As the shop keeper's heart melted, he got down on his knees to her level, asking: "Do you want a widdle white wabbit, or a thoft and fuwwwy bwack wabbit, or maybe one like this cute widdle bwown wabbit over here?" The little girl leaned forward and said: "I don't fink my pet python weally gives a thit."

        • kubanczyk 5 years ago

          A word of caution from a specialist I know to anyone who has a child. Turning "shit" into "sit" is normal even for a seven year old. But "thit" is not normal. It's an over-correction that may take quite long to disappear by itself or it may be permanent.

          • mckirk 5 years ago

            That's the most random nugget of wisdom I've encountered in some time. Thanks, I'll keep it in mind should I ever have a kid!

    • dyingkneepad 5 years ago

      Then you make sure you can update a live/running docker image without having to remake it.

  • verdverm 5 years ago

    That is not always possible. i.e. installing CUDA drivers in your pipeline, running tests, dependency fetching

    • shoo 5 years ago

      and if thy cuda driver installation slow thee, cut it off, and cast it from thy pipeline: for it is profitable for thee that one of thy build dependencies should perish, and not that thy whole pipeline should be cast into the mire.

rurban 5 years ago

Depends on your builds. Usually I work on parallel branches, if the time is longer than 30min.

A good strategy is to have fast and separate thorough/longer checks. My smoke builds try to be faster than 3min, the thorough builds, like for a PR or master update, could last 30min, but on some projects, esp with windows, about 2hrs.

Then it's good to switch to another branch to do some useful work.

pestatije 5 years ago

I relax my eyes by looking at a distance (eg. out of the window). It'd be better to close them, but there is no easy way to tell when the build has finished.

  • yorwba 5 years ago

    I use espeak-ng (open-source text-to-speech engine) to tell me (literally) when a long-running task is done.

wodenokoto 5 years ago

What I should do: Go out and make some coffee or something else.

What I ended up doing: starring at the progress.

Raed667 5 years ago

Work on something else, until I forgot that I started a build (that could take up to 40min) and then go back to it when/if I randomly remember what i was working on.

  • mxxx 5 years ago

    Oh man, this x 100. So often I come back an hour later and realise I’d completely forgotten what I was doing.

ipaddr 5 years ago

I have a computer with another task ready to be completed and move to that. That task could be a next move in a game, work related, chore. At the end of the day you've managed so get so much more done.

benzesandbetter 5 years ago

Answer emails and Slack messages, review PRs from colleagues, read books/articles, write docs, check the markets, walk my dogs...

ElectricMind 5 years ago

I know I am forgetting something. Oh wait- the build. brb lol

joshxyz 5 years ago

Read hn lol, the ask / show / new sections particularly

FiatLuxDave 5 years ago

Sword-fighting on desk chairs, obviously:

https://xkcd.com/303/

soulchild37 5 years ago

Coming to HN lol

paedubucherOP 5 years ago

Thanks for all the replies, which are hardly satisfying for my employer.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection