s 2 buildbot: add auto-gc
This commit is contained in:
parent
8a88dbe173
commit
5d98f98b8d
@ -7,6 +7,11 @@
|
|||||||
|
|
||||||
# TODO for all users schedule a build for fast tests
|
# TODO for all users schedule a build for fast tests
|
||||||
{
|
{
|
||||||
|
# due to the fact that we actually build stuff on the box via the daemon,
|
||||||
|
# /nix/store should be cleaned up automatically as well
|
||||||
|
nix.gc.automatic = true;
|
||||||
|
nix.gc.dates = "05:23";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 8010 9989 ];
|
networking.firewall.allowedTCPPorts = [ 8010 9989 ];
|
||||||
krebs.buildbot.master = let
|
krebs.buildbot.master = let
|
||||||
stockholm-mirror-url = http://cgit.wolf/stockholm-mirror ;
|
stockholm-mirror-url = http://cgit.wolf/stockholm-mirror ;
|
||||||
@ -27,7 +32,7 @@
|
|||||||
force-scheduler = ''
|
force-scheduler = ''
|
||||||
sched.append(schedulers.ForceScheduler(
|
sched.append(schedulers.ForceScheduler(
|
||||||
name="force",
|
name="force",
|
||||||
builderNames=["full-tests","fast-tests"]))
|
builderNames=["full-tests","fast-tests","build-local"]))
|
||||||
'';
|
'';
|
||||||
fast-tests-scheduler = ''
|
fast-tests-scheduler = ''
|
||||||
# test everything real quick
|
# test everything real quick
|
||||||
@ -35,7 +40,7 @@
|
|||||||
## all branches
|
## all branches
|
||||||
change_filter=util.ChangeFilter(branch_re=".*"),
|
change_filter=util.ChangeFilter(branch_re=".*"),
|
||||||
# treeStableTimer=10,
|
# treeStableTimer=10,
|
||||||
name="fast-test-all-branches",
|
name="fast-all-branches",
|
||||||
builderNames=["fast-tests"]))
|
builderNames=["fast-tests"]))
|
||||||
'';
|
'';
|
||||||
test-cac-infest-master = ''
|
test-cac-infest-master = ''
|
||||||
@ -51,8 +56,8 @@
|
|||||||
change_filter=util.ChangeFilter(branch="master"),
|
change_filter=util.ChangeFilter(branch="master"),
|
||||||
fileIsImportant=shared_files,
|
fileIsImportant=shared_files,
|
||||||
treeStableTimer=60*60, # master was stable for the last hour
|
treeStableTimer=60*60, # master was stable for the last hour
|
||||||
name="full-master-test",
|
name="full-master",
|
||||||
builderNames=["full-tests"]))
|
builderNames=["full-tests","build-local"]))
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
builder_pre = ''
|
builder_pre = ''
|
||||||
@ -110,6 +115,26 @@
|
|||||||
slavenames=slavenames,
|
slavenames=slavenames,
|
||||||
factory=f))
|
factory=f))
|
||||||
'';
|
'';
|
||||||
|
# this build will try to build against local nixpkgs
|
||||||
|
# TODO change to do a 'local' populate and use the retrieved nixpkgs
|
||||||
|
build-local = ''
|
||||||
|
f = util.BuildFactory()
|
||||||
|
f.addStep(grab_repo)
|
||||||
|
|
||||||
|
addShell(f,name="build-test-all-modules",env=env,
|
||||||
|
command=nixshell + \
|
||||||
|
["touch retiolum.rsa_key.priv; \
|
||||||
|
nix-build \
|
||||||
|
--show-trace --no-out-link \
|
||||||
|
-I nixos-config=./shared/1systems/test-all-krebs-modules.nix \
|
||||||
|
-I secrets=. \
|
||||||
|
-A config.system.build.toplevel"]
|
||||||
|
)
|
||||||
|
|
||||||
|
bu.append(util.BuilderConfig(name="build-local",
|
||||||
|
slavenames=slavenames,
|
||||||
|
factory=f))
|
||||||
|
'';
|
||||||
slow-tests = ''
|
slow-tests = ''
|
||||||
s = util.BuildFactory()
|
s = util.BuildFactory()
|
||||||
s.addStep(grab_repo)
|
s.addStep(grab_repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user