News for hackers. Stuff that matters.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by tlarkworthy on Sunday April 19, 2020 @05:51AM (#22914684)
Why don't we run it on every change?
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by eska on Sunday April 19, 2020 @07:10AM (#22914995)
It's a bandwith vs latency issue.

Imagine you make 5 commits in 4 hours. You now have 5 builds queued up and 20 hours of latency. So one would probably prefer to only build the last commit, and maybe queue the older commits up for later. But if you make another change then you'd need to pause the build of the older commit, or you'd be at up to 8 hours of latency instead of 4..

Re:If a Build Takes 4 Hours, Run It Every 4 Hours by gpvos on Sunday April 19, 2020 @11:50AM (#22916654)
If you do them in parallel, your latency is still 4 hours. Okay, it's not cheap.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by bryanrasmussen on Sunday April 19, 2020 @05:58AM (#22914702)
If a build takes 4 hours it argues that a build on that system is a pretty expensive operation, unless changes are very infrequent, which in most systems is not the case, a build run on every change would seem to be highly problematic.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by tlarkworthy on Sunday April 19, 2020 @02:47PM (#22917899)
Bingo it's expensive, which is why they set it to every 24 hours.

Also coz they don't want to add the queuing logic, so it takes 4 hours to run is an approximation. Also it messes with other systems so they prefer to run it overnight. This blog doesn't solve a real problem.

Re:If a Build Takes 4 Hours, Run It Every 4 Hours by royosherove on Monday April 20, 2020 @09:24AM (#22923606)
Author here. It's literally the first line in the blog post. And it links to this blog post about static environments: https://pipelinedriven.org/article/the-four-biggest-issues-w...
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by tlarkworthy on Tuesday April 21, 2020 @01:53PM (#22937419)
That doesn't answer anything. Either you: minimize latency (run every change independent of build time) or run to minimize engineering (24 hours). I dunno why you couple build time to a static period, it does not make sense to me.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by lonelappde on Sunday April 19, 2020 @06:40PM (#22919394)
Builds are cheap compared to running in production. Stop being a cheapskate.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by bryanrasmussen on Monday April 20, 2020 @07:08AM (#22922825)
I don't understand your running in production comment in this context, nor actually your stop being a cheapskate aimed at me.
Re:If a Build Takes 4 Hours, Run It Every 4 Hours by royosherove on Sunday April 19, 2020 @06:22AM (#22914783)
That would be ideal, but many organizations don't yet have that capacity for large builds/deploys (yet).