File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,9 @@ def nix_eval_config(
377
377
haltOnFailure = True ,
378
378
),
379
379
)
380
+ drv_gcroots_dir = util .Interpolate (
381
+ "/nix/var/nix/gcroots/per-user/buildbot-worker/%(prop:project)s/drvs/" ,
382
+ )
380
383
381
384
factory .addStep (
382
385
NixEvalCommand (
@@ -393,8 +396,7 @@ def nix_eval_config(
393
396
"accept-flake-config" ,
394
397
"true" ,
395
398
"--gc-roots-dir" ,
396
- # FIXME: don't hardcode this
397
- "/var/lib/buildbot-worker/gcroot" ,
399
+ drv_gcroots_dir ,
398
400
"--force-recurse" ,
399
401
"--check-cache-status" ,
400
402
"--flake" ,
@@ -405,6 +407,17 @@ def nix_eval_config(
405
407
),
406
408
)
407
409
410
+ factory .addStep (
411
+ steps .ShellCommand (
412
+ name = "Cleanup drv paths" ,
413
+ command = [
414
+ "rm" ,
415
+ "-rf" ,
416
+ drv_gcroots_dir ,
417
+ ],
418
+ ),
419
+ )
420
+
408
421
return util .BuilderConfig (
409
422
name = f"{ project .name } /nix-eval" ,
410
423
workernames = worker_names ,
Original file line number Diff line number Diff line change 234
234
} ;
235
235
} ;
236
236
237
- # Allow buildbot-master to write to this directory
238
- systemd . tmpfiles . rules = lib . optional ( cfg . outputsPath != null )
237
+ systemd . tmpfiles . rules = [
238
+ # delete legacy gcroot location, can be dropped after 2024-06-01
239
+ "R /var/lib/buildbot-worker/gcroot - - - - -"
240
+ ] ++ lib . optional ( cfg . outputsPath != null )
241
+ # Allow buildbot-master to write to this directory
239
242
"d ${ cfg . outputsPath } 0755 buildbot buildbot - -" ;
240
243
} ;
241
244
}
You can’t perform that action at this time.
0 commit comments