2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00
Commit graph

118 commits

Author SHA1 Message Date
Mathieu Othacehe 8bd8f54315
hydra: services: Update Cuirass.
* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests): Update to 0.0.1-55.fd432b8.
2020-11-25 16:58:32 +01:00
Mathieu Othacehe 5d18f13ab3
hydra: services: Update Cuirass.
* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests): Update to 0.0.1-54.e0f97e.
2020-11-25 14:49:01 +01:00
Ludovic Courtès fd82333ab0
hydra: cleanup-cuirass-roots: Run twice a day.
* hydra/modules/sysadmin/services.scm (gc-jobs): Run
CLEANUP-CUIRASS-ROOTS twice a day.
2020-11-23 14:50:32 +01:00
Ludovic Courtès 0bf8202de8
hydra: cleanup-cuirass-roots: Remove image GC roots after two days.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[old?]:
Change to 2 days.
2020-11-09 09:18:03 +01:00
Ludovic Courtès add9906718
hydra: services: Increase cache-bypass-threshold to 50 MiB (from 10 MiB).
* hydra/modules/sysadmin/services.scm (frontend-services): Add
 #:cache-bypass-threshold and use it in 'guix-publish-configuration'.
2020-11-06 12:30:46 +01:00
Ludovic Courtès 1920a41478
hydra: services: 'frontend-services' has an #:authorized-keys parameter.
* hydra/modules/sysadmin/services.scm (guix-daemon-config): Add
 #:authorized-keys and honor it.
(frontend-services): Likewise.
2020-10-25 00:12:19 +02:00
Ludovic Courtès 4a720a03f9
hydra: cleanup-cuirass-roots: Add *.qcow2.
This is a followup to bf4e9ab303.

* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Add ".qcow2".
2020-10-25 00:12:19 +02:00
Mathieu Othacehe 7afe827e57
hydra: services: Set "binary-tarball" type.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Set "binary-tarball"
build product type.
2020-10-22 15:10:43 +02:00
Mathieu Othacehe b4c016f96b
hydra: services: Add "binary-tarball" to build products.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Add "binary-tarball"
build product.
2020-10-22 15:03:30 +02:00
Mathieu Othacehe 00b0763269
hydra: services: Fix Cuirass.
This is a follow-up of 074aff7804.

* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests): Add name.
2020-10-19 19:18:08 +02:00
Mathieu Othacehe 074aff7804
hydra: services: Update Cuirass.
* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests): Update to
revision 54.
2020-10-19 19:05:42 +02:00
Mathieu Othacehe bfbf4c8bb2
hydra: services: Add a Cuirass service.
* hydra/modules/sysadmin/services.scm (cuirass-service): New procedure.
(frontend-services): Use it.
2020-10-15 13:59:06 +02:00
Mathieu Othacehe 96d5de3335
hydra: services: Workaround libgc memory issues.
* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests)[inputs]:
Use "guile-3.0/libgc-7" instead of "guile" to workaround libgc memory issues.
2020-10-15 10:09:12 +02:00
Mathieu Othacehe bf4e9ab303
hydra: services: Change the hurd image job name.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Change hurd image job
name to "hurd-barebones.qcow2".
2020-09-29 17:12:53 +02:00
Ludovic Courtès ff7df1dc0a
hydra: cleanup-cuirass-roots: Add *-image-dir.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Add
"-image-dir" suffix.
2020-09-26 22:26:24 +02:00
Mathieu Othacehe c56767da9a
hydra: services: Enable Cuirass SQL logging.
* hydra/modules/sysadmin/services.scm (frontend-services): Enable Cuirass SQL
queries logging.
2020-09-24 11:31:22 +02:00
Ludovic Courtès 7fb3325cdc
hydra: cleanup-cuirass-roots: Remove *.iso.
This is a followup to Guix commit
0996fcc657593955845c2761d7eb0f656149fe11.

* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Add
".iso" suffix.
2020-09-20 15:11:01 +02:00
Ludovic Courtès 7fbe51143d
hydra: berlin: Define and use 'disk-space-watchdog-service-type'.
* hydra/modules/sysadmin/services.scm (disk-space-check)
(disk-space-mcron-jobs, disk-space-watchdog-service-type): New
variables.
* hydra/berlin.scm <services>: Use it.
2020-09-03 23:17:33 +02:00
Ludovic Courtès a47ab3b77e
services: cleanup-cuirass-roots: Remove roots for "genimage.cfg".
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[handle-gc-root]:
Add "genimage.cfg" since it refers to "partition.img".
2020-07-26 15:59:16 +02:00
Ludovic Courtès d4baf6ea6a
services: cleanup-cuirass-roots: Remove roots for "partition.img".
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[handle-gc-root]:
Add "partition.img".
2020-07-22 00:35:55 +02:00
Ludovic Courtès 00d4ca69d6
services: cleanup-cuirass-roots: Add more candidate file names.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[handle-gc-root]:
Add "iso-image-installer" and "guix-binary.tar.xz".
2020-07-15 15:19:00 +02:00
Ludovic Courtès fc972528d9
hydra: services: Run Goggles in a UTF-8 locale.
* hydra/modules/sysadmin/services.scm (goggles-shepherd-services): Pass
 #:environment-variables to 'make-forkexec-constructor/container'.
2020-06-27 14:42:48 +02:00
Ludovic Courtès 4b23c09a11
hydra: services: /var/log/goggles.log is rotated.
* hydra/modules/sysadmin/services.scm (%goggles-log-rotations): New variable.
(goggles-service-type): Extend ROTTLOG-SERVICE-TYPE.
2020-06-27 14:15:27 +02:00
Ludovic Courtès 3ac9bfe5a5
hydra: services: Goggles services maps /var/www/.well-known/all-logs.
* hydra/modules/sysadmin/services.scm (%goggles-irc-log-directory): New
varaible.
(%goggles-activation): Create it and chmod it.
(goggles-shepherd-services): Add it to #:mappings.
2020-06-27 14:11:31 +02:00
Ludovic Courtès 5b61819f14
hydra: services: Run Goggles index job as user "goggles".
* hydra/modules/sysadmin/services.scm (goggles-mcron-jobs): Pass #:user.
2020-06-27 12:18:18 +02:00
Ludovic Courtès 19520372a2
hydra: services: Add an mcron job to update the Goggles index.
* hydra/modules/sysadmin/services.scm (goggles-mcron-jobs): New procedure.
(goggles-service-type): Extend MCRON-SERVICE-TYPE.
2020-06-26 17:49:43 +02:00
Ludovic Courtès 2bb7289f01
hydra: services: Goggles has access to its cache directory.
* hydra/modules/sysadmin/services.scm (%goggles-cache-directory)
(%goggles-activation): New variables.
(goggles-shepherd-services): Pass #:mappings to
'make-forkexec-constructor/container'.
(goggles-service-type): Extend ACTIVATION-SERVICE-TYPE.
2020-06-26 17:37:51 +02:00
Ludovic Courtès 6d3cd42d53
hydra: services: Add Goggles service.
* hydra/modules/sysadmin/services.scm (goggles, %goggles-accounts)
(goggles-shepherd-services, goggles-service-type): New variables.
2020-06-26 15:01:26 +02:00
Mathieu Othacehe d28529b4b3
hydra: services: Add hurd-barebones-disk-image to build products.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Add
"hurd-barebones-disk-image" to "guix-master" specification build products.
2020-06-25 14:57:58 +02:00
Mathieu Othacehe 9b3918c355
services: cuirass: Set iso9660-image type.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Set iso9660-image build
output type to "ISO-9660". It will now be displayed by Cuirass in the Web
interface.
2020-06-14 13:04:50 +02:00
Mathieu Othacehe c8e4117b18
hydra: services: Add build output support to Cuirass.
Cuirass recently gained build output support. This means that it is possible
to indicate from the specifications which files from a job output should be
made available for download via the Web UI.

Use it to make ISO9660 images available for download.

* hydra/modules/sysadmin/services.scm (cuirass-specs): Add build-outputs
support.
2020-06-10 18:16:38 +02:00
Christopher Baines 9299aa53f8
hydra: services: Fix brackets in cuirass-specs.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Fix brackets.
2020-05-30 00:03:13 +01:00
Christopher Baines 9a202eabe2
hydra: services: Support selecting Cuirass specifications.
Support selecting specifications by branch, so that Bayfront can be
configured only to build master.

* hydra/modules/sysadmin/services.scm (cuirass-specs): Support
selecting specifications by branch.
(frontend-services): Add a #:branches parameter, and pass this to
cuirass-specs.
2020-05-28 20:45:51 +01:00
Ludovic Courtès 4eca21f4bd
hydra: berlin: Ensure we have 3 TiB free each day.
* hydra/modules/sysadmin/services.scm (%gc-jobs): Rename to...
(gc-jobs): ... this, and add a 'threshold' parameter.
(KiB, MiB, GiB, TiB): New variables.
(frontend-services): Add #:gc-threshold and pass it to 'gc-jobs'.
* hydra/berlin.scm (services): Pass #:gc-threshold.
2020-05-12 21:55:04 +02:00
Mathieu Othacehe 27d0f44b30
hydra: services: Add iso9660-image to cleanup-cuirass-roots.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Add
iso9660-image derivations to clean-up.

This is a follow-up of f19cf27c2b9ff92e2c0fd931ef7fde39c376adaa0..
2020-05-12 11:14:10 +02:00
Christopher Baines 56c87ce712
sysadmin/services: Make the build accounts ratio configurable.
So that bayfront can have more build accounts.

* hydra/modules/sysadmin/services.scm (guix-daemon-config): Add
 #:build-accounts-to-max-jobs-ratio as a parameter.
(frontend-services): Add #:build-accounts-to-max-jobs-ratio as a
parameter, and pass the value to guix-daemon-config.
2020-04-26 20:01:36 +01:00
Ricardo Wurmus 61656c1ff2
hydra: services: Delete all os and os-encrypted roots.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Replace
"-installed-os" and "-installed-os-encrypted" with "-os" and
"-os-encrypted".
2020-04-24 14:07:06 +02:00
Ludovic Courtès 4b01f03282
hydra: services: Add missing module to 'cleanup-cuirass-roots'.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Add (guix
derivations).
2020-04-24 12:08:37 +02:00
Ludovic Courtès aff8df6bf3
hydra: services: "cleanup-cuirass-roots" deletes roots for referrers.
* hydra/modules/sysadmin/services.scm (not-config?): New procedure.
(cleanup-cuirass-roots): Wrap gexp in 'with-extensions' and
'with-imported-modules'.
[root-target, derivation-referrers, delete-gc-root-for-derivation]: New
procedures.  Delete GC roots for the referrers of DELETED.
Arguments to 'file-system-fold' now preserve RESULT.
2020-04-24 11:55:21 +02:00
Ludovic Courtès 60aba43012
hydra: services: Accumulate the list of deleted files.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[handle-gc-root]:
Rename last argument to 'deleted'.  Cons FILE to DELETED when it's
actually deleted.
[deleted]: New variable.
Iterate over it to create "/gnu/big-stuff".
2020-04-24 10:56:29 +02:00
Ricardo Wurmus 224fedbef7
hydra/services: Remove roots for system tests and VM launch scripts.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Remove
roots ending on "-test" and "-run-vm.sh".
2020-04-23 08:10:26 +02:00
Ricardo Wurmus 8670d16e7d
hydra/services: Remove rottlog-service-type.
* hydra/modules/sysadmin/services.scm (frontend-services): Remove
rottlog-service-type as it is now included in the defaults.
2020-04-22 15:24:54 +02:00
Ricardo Wurmus 9356e3c940
hydra/services: cleanup-cuirass-roots: Collect file names.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Write
collected files to /gnu/big-stuff.
2020-04-22 15:24:16 +02:00
Ricardo Wurmus 8f484aa24c
hydra/services: cleanup-cuirass-roots: Delete more large files.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): Delete
more images and opaque archives.
2020-04-22 15:24:16 +02:00
Ricardo Wurmus 1d8c25fdf7
sysadmin/services: Use cuirass with disabled fibers tests.
* hydra/modules/sysadmin/services.scm (cuirass-without-fiber-tests):
New variable.
(frontend-services)[services]: Use it.
2020-03-06 17:30:48 +01:00
Ludovic Courtès 4a2cd81ff8
hydra: services: Remove GC roots for *-installation.
Reported by Christopher Baines <mail@cbaines.net>.

* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots):
Remove *-installation in addition to *-disk-image.
2020-02-11 16:53:47 +01:00
Ludovic Courtès 14034ebaff
hydra: services: Double the number of build accounts.
* hydra/modules/sysadmin/services.scm (guix-daemon-config): Set
'build-accounts' to 4 times MAX-JOBS.  Bayfront without offloading was
hitting its max number of build users.
2020-01-27 11:20:37 +01:00
Ludovic Courtès 398bb88128
hydra: services: Increase the TTL for Cuirass.
* hydra/modules/sysadmin/services.scm (frontend-services)[cuirass-configuration]:
Increase TTL.
2019-08-16 11:33:10 +02:00
Ludovic Courtès f45766df83
hydra: services: Keep fewer disk images, and increase GC threshold.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots)[old?]:
Change to 5 days.
(%gc-jobs): Change to 800G free per day.
2019-08-16 11:33:10 +02:00
Ludovic Courtès a314075dc0
hydra: services: Fix typo in mcron job.
* hydra/modules/sysadmin/services.scm (%gc-jobs): Add missing quote.
2019-06-17 00:23:50 +02:00
Ludovic Courtès 9304c110af
hydra: services: Add 'cleanup-cuirass-roots' job.
* hydra/modules/sysadmin/services.scm (cleanup-cuirass-roots): New
variable.
(%gc-jobs): Use it.
2019-06-16 17:58:32 +02:00
Ludovic Courtès 993d33d7e9
hydra: Enable lzip support for 'guix publish'.
* hydra/modules/sysadmin/services.scm (frontend-services)
<guix-publish-configuration>: Add 'compression' field.
* hydra/berlin.scm: Pass #:publish-workers to 'frontend-services'.
2019-06-11 10:12:22 +02:00
Ludovic Courtès 49c30276eb
hydra: berlin: Remove unused nginx config files.
These were unused since commit
a94e1be874.

* hydra/nginx/berlin-locations.conf,
hydra/nginx/berlin.conf: Remove.
* hydra/modules/sysadmin/services.scm (frontend-services): Add
NGINX-SERVICE-TYPE only when NGINX-CONFIG-FILE is true.
* hydra/berlin.scm (services): Remove #:nginx-config-file argument to
'frontend-services'.
2019-05-01 18:00:24 +02:00
Ludovic Courtès 4354565ae6
hydra: Update Cuirass config to latest Guix changes.
This is a followup to Guix commit
b5f8c2c88543158e8aca76aa98f9009f6b9e743a.  Since evaluation now takes
place in an inferior, it's important that the Guix that builds that
inferior has no interference from the Guix-to-build; IOW, we must not
add the Guix-to-build to the load path.  Failing to do that can lead to
errors such as patches not found, due to a faulty %PATCH-PATH that
refers to the Guix-to-build.

* hydra/modules/sysadmin/services.scm (cuirass-specs): Set
 #:load-path-inputs to the empty list for all the job sets.
2019-01-14 10:33:04 +01:00
Ludovic Courtès e33d3fdc92
hydra: services: Reduce daemon build timeouts.
* hydra/modules/sysadmin/services.scm (guix-daemon-config): Reduce
'max-silent-time' and 'timeout'.
2018-12-28 22:32:09 +01:00
Ludovic Courtès 213556aef7
hydra: services: Use a 90-day TTL for 'guix publish'.
* hydra/modules/sysadmin/services.scm (frontend-services): Increase
default NAR-TTL to 90 days.  See Cuirass 'ttl' to a third of NAR-TTL.
* hydra/bayfront.scm: Pass #:nar-ttl to 'frontend-services'.
2018-11-17 18:05:49 +01:00
Ludovic Courtès a2682788c0
hydra: services: Keep Cuirass GC roots for 20 days.
* hydra/modules/sysadmin/services.scm (frontend-services): Specify a
20-day TTL for Cuirass GC roots.
2018-11-07 16:17:34 +01:00
Ludovic Courtès 36f5b0a92b
hydra: services: Add a second GC job after 12 hours.
* hydra/modules/sysadmin/services.scm (%gc-job): Rename to...
(%gc-jobs): ... this.  Add a job at 4PM.
(frontend-services): Adjust accordingly.
2018-11-07 16:17:28 +01:00
Ludovic Courtès 72bbee89c9
hydra: services: Fix "guix-modular-master" spec.
"build-aux/cuirass/guix-modular.scm" is designed to *not* rely on the
latest Guix modules.  Adding those to its load path led it to require
guile-gcrypt, which would fail if the host system did not have it
installed.

* hydra/modules/sysadmin/services.scm (cuirass-specs): For
"guix-modular-master", keep #:load-path-inputs empty.
2018-09-05 12:17:24 +02:00
Clément Lassieur 641b9750c3
hydra: services: Fix Cuirass configuration.
* hydra/modules/sysadmin/services.scm (guix-input): Take a NAME argument.
(cuirass-specs): Use the correct input names.  Rename '#:proc-arguments' to
'#:proc-args'.  Add specifications for the "staging" and "core-updates"
branches.  Add missing '#:load-path-inputs' and '#:package-path-inputs'
fields.
2018-07-20 20:10:28 +02:00
Ludovic Courtès ff4f32ae2e
hydra: services: Another typo.
* hydra/modules/sysadmin/services.scm (guix-input): #:optional, not #:key.
2018-07-20 18:41:33 +02:00
Ludovic Courtès aa78d83711
hydra: services: Fix typo.
* hydra/modules/sysadmin/services.scm (cuirass-specs): ungexp call to
'gexp-input'.
2018-07-20 18:39:54 +02:00
Ludovic Courtès 02f99dbaf2
hydra: services: Adjust Cuirass config to latest Cuirass.
* hydra/modules/sysadmin/services.scm (guix-input): New procedure.
(cuirass-specs): Adjust accordingly.
2018-07-20 18:32:53 +02:00
Clément Lassieur 59bd04c0ae
hydra: berlin: Fix the 'no-compile?' specification field.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Replace the
'#:no-compile?' pair with a dotted pair.
2018-06-26 15:11:05 +02:00
Ludovic Courtès 4e199181bc
hydra: berlin: Add the "guix-modular" jobset.
* hydra/modules/sysadmin/services.scm (cuirass-specs): Add
"guix-modular".
2018-06-07 12:12:28 +02:00
Ludovic Courtès 039b1832aa
hydra: Use the build job specification from Guix.
This was possible since Guix commit
66bc1d2aaf74fc7eb4ef9b3519c69bd37142ffb3.

* hydra/modules/sysadmin/services.scm (%cuirass-specs): Rename to...
(cuirass-specs): ... this.  Make it a procedure.  Change the
configuration to use "build-aux/cuirass/gnu-system.scm" and pass
'systems' in #:arguments.
(frontend-services): Add #:systems and adjust accordingly.
* hydra/berlin-new.scm <top level>: Pass #:systems to
'frontend-services'.
2018-02-18 01:25:58 +01:00
Ludovic Courtès 8137597187
hydra: berlin: Set max-jobs to 20.
* hydra/modules/sysadmin/services.scm (guix-daemon-config): Add
'build-accounts' field.
* hydra/berlin-new.scm <top level>: Pass #:max-jobs.
2018-01-22 16:22:24 +01:00
Ludovic Courtès d3de8c34b4
hydra: Factorize front-end config in (sysadmin services).
* hydra/modules/sysadmin/services.scm: New file.
* hydra/bayfront.scm: Use it.
(%gc-jobs, %certbot-job, %guix-daemon-config, start-firewall)
(firewall-service, %nginx-mime-types, %nginx-cache-activation)
(%cuirass-specs): Remove.
<top level>: Trim 'services' list and use 'frontend-services'.
* hydra/berlin.scm: Likewise.
* hydra/berlin-new.scm: Likewise.
2018-01-19 10:56:00 +01:00