Janne Heß
bd0ab9a5fb
Stop violating not null constraint
...
Fixes this error:
ERROR: failed to process declarative jobset test:inputs,
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st
execute failed: ERROR: null value in column "emailoverride" violates
not-null constraint
2020-11-21 22:04:40 +01:00
Ricardo M. Correia
f47749a62d
Fix persistent hash mismatch errors when importing
...
This would start happening if the network connection between the Hydra
server and the remote build server breaks after sucessfully importing
at least one output of a derivation, but before having finished
importing all outputs.
Fixes #816 .
2020-11-10 04:50:35 +01:00
Eelco Dolstra
73dfef364b
Copy deriver field to the binary cache
...
Fixes https://github.com/NixOS/nixos-org-configurations/issues/129 .
2020-11-02 17:08:02 +01:00
Nathan van Doorn
2742fde8c2
Remove Debug prints from GitLabStatus.pm
...
These make the hydra-queue-runner logs very noisy even when not using the GitlabStatus plugin.
Also, they shouldn't be necessary except when developing the plugin itself and should have been removed before release.
2020-11-02 10:14:54 +00:00
Eelco Dolstra
87317812a8
Fix some broken indices
...
These indices basically did nothing since they put "id" first.
In particular this makes /job/.../all much faster.
2020-10-28 14:30:44 +01:00
Eelco Dolstra
8bb23905c3
Build: Remove unused prevBuild
...
This speeds up loading the page a lot in the case where there is no
previous evaluation (for some reason).
2020-10-28 13:29:31 +01:00
Eelco Dolstra
d9dc7ca18b
getPreviousBuild: Get previous build in the job, not jobset
...
Broken since 8adb433e3.
2020-10-28 13:29:02 +01:00
Eelco Dolstra
a1b5418114
Remove dead link
2020-10-27 12:35:36 +01:00
Eelco Dolstra
be709d450b
Fix sysbuild
...
596f4cf4b9
2020-10-22 13:27:52 +02:00
Eelco Dolstra
4e05acc471
Fix localhost builds
2020-10-20 12:11:46 +02:00
Eelco Dolstra
6cd2bb6954
Fix build
2020-10-18 21:01:06 +02:00
Maximilian Bosch
9cc76f6d69
Fix build with latest Nix
...
Recently a few internal APIs have changed[1]. The `outputPaths` function
has been removed and a lot of data structures are modeled with
`std::optional` which broke compilation.
This patch updates the code in `hydra-queue-runner` accordingly to make
sure that Hydra compiles again.
[1] https://github.com/NixOS/nix/pull/3883
2020-09-26 23:37:39 +02:00
Eelco Dolstra
46a8d6d531
Merge branch 'fix/addPermRoot' of https://github.com/helsinki-systems/hydra
2020-09-15 13:22:53 +02:00
Eelco Dolstra
b8a4ed0c77
Merge pull request #815 from helsinki-systems/fix/non-static-decl
...
Fix non-static declarative jobsets
2020-09-14 15:52:05 +02:00
Eelco Dolstra
2c76e9848a
Merge pull request #812 from helsinki-systems/no-accesslog
...
Disable access log
2020-09-14 15:38:13 +02:00
Eelco Dolstra
a6c4e4b067
Merge pull request #807 from plutotulp/bugfix-revcount-as-integer
...
reproduce bash script must supply revCount as int
2020-09-14 15:34:03 +02:00
ajs124
2c61779816
fix build after nix commit 82b77a77262c414044fffc7ad8b955ad91827995
2020-09-14 15:30:59 +02:00
Janne Heß
24acb9d6bb
Fix non-static declarative jobsets
...
With the current implementation, if ANY hash was found inside the decl
spec, the spec would be treated as static. This is problematic since
`inputs` is a hash and hence any configuration would be handled as a
static one.
This fixes the code to match the documentation and only switch to static
processing when ALL values are hashes.
2020-09-13 18:21:38 +02:00
Janne Heß
971dcc46a2
Disable access log
...
This is annoying and mostly redundant to nginx.
2020-09-13 17:51:21 +02:00
Andreas Rammhold
6a07712e1d
LDAP: only try LDAP authentication when the realm is configured
2020-09-12 19:57:24 +02:00
Erlend Pedersen
1d11b29e73
reproduce bash script must supply revCount as int
...
The reproduce script would fail for me, because it passed revCount as
a string to nix-build, which would then fail to subtract from it.
2020-09-12 14:04:43 +02:00
edef
c00b42dced
don't try to load HYDRA_LDAP_CONFIG if none is provided
2020-09-09 13:02:51 +02:00
ajs124
28646e1c5f
Initial attempt at adding LDAP login support
2020-09-09 13:00:34 +02:00
Eelco Dolstra
e707990e2d
Merge pull request #804 from grahamc/fully-static-jobsets
...
declarative projects: support fully static, declarative configuration
2020-09-02 21:09:01 +02:00
Graham Christensen
7f16c0d243
declarative projects: support fully static, declarative configuration
2020-09-02 12:35:41 -04:00
Graham Christensen
648eb980dd
hydra-notify: autoflush stdout too
2020-09-02 12:35:18 -04:00
Casey Ransom
03be8ae7a1
Remove image dependency on hydra.nixos.org
...
Also standardize the slack image size on 256 pixels.
2020-09-01 15:13:12 -04:00
Eelco Dolstra
405c52b589
Fix build
2020-08-27 17:46:36 +02:00
Eelco Dolstra
1113c2895a
Fix build
2020-08-07 21:42:09 +02:00
Eelco Dolstra
f8e15bc311
Revive putBytes
2020-08-04 18:25:21 +02:00
Eelco Dolstra
4b5813051b
unsigned long long -> uint64_t
2020-08-04 11:38:22 +02:00
Eelco Dolstra
7d3ba616a9
Fix build
2020-08-04 11:33:29 +02:00
Eelco Dolstra
77c33c1d71
Restore NoCheckSigs
...
https://github.com/NixOS/nixpkgs/pull/93945#issuecomment-668244478
2020-08-04 10:53:06 +02:00
Eelco Dolstra
8722927c08
Copy paths in the right order
2020-07-28 13:46:57 +02:00
Eelco Dolstra
58a8b1c91c
Keep the SHA-1 column in existing installations
2020-07-28 11:47:44 +02:00
Eelco Dolstra
a0e24f446b
Remove unused getMemSize() function
2020-07-27 20:40:57 +02:00
Eelco Dolstra
5b4df3ad5a
Get data needed by getBuildOutput() from the incoming NAR in a streaming fashion
2020-07-27 20:38:59 +02:00
Eelco Dolstra
d4e4be4fd1
Remove SHA-1 hash from BuildProducts
...
SHA-1 is deprecated and it will be expensive to compute with the
streaming NAR handler.
2020-07-27 18:24:10 +02:00
Eelco Dolstra
7622cbfe37
buildRemote(): Copy paths to the destination store in O(1) memory
2020-07-27 18:11:04 +02:00
Eelco Dolstra
cbcf6359b4
Remove TokenServer in preparation of making NAR copying O(1) memory
2020-07-27 14:57:22 +02:00
Eelco Dolstra
e5f6fc2e4e
Quick hack to fix compilation
2020-07-27 14:53:43 +02:00
Bas van Dijk
48678df8b6
updateDeclarativeJobset: only set the emailresponsible column when defined ( #788 )
2020-07-08 19:08:11 -04:00
Eelco Dolstra
7985757a1d
Fix build
2020-07-08 12:50:02 +02:00
Eelco Dolstra
b0163e9eae
Fix project creation by non-admin users
2020-07-08 12:26:46 +02:00
Eelco Dolstra
bb32aafa4a
Fix build
2020-06-23 13:56:44 +02:00
Eelco Dolstra
1831866a52
Merge pull request #692 from knl/emit-hostname-with-influxdb-metrics
...
Add host tag to InfluxDB metrics
2020-06-10 10:57:17 +02:00
Eelco Dolstra
56b1660c4d
Merge pull request #775 from knl/path-input-cache-validity-fix
...
Make PathInput plugin cache validity configurable
2020-06-05 17:22:07 +02:00
Eelco Dolstra
5f1faf4cb4
Merge pull request #779 from knl/there-is-no-hydra-postgresql.sql-anymore
...
Remove references to hydra-postgresql.sql
2020-06-05 17:21:40 +02:00
Nikola Knezevic
e34d40d4f8
Remove dead method from Nix.pm
...
This method has been moved to hydra-eval-jobset a long time ago.
2020-06-05 15:01:36 +02:00
Nikola Knezevic
3acdd21569
Remove references to hydra-postgresql.sql
...
As of https://github.com/NixOS/hydra/pull/737 (removal of sqlite
dependency), the only supported database is Postgresql.
This change removes all references to hydra-postgresql.sql file. This
file is generated using a cpp on hydra.sql, but doesn't differ from
hydra.sql at all.
2020-06-05 13:42:56 +02:00