John Ericson
9a75361781
Merge branch 'nix-2.23' into nix-2.24-upgrade-wip
2024-09-24 11:50:03 -04:00
John Ericson
029116422d
Update to Nix 2.23
...
Flake lock file updates:
• Updated input 'nix':
'github:NixOS/nix/1c8150ac312b5f9ba1b3f6768ff43b09867e5883' (2024-04-23)
→ 'github:NixOS/nix/5ffd239adc9b7fddca7a2a59a8b87da5af14ec4d' (2024-09-23)
2024-09-24 11:38:01 -04:00
John Ericson
108e409559
Merge branch 'nix-2.22'
2024-09-24 11:25:33 -04:00
John Ericson
1a5bd9e103
Merge remote-tracking branch 'upstream/nix-2.21' into nix-2.22
2024-09-24 11:25:10 -04:00
John Ericson
647191cd4a
Merge remote-tracking branch 'upstream/nix-2.21'
2024-09-24 11:23:21 -04:00
Jörg Thalheim
73e51b94b1
Merge pull request #1414 from cleverca22/fix-binary-cache
...
fix nar endpoint for binary cache hosting
2024-09-20 13:24:47 +02:00
hacker1024
1ef6b5e7b4
Use Nix::Store and Nix::Utils in NARInfo.pm
...
These are required for the `signString` and `readFile` subroutines used when signing NARs.
(cherry picked from commit b94a7b6d5c56362af9ea85d944f8454d861ec001)
2024-09-20 08:04:23 -03:00
Jörg Thalheim
44248d3cf4
Merge pull request #1412 from NixOS/hydra-compress-logs
...
set a default for hydra-compress-logs service
2024-09-20 09:21:34 +02:00
Michael Bishop
cc1b6d394e
fix the binary cache calling isValidPath, and 2 other files with the same issue
2024-09-20 04:08:22 -03:00
zowoq
b472f55563
set a default for hydra-compress-logs service
...
follow up from 99ca560d583239b1bc34485f2f719989642fa697
2024-09-20 09:04:15 +02:00
Jörg Thalheim
c61bdd2c28
Merge pull request #1410 from NixOS/compiler-warnings
...
hydra-queue-runner: fix compilation warning
2024-09-20 09:00:55 +02:00
Jörg Thalheim
0231453cc5
hydra-eval-jobs: fix build against nix 2.24
2024-09-20 08:49:46 +02:00
Jörg Thalheim
ae787e5799
bump nix to 2.24
2024-09-20 08:49:32 +02:00
Jörg Thalheim
2dad87ad89
hydra-queue-runner: fix compilation warning
...
instead of converting to double, we can convert to float right away.
2024-09-20 07:50:24 +02:00
Jörg Thalheim
b6f44b5cd0
Merge pull request #1402 from NixOS/like-sub
...
tests: use `like` for testing regexes
2024-09-15 23:50:13 +02:00
Janne Heß
c8b7a0fea9
Merge pull request #1403 from NixOS/docs
...
Devdocs: mention nix develop and nproc
2024-09-03 15:03:01 +02:00
Jörg Thalheim
2d79b0a4da
Merge pull request #1406 from NixOS/fix/remove-url-literal
...
default.nix: Drop URL literal
2024-08-27 21:41:42 +02:00
Martin Weinelt
f730433789
Create eval-jobset role and guard /api/push route
2024-08-27 19:49:05 +02:00
Janne Heß
916531dc9c
api: Require POST for /api/push
2024-08-27 17:52:13 +02:00
Janne Heß
0ead8dc65c
default.nix: Drop URL literal
2024-08-27 17:44:36 +02:00
Jörg Thalheim
b1a0501520
Merge pull request #1405 from hacker1024/patch-2
...
Use Nix::Store and Nix::Utils in NARInfo.pm
2024-08-27 17:09:37 +02:00
hacker1024
b94a7b6d5c
Use Nix::Store and Nix::Utils in NARInfo.pm
...
These are required for the `signString` and `readFile` subroutines used when signing NARs.
2024-08-25 17:25:08 +10:00
Jörg Thalheim
9ee3c6aea2
Merge pull request #1400 from SuperSandro2000/feat/buildlogs-zstd
...
CompressLog: Add zstd compression
2024-08-21 09:43:39 +02:00
Jörg Thalheim
02a514234b
hacking.md: make build parallel
2024-08-21 08:42:22 +02:00
Jörg Thalheim
54a9729a0f
hacking.md: mention nix develop
2024-08-21 08:42:22 +02:00
Jörg Thalheim
250780aaf2
tests: use like
for testing regexes
...
This gives us better diagnostics when the test fails.
2024-08-21 08:34:25 +02:00
Jörg Thalheim
4bb2f08be1
Merge pull request #1396 from nh2/hash-length-12
...
renderInputDiff: Increase git hash length 8 -> 12
2024-08-20 09:55:04 +02:00
Jörg Thalheim
c23973785f
Merge pull request #1399 from Mindavi/bugfix/too-strict-timeouts
...
Looser timeouts, disable broken test, less verbose output
2024-08-20 09:54:40 +02:00
Sandro Jäckel
b2b2d6e26c
Expand docs with new compression options
2024-08-18 17:59:36 +02:00
Sandro Jäckel
99ca560d58
Use configured compression in hydra-compress-logs service
2024-08-18 17:59:36 +02:00
Janne Heß
2c886f51d3
CompressLog: Add zstd compression
2024-08-09 18:52:03 +02:00
Janne Heß
7de7122479
Merge pull request #1398 from marius851000/document_foreman_user
...
Document the default Hydra user and port in hacking.md
2024-08-01 09:58:30 +02:00
Rick van Schijndel
54002f0fcf
t/evaluator/evaluate-oom-job.t: always skip, the test always fails
...
We should look into how to resolve this, but I tried some things and nothing really worked.
Let's put it skipped for now until someone comes along to improve it.
2024-07-31 17:15:02 +02:00
Rick van Schijndel
a6b14369ee
t/test.pl: increase event-timeout, set qvf
...
Only log issues/failures when something's actually up.
It has irked me for a long time that so much output came
out of running the tests, this seems to silence it.
It does hide some warnings, but I think it makes the output
so much more readable that it's worth the tradeoff.
Helps for highly parallel running of jobs, sometimes they'd not give output for a while.
Setting this timeout higher appears to help.
Not completely sure if this is the right place to do it, but it works fine for me.
2024-07-31 17:15:02 +02:00
Rick van Schijndel
578a3d2292
t: increase timeouts for slow commands with high load
...
We've seen many fails on ofborg, at lot of them ultimately appear to come down to
a timeout being hit, resulting in something like this:
Failure executing slapadd -F /<path>/slap.d -b dc=example -l /<path>/load.ldif.
Hopefully this resolves it for most cases.
I've done some endurance testing and this helps a lot.
some other commands also regularly time-out with high load:
- hydra-init
- hydra-create-user
- nix-store --delete
This should address most issues with tests randomly failing.
Used the following script for endurance testing:
```
import os
import subprocess
run_counter = 0
fail_counter = 0
while True:
try:
run_counter += 1
print(f"Starting run {run_counter}")
env = os.environ
env["YATH_JOB_COUNT"] = "20"
result = subprocess.run(["perl", "t/test.pl"], env=env)
if (result.returncode != 0):
fail_counter += 1
print(f"Finish run {run_counter}, total fail count: {fail_counter}")
except KeyboardInterrupt:
print(f"Finished {run_counter} runs with {fail_counter} fails")
break
```
In case someone else wants to do it on their system :).
Note that YATH_JOB_COUNT may need to be changed loosely based on your
cores.
I only have 4 cores (8 threads), so for others higher numbers might
yield better results in hashing out unstable tests.
2024-07-31 17:13:28 +02:00
marius david
ada51d70fc
Document the default user and port in hacking.md
2024-07-23 22:39:22 +02:00
Niklas Hambüchen
bc19e7cd65
renderInputDiff: Increase git hash length 8 -> 12
...
See investigation on lengths required to be conflict-free in practice:
https://github.com/NixOS/hydra/pull/1258#issuecomment-1321891677
2024-07-20 23:45:12 +02:00
John Ericson
d7986226f0
Merge pull request #1227 from SuperSandro2000/gitea-push-hook
...
Add gitea push hook
2024-07-09 14:31:10 -04:00
John Ericson
b3e0d9a8b7
Merge pull request #1387 from NixOS/pipe-buffer-size
...
queue-runner: try larger pipe buffer sizes
2024-05-23 11:50:15 -04:00
Pierre Bourdon
5728011da1
queue-runner: try larger pipe buffer sizes
...
(cherry picked from commit 18466e83261d39b997a73bbd9f0f249c3a91fbeb)
2024-05-23 11:42:35 -04:00
John Ericson
879ceb5cdc
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nix':
'github:NixOS/nix/60824fa97c588a0faf68ea61260a47e388b0a4e5' (2024-04-11)
→ 'github:NixOS/nix/1ebc34e9c54b740ea4f4466443047d709dccf5b2' (2024-05-16)
2024-05-21 18:23:35 -04:00
John Ericson
898ca2f600
Merge branch 'nix-2.20' into nix-2.21
2024-05-21 18:23:04 -04:00
John Ericson
559376e907
Merge pull request #1377 from SuperSandro2000/fix-doi-1375
...
Fix doi resolution after #1375
2024-05-21 18:11:21 -04:00
John Ericson
21044bc4d9
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nix':
'github:NixOS/nix/8f42912c80c0a03f62f6a3d28a3af05a9762565d' (2024-01-30)
→ 'github:NixOS/nix/ab48ea416a203e9ccefb70aa634e27477e4c1ac4' (2024-05-15)
2024-05-21 18:01:30 -04:00
Janne Heß
998df1657e
Merge pull request #1382 from Mic92/patch-1
...
README: update wiki link
2024-05-08 21:37:18 +02:00
Jörg Thalheim
f99cdaf5fe
README: update wiki link
2024-05-08 21:31:32 +02:00
John Ericson
3bf00e31c0
Merge pull request #1381 from NixOS/factor-out-tests
...
Try again to ensure hydra module is usable
2024-05-03 12:50:02 -04:00
John Ericson
e149da7b9b
Try again to ensure hydra module is usable
...
Nixpkgs only contains a `hydra_unstable`, not `hydra`, package, so
adjust the default accordingly, and then override it to our package in
the separate module which does that.
2024-05-03 12:41:17 -04:00
John Ericson
e81c36ac92
Merge pull request #1380 from NixOS/factor-out-tests
...
Factor out NixOS tests, and clean up
2024-05-03 12:33:50 -04:00
John Ericson
743795b2b0
Factor out NixOS tests, and clean up
...
Due to newer nixpkgs, there were a number of things that could be
cleaned up in the process.
2024-05-03 12:26:06 -04:00