(just an fyi) the node table in the drone database is deprecated and will be removed before the final release.
So if I want to increase parallelism now I have to add rows to
nodes, and in the future I should run more agents?
agents table will be dropped too?
Sorry, there is no guaranteed ordering for matrix parameters, which means there is no way to guarantee a specific axis in a matrix will execute before all others.
So I figured out a workaround… and then decided not to use it. For future readers: the workaround is to use
sleep. Small example:
- flock -x /go/src/lock make init
- sleep 5
- flock -s /go/src/lock make test
INIT: 1, …
sleep is required so init step starts before build step,
flock then makes sure it finishes before build starts.
I decided not to use because in my case
make init downloaded dependencies which are then built by different Go versions in different matrix configurations, and download time is much less than build time (due to cgo).