03323f6ef1
TT: add helpers for linking to jobs, jobsets, and projects, and for generating colon separated names.
2021-11-22 13:38:53 -05:00
7095d00608
perlcritic: make all open() calls three-argument
...
Two-argument calls end up parsing the second argument to guess what
should happen, three-arg parses ... less?
2021-10-20 13:09:39 -04:00
4677a7c894
perlcritic: use strict, use warnings
2021-09-06 22:13:33 -04:00
4632132d02
fixup perlcritic: indirect new
...
> Subroutine new called using indirect syntax at line 14, column 14. See page 349 of PBP. (Severity: 5)
2021-08-20 11:39:19 -04:00
e02f34722f
Merge pull request #887 from helsinki-systems/feat/eval-overview-duration
...
Show evaluation time in the evaluations overview
2021-06-29 10:59:02 -04:00
94b88b34ae
Show evaluation time in the evaluations overview
...
Parts of this code have been authored by @grahamc
2021-06-29 16:53:10 +02:00
019aef3d41
Test the fake derivations channel, asserting nested packages are properly represented.
...
This is a breaking change. Previously, packages named `packageset.foo`
would be exposed in the fake derivation channel as `packageset-foo`.
Presumably this was done to avoid needing to track attribute sets, and
to avoid the complexity. I think this now correctly handles the
complexity and properly mirrors the input expressions layout.
2021-03-18 11:33:37 -04:00
d62a2c1657
NixExprs: extract the escape
function and test it
2021-03-18 11:24:17 -04:00
8adb433e3b
Remove the Jobs table
...
This table has been superfluous for a long time.
2020-05-27 20:09:36 +02:00
70eb67fe5b
Allow channels to be usefully imported by other nix expressions.
2018-05-25 11:22:20 -04:00
fd463ff403
Remove nix-install-package support
...
'nix-install-package' no longer exists in Nix 1.12.
Closes #268 .
2018-01-15 14:27:58 +01:00
b7bc4384b7
Fix serving plain text files
2017-11-21 17:55:52 +01:00
7857f83251
Serve directories and symlinks correctly
2017-11-14 17:17:07 +01:00
62c6cca937
Make one-click installs work for binary cache stores
...
This requires setting binary_cache_public_uri in hydra.conf.
2017-10-18 14:09:28 +02:00
bc60fccf78
Remove remaining references to store_mode etc.
2017-10-18 12:23:07 +02:00
fec895a642
hydra-server: Support logs in S3
2017-04-05 17:55:56 +02:00
90870f1416
NixExprs.pm: encode default.nix as utf-8 to fix missing chars/data. ( #455 )
...
cc #254
2017-04-01 11:18:51 +02:00
140cbe9302
Set utf-8 charset for raw logs
...
Also fix incorrect use of Content-Encoding header in View::Plain.
2016-10-24 17:14:33 +02:00
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
e45bbfbef0
Fix .nixpkg channel uri
...
Fixes #274 .
2016-03-02 15:38:40 +01:00
8b4f90b0d4
.nixpkgs: Drop obsolete manifest URI
2016-03-02 15:24:23 +01:00
b00bdefa98
Fix hydra-server signing
2016-02-26 17:28:16 +01:00
2e3899ed27
Don't set Expires header for logs of unfinished builds/steps
2015-08-12 12:22:14 +02:00
0da08df4eb
Stream logs if possible and remove size limit
2015-07-08 19:05:17 +02:00
c6d504edbb
Handle SSH hosts without a @
2015-06-17 13:49:18 +02:00
00e03b9db5
For consistency, Use base32 hashes in manifests
2015-02-19 12:44:52 +01:00
69adcd4be1
Update binary cache signing to Nix 1.9
2015-02-17 20:15:37 +01:00
9e00d98d34
Shut up some Perl 5.20 warnings
2014-11-25 00:27:52 +01:00
c250407f3c
Set Expires headers for Hydra's binary cache
...
This allows caching by reverse proxies.
2014-11-06 14:31:48 +01:00
9b38b5f134
Remove the longDescription field
...
It's not useful and takes up a lot of space.
2014-09-30 15:44:09 +02:00
1306291c6c
Handle utf-8 properly
...
Fixes errors like:
Caught exception in engine "Wide character in syswrite at /nix/store/498lwsrn5kkdh1q8kn3vcpd3457w6m7a-hydra-perl-deps/lib/perl5/site_perl/5.16.3/Starman/Server.pm line 547."
Note that these errors didn't happen if the database encoding was set
to SQL_ASCII (which was the case for hydra.nixos.org, explaining why
it didn't get these errors). However, now the encoding must be
UTF8. To change it, do:
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'hydra';
2014-05-01 16:33:25 +02:00
be63c50560
Show whether a job still exists
...
In the dashboard and on the job page, indicate whether the job appears
in the latest jobset eval. That way, the user gets some indication if
a job has accidentally disappeared (e.g. due to an evaluation error).
2014-04-08 18:50:37 +02:00
a598fe7e81
Allow Hydra's binary cache to be signed
...
This requires adding the following to hydra.conf:
binary_cache_key_name = <key-name>
binary_cache_private_key_file = <path-to-private-key>
e.g.
binary_cache_key_name = hydra.nixos.org-1
binary_cache_private_key_file = /home/hydra/cache-key.sec
2014-01-08 15:19:17 +01:00
0ec03aa0f4
Handle builds with multiple outputs correctly in Hydra channels
2013-10-07 17:06:17 +02:00
5ccff14f6b
In Hydra channels, show only packages matching the user's system type
...
Fixes NixOS/nix#169 .
2013-10-07 14:53:27 +02:00
04e6eda4c7
Remove unused function
2013-09-03 20:29:52 +02:00
fd7e37ef89
Try harder to find build logs
...
Due to the fixed-output derivation hashing scheme, there can be
multiple derivations of the same output path. But build logs are
indexed by derivation path. Thus, we may not be able to find the
log of a build or build step using its derivation. So as a fallback,
Hydra now looks for other derivations with the same output paths.
2013-08-30 13:53:25 +00:00
2d5e06918b
Hydra::View::Plain: Explicitly set the response body.
...
This fixes a bug with Catalyst 1.39 whereby a raw hash table would
erroneously be returned for /nix-cache-info.
2013-07-12 16:53:48 +02:00
fe030331b5
Revert "Don't compress already-compressed files."
...
This reverts commit 190bffd846
.
2013-07-01 18:46:18 +02:00
11414b0447
Revert "Doh"
...
This reverts commit f1f938512d
.
2013-07-01 18:46:14 +02:00
f1f938512d
Doh
2013-07-01 18:12:33 +02:00
190bffd846
Don't compress already-compressed files.
...
Fixes <https://github.com/NixOS/hydra/issues/102 >.
2013-06-23 15:23:16 +02:00
71eaa115f8
Ellipsize long jobset/job names to prevent bootstrap navbar breakage
2013-04-26 17:51:05 +02:00
10882a1ffd
Add multiple output support
...
This requires turning the outPath columns in the Builds and BuildSteps
tables into separate tables, and so requires a schema upgrade.
2013-02-13 16:49:28 +00:00
e555c7bb36
Automatically chomp all [%...%] directives
...
This makes the use of [%-...-%] unnecessary.
2013-02-05 14:00:09 +01:00
e0de5de91d
Fix some warnings
2013-01-23 12:41:57 +00:00
30e5185acf
Remove the logfile and logSize columns from the database
...
It's pointless to store these, since Nix knows where the logs are.
Also handle (in fact require) Nix's new log storage scheme. Also some
cleanups in the build page.
2013-01-22 22:48:02 +01:00
67aefde62c
Remove trailing whitespace
2013-01-22 14:41:02 +01:00
aa28ffe3a8
Die tabs die
2013-01-22 14:09:37 +01:00
d15dd6bac9
Include the URL of the binary cache in .nixpkg files
2012-07-30 20:26:11 +00:00