Commit Graph

4025 Commits

Author SHA1 Message Date
a0c8440a5c Update to Nix 2.16 and NixOS 23.05
Flake lock file updates:

• Updated input 'nix':
    'github:nixos/nix/4acc684ef7b3117c6d6ac12837398a0008a53d85' (2023-02-22)
  → 'github:NixOS/nix/84050709ea18f3285a85d729f40c8f8eddf5008e' (2023-06-06)
• Added input 'nix/flake-compat':
    'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
• Updated input 'nixpkgs':
    follows 'nix/nixpkgs'
  → 'github:NixOS/nixpkgs/ef0bc3976340dab9a4e087a0bcff661a8b2e87f3' (2023-06-21)
2023-06-23 15:06:46 +02:00
13ef4e3c5d Merge pull request from JulienMalka/fix-hydra-eval-jobs-dot
hydra-eval-jobs: fix jobs containing a dot being dropped
2023-05-08 14:48:33 +02:00
b4099df91e hydra-eval-jobs: fix jobs containing a dot being dropped 2023-04-25 10:37:41 +02:00
082495e34e Merge pull request from Ma27/nix-2.13
Nix 2.13 + nixpkgs input update
2023-03-27 13:30:13 +02:00
399b61ff67 Merge pull request from Mindavi/systemd/network-online
systemd: hydra-queue-runner: wait for network-online
2023-03-24 09:56:29 -04:00
3da6ef0d6d Merge pull request from NixOS/rv-google-signin
Use new Google for Web signin
2023-03-24 09:55:22 -04:00
f88bef15ed Use new Google for Web signin, the old way will be deprecated Mar 31st 2023 2023-03-14 09:04:12 +01:00
a084e204ae systemd: hydra-queue-runner: wait for network.target too
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-03-07 21:56:20 +01:00
ecfa817d30 Merge pull request from DeterminateSystems/drop-unnecessary-index
Drop unused IndexBuildOutputsOnPath index
2023-03-06 11:06:31 -05:00
8d53c3ca11 test: use ubuntu-latest 2023-03-06 07:56:05 -08:00
810d2e6b51 Drop unused IndexBuildOutputsOnPath index
Also it's larger than the actual table it's indexing lol.

    -[ RECORD 30 ]----------+-----------------------------------------
    table_name              | buildoutputs
    index_name              | indexbuildoutputsonpath
    index_scans_count       | 0
    index_size              | 31 GB
    table_reads_index_count | 2128699937
    table_reads_seq_count   | 0
    table_reads_count       | 2128699937
    table_writes_count      | 22442976
    table_size              | 28 GB
2023-03-06 07:56:05 -08:00
f44d3d6ec9 Update Nix to 2.13.3
Includes the following required fixes:

* perl-bindings are correctly initialized: 77d8066e83
* /etc/ must be unwritable in build sandbox: 4acc684ef7
2023-03-04 12:07:34 +01:00
65c1249227 systemd: hydra-queue-runner: wait for network-online
This prevents eval errors when a machine is just started and the network isn't yet online.
I'm running hydra on a laptop and the network takes a bit of time to come online (WLAN),
so it's nice if the evaluator starts only when the network actually goes online.

Otherwise an error like this can happen on the first eval(s):

```
error fetching latest change from git repo at `https://github.com/nixos/nixpkgs.git':
fatal: unable to access 'https://github.com/nixos/nixpkgs.git/': Could not resolve host: github.com
```
2023-02-16 19:24:53 +01:00
73dff15039 tests: ports are numbers 2023-02-04 20:12:30 +01:00
ddd3ac3a4d name tests 2023-02-04 20:12:30 +01:00
c7716817a9 Update Nix to 2.13 2023-02-04 20:11:53 +01:00
5b35e13898 hydra-queue-runner: use initializer lists for constructing JSON
And also fix the parts that were broken
2023-02-04 20:08:27 +01:00
96e36201eb hydra-queue-runner: adapt to nlohmann::json 2023-02-04 20:08:09 +01:00
f48f00ee6d Merge pull request from cransom/hydra-evaluator-broken-connection
exit with error if database connectivity lost
2022-12-22 19:28:51 -05:00
d1fac69c21 Merge pull request from SuperSandro2000/patch-2
Fix example config
2022-12-05 17:48:46 +01:00
01802efc17 Merge pull request from Ma27/fix-my-jobs-tab
Fix "My Jobs" tab in user dashboard
2022-12-05 01:55:49 +01:00
7f816e3237 Fix link 2022-12-05 00:35:05 +01:00
213879484d Fix example config 2022-12-05 00:22:35 +01:00
14d4624dc2 Merge pull request from knedlsepp/fix-hydra-with-latest-git
scmdiff: Hardcode `--git-dir`
2022-11-24 12:04:23 +01:00
fd765bc97a Fix "My Jobs" tab in user dashboard
Nowadays `Builds` doesn't reference `Project` directly anymore. This
means that simply resolving both `jobset` and `project` with a single
JOIN from `Builds` doesn't work anymore. Instead we need to resolve the
relation to `jobset` first and then the relation to `project`.

For similar fixes see e.g. c7c4759600.
2022-11-22 20:54:51 +01:00
d4d20f6484 Merge pull request from lheckemann/aarch64
Enable aarch64 support
2022-11-21 11:01:38 +01:00
a8b89420bc Enable aarch64 support 2022-11-17 23:04:52 +01:00
70ad3a924a exit with error if database connectivity lost
There's currently no automatic recovery for disconnected databases in
the evaluator. This means if the database is ever temporarily
unavailable, hydra-evaluator will sit and spin with no work
accomplished.

If this condition is caught, the daemon will exit and systemd will be
responsible for resuming the service.
2022-10-26 16:13:40 -04:00
312cb42275 Merge pull request from helsinki-systems/feat/squiggly-line
Add a squiggly line to the Hydra link on hover
2022-10-21 22:57:20 +02:00
a67d3b47d2 Merge pull request from MaxHearnden/patch-1
Fix insecure advice in the manual
2022-10-21 10:00:52 +02:00
c737bed42f Fix insecure advice in the manual
Bring the manual in line with the configuration documentation
2022-10-19 16:24:01 +01:00
8f05b797e9 Merge pull request from Mic92/coreutils
fix deprecated chown syntax
2022-09-30 15:59:06 +02:00
7e459e8c5a Merge pull request from Mic92/fix-ssh-prefix
hydra: fix localhost detection when protocol prefix are used
2022-09-30 10:06:29 +02:00
940c0d7d97 fix deprecated chown syntax 2022-09-29 21:22:13 +02:00
94d19e1972 hydra: fix localhost detection when protocol prefix are used 2022-09-29 20:46:13 +02:00
a8876a8956 Merge pull request from Mic92/docs
docs/hacking: update nixos module option for nix-daemon
2022-09-28 17:02:49 +02:00
2ff67cbacc docs/hacking: update nixos module option for nix-daemon 2022-09-27 22:44:43 +02:00
53335323ae Merge pull request from Ma27/job-prometheus-metric-improvements
Job: expose `closuresize` and `size` (output size in the UI) as prometheus metrics
2022-09-22 16:21:42 +02:00
d3fe4ffbf6 Job: expose closuresize and size (output size in the UI) as prometheus metrics 2022-09-22 10:47:22 +02:00
d6cbf227cb Merge pull request from K900/maybe-fix-trees
Run the JS code to make build trees collapsible at the right time
2022-09-08 09:55:14 -04:00
4c67562c0a Merge pull request from NixOS/update-nix
Update to Nix 2.11.0 and Nixpkgs 22.05
2022-09-08 12:08:48 +02:00
44e1efff7f Send the right nix-serve client version
We were using protocol version 6 but requesting version 4. The only
reason that this worked was because of a broken version check in
'nix-store --serve'. That was fixed in
c2d7456926,
which had the side-effect of breaking hydra-queue-runner.
2022-09-08 11:51:13 +02:00
b16470c544 nix flake info -> nix flake metadata
This gets rid of a deprecation warning.
2022-09-06 19:23:20 +02:00
1dbc100837 flake.lock: Update
Flake lock file updates:

• Updated input 'nix':
    'github:NixOS/nix/b9cf655150b52d071c85a337cb5db96e735fa64a' (2022-07-11)
  → 'github:NixOS/nix/11e45768b34fdafdcf019ddbd337afa16127ff0f' (2022-08-27)
• Updated input 'nix/nixpkgs':
    'github:NixOS/nixpkgs/2fa57ed190fd6c7c746319444f34b5917666e5c1' (2022-05-31)
  → 'github:NixOS/nixpkgs/365e1b3a859281cf11b94f87231adeabbdd878a2' (2022-07-13)
2022-09-06 16:19:05 +02:00
d61702f86d Merge remote-tracking branch 'origin/master' into update-nix 2022-09-06 16:14:23 +02:00
222a8047e4 Merge pull request from NixOS/drop/hipchat
Drop the HipChat plugin
2022-08-20 19:33:22 +02:00
81228cae50 Merge pull request from AmandaCameron/patch-3
Update hydra-module.nix to use newer nixos options
2022-08-20 19:25:46 +02:00
371402c3c1 Drop the HipChat plugin
https://en.wikipedia.org/wiki/HipChat says:
> Following this, HipChat and Stride customers were migrated to the
> Slack group collaboration platform in a transition that was completed by
> February 2019.
2022-08-20 19:16:43 +02:00
9addaeb17f Add a squiggly line to the Hydra link on hover
The effect is the same as the one on links in mail bodys on
https://lists.apache.org/
2022-08-17 11:44:19 +02:00
2b8a8fdd9c Make the tree a little less dense 2022-08-12 09:46:32 +03:00