scripts/update: note some limitations of PARALLELISM
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
#!nix-shell -i bash -p findutils -p git -p nix-update
|
#!nix-shell -i bash -p findutils -p git -p nix-update
|
||||||
|
|
||||||
# each update job has to do an entire nix eval, which can be memory intensive; be careful when tuning this
|
# each update job has to do an entire nix eval, which can be memory intensive; be careful when tuning this
|
||||||
|
# N.B.: not all update jobs are actually independent! naive parallelism like this *will* result in
|
||||||
|
# failed/partial updates, e.g.:
|
||||||
|
# 1. `sane.nixpkgs-bootstrap.master` is being updated: this breaks eval of _all_ other attributes.
|
||||||
|
# 2. `sane.otherPackage` is being updated: its updateScript fails to eval `sane.otherPackage.src`,
|
||||||
|
# however this would eval if job 1 and 2 were serialized.
|
||||||
|
#
|
||||||
|
# TODO: perform parallel updates in some way that the update scripts don't interfere with eachother.
|
||||||
PARALLELISM=8
|
PARALLELISM=8
|
||||||
SELF_PATH=$PWD/$0
|
SELF_PATH=$PWD/$0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user