ci: Constrain parallel build jobs
The default `_NPROCESSORS_ONLN` heuristic we have isn't cgroups aware. So it thinks it has e.g. 40 CPUs when running in a k8s pod. This can then blow through our allocated resource limits. Declare some modest amount of RAM and CPU resources and override `make` parallelism. This matches what rpm-ostree now does in https://github.com/coreos/rpm-ostree/pull/2155.
This commit is contained in:
1 parent
4752dd02cf
commit
92284f9b81
2 files changed
+8
-6
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ pkg_upgrade() {
|
||||
}
|
||||
|
||||
make() {
|
||||
/usr/bin/make -j $(getconf _NPROCESSORS_ONLN) "$@"
|
||||
/usr/bin/make -j ${MAKE_JOBS:-$(getconf _NPROCESSORS_ONLN)} "$@"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in new issue
Block a user