nixpkgs/nixos/modules/services/continuous-integration
Maximilian Bosch bd5324c4fc
hydra: 2020-02-06 -> 2020-03-{24,27}
Upgrades Hydra to the latest master/flake branch. To perform this
upgrade, it's needed to do a non-trivial db-migration which provides a
massive performance-improvement[1].

The basic ideas behind multi-step upgrades of services between NixOS versions
have been gathered already[2]. For further context it's recommended to
read this first.

Basically, the following steps are needed:

* Upgrade to a non-breaking version of Hydra with the db-changes
  (columns are still nullable here). If `system.stateVersion` is set to
  something older than 20.03, the package will be selected
  automatically, otherwise `pkgs.hydra-migration` needs to be used.

* Run `hydra-backfill-ids` on the server.

* Deploy either `pkgs.hydra-unstable` (for Hydra master) or
  `pkgs.hydra-flakes` (for flakes-support) to activate the optimization.

The steps are also documented in the release-notes and in the module
using `warnings`.

`pkgs.hydra` has been removed as latest Hydra doesn't compile with
`pkgs.nixStable` and to ensure a graceful migration using the newly
introduced packages.

To verify the approach, a simple vm-test has been added which verifies
the migration steps.

[1] https://github.com/NixOS/hydra/pull/711
[2] https://github.com/NixOS/nixpkgs/pull/82353#issuecomment-598269471
2020-03-28 23:33:25 +01:00
..
buildbot nixos/buildbot: fix eval 2020-01-08 10:06:08 -05:00
gocd-agent treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
gocd-server treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
hydra hydra: 2020-02-06 -> 2020-03-{24,27} 2020-03-28 23:33:25 +01:00
jenkins nixos/jenkins/slave: fix eval 2020-01-12 15:17:05 -05:00
buildkite-agents.nix nixos/buildkite-agents: fix hooksDir assertion 2020-02-19 12:22:35 +01:00
gitlab-runner.nix nixos/gitlab-runner: add missing HOME to environment (#67450) 2019-08-28 20:27:28 +00:00
hail.nix nixos/hail: init (#28442) 2017-08-23 18:23:13 +00:00