Nikola Knezevic
e5c757e219
Remove SSL_CERT_FILE
...
This was slated to be removed with Nix 16.03. We're now in 20.03, so
it's good to clean that up a bit.
2020-06-05 18:53:16 +02:00
Eelco Dolstra
0ccf36ca3b
Merge remote-tracking branch 'origin/master' into flake
2019-09-24 19:03:18 +02:00
Eelco Dolstra
4223202c99
Merge pull request #432 from LumiGuide/better-buildMachinesFiles-default
...
Only set buildMachinesFiles when nix.buildMachines is defined
2019-09-24 19:00:32 +02:00
Eelco Dolstra
66d71689ec
flake.nix improvements
...
The hydra flake now exports a Nixpkgs overlay and a NixOS module.
2019-09-17 17:25:59 +02:00
Eelco Dolstra
e2537f741b
Restart hydra-notify
2019-08-13 18:18:24 +02:00
Eelco Dolstra
c7861b85c4
Add hydra-notify service
2019-08-13 18:18:24 +02:00
Antoine Eiche
8a0a5ec3a3
Create extension pg_trgm in the NixOS module
...
The creation of the `pg_trgm` extension needs superuser power. So,
this patch makes the extension creation in the Hydra NixOS module when
a local database is used.
If it is not possible to create this extension (remote database for
instance with nosuperuser), the creation of the `pg_trgm` index is
skipped (this index speedup queries on builds.drvpath) and warnings
are emitted:
initialising the Hydra database schema...
WARNING: Can not create extension pg_trgm: permission denied to create extension "pg_trgm"
WARNING: HINT: Temporary provide superuser role to your Hydra Postgresql user and run the script src/sql/upgrade-57.sql
WARNING: The pg_trgm index on builds.drvpath has been skipped (slower complex queries on builds.drvpath)
This allows to keep smooth migrations: the migration process doesn't
require a manual step (but this manual step is recommended on big
remote databases).
2019-07-25 16:19:33 +02:00
Eelco Dolstra
a71e6301d2
Fix Hydra VM tests
2018-07-31 21:49:05 +02:00
Eelco Dolstra
f39c13b2ff
hydra-server: Set XDG_CACHE_HOME, other Nix barfs
2017-10-18 15:33:46 +02:00
Eelco Dolstra
3e7938c61a
hydra-module: Include "=" in hydra.conf
...
hydra-queue-runner is more anal about the format than Catalyst, so it
was misinterpreting gc_roots_dir.
2017-10-18 14:23:10 +02:00
Domen Kožar
f220f45d29
hydra-module.nix: restart daemons on config change
2017-06-27 16:01:06 +02:00
michael bishop
6e4a7a30f7
fix github pulls json to be deterministic
2017-06-21 09:35:26 -03:00
Domen Kožar
81fee456c2
fix #425 : parsable config by hydra-queue-runner
2017-04-10 14:59:58 +02:00
Eelco Dolstra
285754aff6
hydra-evaluator improvements
...
* The "Jobset" page now shows when evaluations are in progress (rather
than just pending).
* Restored the ability to do a single evaluation from the command line
by doing "hydra-evaluator <project> <jobset>".
* Fix some consistency issues between jobset status in PostgreSQL and
in hydra-evaluator. In particular, "lastCheckedTime" was never
updated internally.
2017-03-15 16:59:57 +01:00
Bas van Dijk
4efd078977
Only set buildMachinesFiles when nix.buildMachines is defined
2016-12-11 15:35:38 +01:00
Bas van Dijk
cba7e7e0e2
Allow hydra-eval-jobset to be found by the hydra-evaluator
...
Without this I got the following error in my journal:
Oct 25 22:42:29 mymachine hydra-evaluator[4085]: starting evaluation of jobset ‘myproject:.jobsets’
Oct 25 22:42:29 mymachine hydra-evaluator[4085]: timeout: failed to run command ‘hydra-eval-jobset’: No such file or directory
Oct 25 22:42:29 mymachine hydra-evaluator[4085]: evaluation of jobset ‘myproject:.jobsets’ finished with status 32512
2016-10-25 22:55:32 +02:00
Eelco Dolstra
633724cc8a
services.hydra -> services.hydra-dev
...
Since Nixpkgs 16.09 contains a Hydra module, we were getting a
conflict. I guess we should have a way to override modules in
Nixpkgs...
2016-10-10 11:29:15 +02:00
Eelco Dolstra
ee2e9f5335
Update to reflect BinaryCacheStore changes
...
BinaryCacheStore no longer implements buildPaths() and ensurePath(),
so we need to use copyPath() / copyClosure().
2016-10-07 20:23:05 +02:00
Eric Sagnes
dedcb76bed
module: add default to buildMachinesFiles ( #372 )
2016-08-20 19:50:12 +02:00
Domen Kožar
23bf99b8e2
Use pixz instead of bzip2 for compressing nars
...
According to following two benchmarks:
- https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/
- http://catchchallenger.first-world.info/wiki/Quick_Benchmark:_Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO
xz has better compression ratio than bzip2 at lowest compression rate.
https://github.com/vasi/pixz has been chosen as it can scale compressing
over multiple cores linearly.
We're using this in snabblab for a month now and it has improved CPU
wise the main Hydra server.
2016-08-12 11:39:07 +02:00
Domen Kožar
6bcbabb4df
Merge pull request #307 from groxxda/fix/trivial
...
Trivial fixes (readme, comment, missing dependency in release.nix)
2016-05-31 09:59:07 +01:00
Nikolay Amiantov
6f10cd297b
hydra-module: fix useSubstitutes configuration option
2016-05-26 14:16:47 +03:00
Alexander Ried
51d21b9b91
hydra-module.nix: fix warning about deprecated types.list
2016-05-09 19:09:33 +02:00
Peter Simons
3ca0e50e01
hydra-module.nix: add 'useSubstitutes' option to control use of binary caches
...
Gives users who want to use binary caches a way to do so without messing
with module internals. Fixes https://github.com/NixOS/hydra/issues/297 .
2016-05-06 10:30:54 +02:00
Alexander Ried
5777f246a5
hydra-module: fix debug attribute
2016-04-29 04:21:05 +02:00
Eelco Dolstra
7dad867498
Add smtpHost option
2016-04-13 16:46:24 +02:00
Eelco Dolstra
fd20c726e1
Remove ssmtp from $PATH again
...
See 10cad61231
.
2016-04-13 16:33:38 +02:00
Sander van der Burg
cbd2e3a50d
Fix problem with delegating builds to localhost due to nix-store not being in the PATH
2016-04-06 14:16:04 +00:00
Eelco Dolstra
74dfcc84e9
Make NIX_REMOTE_SYSTEMS configurable
2016-03-25 15:41:38 +01:00
Eelco Dolstra
32fa392146
Fix hydra-queue-runner PATH
2016-03-23 12:35:55 +01:00
Eelco Dolstra
f09b92e289
Remove another obsolete SSL variable
2016-03-02 15:03:54 +01:00
Eelco Dolstra
ad035b5227
hydra-queue-runner: Enable core dumps
2016-02-28 14:09:04 +01:00
Eelco Dolstra
1693354506
Remove unnecessary call to hydra-queue-runner --unlock
2016-02-26 21:45:59 +01:00
Eelco Dolstra
b081133dcc
Move GC roots to /nix/var/nix/gcroots/hydra
...
The uid split a while back caused the web interface to create GC roots
in /nix/var/nix/gcroots/per-user/hydra-www, where they wouldn't be
purged by hydra-update-gc-roots. Thus restarted builds would
accumulate forever. The fix is to keep the roots in a shared directory
with gid=hydra.
2015-12-14 13:31:24 +01:00
Eelco Dolstra
d22e7ac03d
hydra-compress-logs: Use bzip2 -f flag
2015-10-27 16:10:02 +01:00
Eelco Dolstra
b8ff29f0db
Periodically compress logs
2015-10-07 13:12:24 +02:00
Eelco Dolstra
68796b2762
Fix email notification
2015-08-26 17:25:00 +02:00
Eelco Dolstra
6ddcd37df1
hydra-queue-runner.service: Set IN_SYSTEMD
2015-07-21 01:54:24 +02:00
Eelco Dolstra
f5548dc225
Fix Persona logins
2015-07-08 16:57:33 +02:00
Eelco Dolstra
535e936732
Hackery
2015-07-02 02:55:15 +02:00
Eelco Dolstra
377d9d37f3
Fix paths
2015-07-02 02:54:59 +02:00
Eelco Dolstra
8ea05cc7f2
Don't require postgresql.service
2015-07-02 02:54:30 +02:00
Eelco Dolstra
dffb629b8a
Unify Hydra's NixOS module with the one used for hydra.nixos.org
...
In particular, the queue runner and web server now run under different
UIDs.
2015-07-02 01:01:44 +02:00
Eelco Dolstra
1e87b15f91
Remove Nix options not needed by the new queue runner
2015-07-01 11:40:00 +02:00
Eelco Dolstra
60e8b9881b
The new queue runner requires "hydra" to be a trusted Nix user
...
(Because it does unsigned imports into the store.)
2015-07-01 10:47:43 +02:00
Eelco Dolstra
171303864e
Fix type
2015-06-29 09:29:04 +00:00
Eelco Dolstra
401f5bdce2
Add a unit for hydra-send-stats
2015-06-26 15:24:12 +02:00
Eelco Dolstra
17924ce012
Note in the log when the queue runner / evaluator gets killed
2015-06-26 11:56:11 +02:00
Eelco Dolstra
aabe514d07
Update the hydra-queue-runner unit
2015-06-26 11:29:30 +02:00
Eelco Dolstra
73a78c2073
Give services.hydra.package a reasonable default
2015-06-26 11:29:19 +02:00