Commit Graph

344 Commits

Author SHA1 Message Date
Vincent Haupert 287cf39c34 github-runner: 2.283.1 -> 2.283.3
(cherry picked from commit f6db2063862470a1edc9592222e18b8cf00a114e)
2021-10-08 13:27:25 +00:00
R. RyanTM 55c082a0b4 github-runner: 2.282.1 -> 2.283.1
(cherry picked from commit e095423d1b01e18fc315306619d3e7671a0d5655)
2021-10-08 06:24:50 +00:00
R. RyanTM e14424cb36 github-runner: 2.282.0 -> 2.282.1
(cherry picked from commit af750c6f54faf7ec63c473e0609a0892de0cef6a)
2021-09-16 21:35:02 +00:00
Vincent Haupert d58baa249b github-runner: 2.281.1 -> 2.282.0
(cherry picked from commit cd641476cfcf8d5494e661debac9a3fe40f4cf32)
2021-09-15 09:50:00 +00:00
Vincent Haupert ca41e07801 github-runner: prevent self-updates
As of yet, a patch caused the runner to discard update messages.
Unfortunately, GitHub keeps sending update messages to outdated runners
causing them to no longer pick up jobs.

This commit causes the runner to send a high version to GitHub which
should be more recent for quite a time. That way, GitHub does not send
update message and keeps scheduling jobs even for outdated runners.

Naturally, an oudated runner can still break at any time as GitHub's
current approach assumes that all runners are always up-to-date. We
should still strive for quick nixpkgs updates but this patch should give
us some time.

(cherry picked from commit e8bbcc79fd07014b146835dfd7f5eba2079d9a55)
2021-09-15 09:49:59 +00:00
Vincent Haupert 04e8a8cd56 github-runner: use dummy SHA-1 as `GitInfoCommitHash`
The runner only references `GitInfoCommitHash`/`CommitHash` to print
informational log entries. To allow for just referencing the tag of a
version instead of the commit hash, this commit sets the value of the
`GitInfoCommitHash` to a static dummy value.

(cherry picked from commit cc5c902fdf94b798c3b68e55ebb7e1a1185113a1)
2021-09-15 09:49:58 +00:00
Vincent Haupert 364426a01d github-runner: adapt to latest lttng-ust
ref: ab2501bd171f2c930ebd3f3bf6b6a1a228477a08
(cherry picked from commit 1614fc6eb63d012b704cbb34b9c53c823d51c32c)
2021-09-09 07:40:18 +00:00
Vincent Haupert ae4d181d6a github-runner: 2.279.0 -> 2.281.1
(cherry picked from commit ebcf2468ac67b473821946a6d5539c001861b465)
2021-09-09 07:40:17 +00:00
Vincent Haupert 9214e84299 github-runner: make derivation easier to override
(cherry picked from commit 0d1e42786e6bc5249248e50793f9f8537aaad857)
2021-09-09 07:40:17 +00:00
Tim Steinbach b5c0ce5bef jenkins: 2.289.3 → 2.303.1
(cherry picked from commit 1342c4648b6f04064882daacdfc6a5650d406700)
2021-09-08 18:04:54 +02:00
R. RyanTM 9778fa8f68 jenkins: 2.289.2 -> 2.289.3
(cherry picked from commit 7bc3dafc445c303c28b364aedeca5f130cde4159)
2021-09-08 18:04:54 +02:00
Pamplemousse 49ce509559 jenkins: Create the `jenkins-cli` command
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
(cherry picked from commit 6f6c649ec606d6ec5bd5874002fda6efb568e9ec)
2021-09-08 18:04:54 +02:00
R. RyanTM 2cf1fe5491 jenkins: 2.289.1 -> 2.289.2
(cherry picked from commit ad67354d1dc761892afa1b94542cd15621bd1ccf)
2021-09-08 18:04:54 +02:00
R. RyanTM 4b14b10ffb jenkins: 2.277.4 -> 2.289.1
(cherry picked from commit 14a6aedeeacac931e2ab96395de82831298f3188)
2021-09-08 18:04:54 +02:00
Vincent Haupert e09e2140f5 github-runner: 2.278.0 -> 2.279.0
(cherry picked from commit ebac942e1c2708f02a5982dbf450ae412739cffe)
2021-07-29 10:12:31 +00:00
Jonas Chevalier 7c6c48ab9c
gitlab-runner: fix wrong hash (#124033) 2021-05-22 17:23:37 +02:00
Max Wittig fba98bad71
gitlab-runner: 13.11.0 -> 13.12.0 (#123871) 2021-05-21 17:38:07 +00:00
Léo Gaspard 08b00c20e0
Merge pull request #118442 from Ekleog/nixos-tests
Add nixos tests with names starting by A or B to all relevant packages
2021-05-09 00:37:26 +02:00
R. RyanTM 9cb8e1ea06 jenkins: 2.277.3 -> 2.277.4 2021-05-08 15:10:03 -07:00
Léo Gaspard 7c17768a48 buildkite-agent: add link to nixos test 2021-05-08 21:41:35 +02:00
Robert Hensing 7bd3c0c2df hercules-ci-agent: Add passthru test for NixOS module eval 2021-05-04 16:58:07 +02:00
Luke Granger-Brown 3e473120d9
Merge pull request #120153 from r-ryantm/auto-update/buildkite-agent
buildkite-agent: 3.28.1 -> 3.29.0
2021-05-01 18:23:18 +01:00
Vincent Haupert 6477046b53
github-runner: 2.277.1 -> 2.278.0 2021-04-22 21:46:37 +02:00
R. RyanTM 30f7281d99 buildkite-agent: 3.28.1 -> 3.29.0 2021-04-22 06:46:13 +00:00
Tim Steinbach 529ecceaa6 jenkins: 2.277.2 → 2.277.3 2021-04-21 22:38:53 +02:00
Max Wittig 9b9782834d
gitlab-runner: 13.10.0 -> 13.11.0 2021-04-21 11:04:21 +02:00
Dmitry Bogatov 9479e4f0a1 laminar: use more specific license (gpl3 -> gpl3Plus) 2021-04-20 00:00:00 +00:00
R. RyanTM 13ff90fa44 fly: 7.1.0 -> 7.2.0 2021-04-15 02:16:50 -04:00
Dmitry Kalinkin c32ba28e67
github-runner: fix eval (#119011) 2021-04-10 07:14:10 -04:00
Vincent Haupert f4af2f267a
nixos/github-runner: init at v2.277.1 (#116775)
* github-runner: init at 2.277.1

* nixos/github-runner: initial version

* nixos/github-runner: add warning if tokenFile in Nix store

* github-runner: don't accept unexpected attrs

* github-runner: formatting nits

* github-runner: add pre and post hooks to checkPhase

* nixos/github-runner: update ExecStartPre= comment

* nixos/github-runner: adapt tokenFile option description

Also note that not only a change to the option value will trigger a
reconfiguration but also modifications to the file's content.

* nixos/github-runner: remove mkDefault for DynamicUser=

* nixos/github-runner: create a parent for systemd dirs

Adds a parent directory "github-runner/" to all of the systemd lifecycle
directories StateDirectory=, RuntimeDirectory= and LogDirectory=.

Doing this has two motivations:

1. Something like this would required if we want to support multiple
   runners configurations. Please note that this is already possible
   using NixOS containers.
2. Having an additional parent directory makes it easier to remap
   any of the directories. Without a parent, systemd is going to
   complain if, for example, the given StateDirectory= is a symlink.

* nixos/github-runner: use specifier to get abs runtime path

* nixos/github-runner: use hostname as default for option `name`

Until now, the runner registration did not set the `--name` argument if
the configuration option was `null`, the default for the option.
According to GitHub's documentation, this instructs the registration
script to use the machine's hostname.

This commit causes the registration to always pass the `--name` argument
to the runner configuration script. The option now defaults to
`networking.hostName` which should be always set on NixOS.

This change becomes necessary as the systemd service name includes the
name of the runner since fcfa809 and, hence, expects it to be set. Thus,
an unset `name` option leads to an error.

* nixos/github-runner: use types.str for `name` option

Forcing a `name` option to comply with a pattern which could also be
used as a hostname is probably not required by GitHub.

* nixos/github-runner: pass dir paths explicitly for ExecStartPre=

* nixos/github-runner: update variable and script naming

* nixos/github-runner: let systemd choose the user/group

User and group naming restrictions are a complex topic [1] that I don't
even want to touch. Let systemd figure out the username and group and
reference it in our scripts through the USER environment variable.

[1] https://systemd.io/USER_NAMES/

* Revert "nixos/github-runner: use types.str for `name` option"

The escaping applied to the subdirectory paths given to StateDirectory=,
RuntimeDirectory= and LogsDirectory= apparently doesn't use the same
strategy that is used to escape unit names (cf. systemd-escape(1)). This
makes it unreasonably hard to construct reliable paths which work for
StateDirectory=/RuntimeDirectory=/LogsDirectory= and ExecStartPre=.

Against this background, I decided to (re-)apply restrictions to the
name a user might give for the GitHub runner. The pattern for
`networking.hostName` seems like a reasonable choice, also as its value
is the default if the `name` option isn't set.

This reverts commit 193ac67ba337990c22126da24a775c497dbc7e7d.

* nixos/github-runner: use types.path for `tokenFile` option

* nixos/github-runner: escape options used as shell arguments

* nixos/github-runner: wait for network-online.target

* github-runner: ignore additional online tests
2021-04-10 10:17:10 +00:00
Sandro 5dabc86289
Merge pull request #118748 from NeQuissimus/jenkins
jenkins: 2.277.1 → 2.277.2
2021-04-07 23:24:41 +02:00
Tim Steinbach 5e504f87a8
jenkins: 2.277.1 → 2.277.2 2021-04-07 18:01:25 +00:00
Dmitry Bogatov 19b0f5623d laminar: use "pname" instead of "name" in mkDerivation 2021-04-04 00:00:00 +00:00
Simon Bruder d04389aeb2
drone: add option to build oss edition
By default drone is distributed under an unfree license that only
permits non-commercial or evaluation use. To build the OSS edition, two
tags have to be passed as build flags. This commit adds an option to
build the OSS edition to the package and defines drone-oss as an alias
for this.
2021-03-30 17:16:22 +02:00
ivanbrennan 0be7adbc6c
fly: remove writeText
The writeText argument is unused. It was originally used to copy a bash
completion script into the derivation, but a different approach was
chosen, and I simply forgot to remove the writeText argument.

78013b4ecc
https://github.com/NixOS/nixpkgs/pull/64714#discussion_r303216977
2021-03-28 14:05:20 -04:00
R. RyanTM 5498ac7c50 buildkite-agent: 3.27.0 -> 3.28.1 2021-03-23 23:24:59 -07:00
Danielle ded9ada2b1
drone-runner-docker: init at 1.6.3 (#117239)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-03-23 15:46:04 +01:00
Max Wittig 7fdf3c30a7
gitlab-runner: 13.9.0 -> 13.10.0 2021-03-22 10:27:27 +01:00
Sandro 19acaca157
Merge pull request #116131 from r-ryantm/auto-update/buildkite-cli
buildkite-cli: 1.1.0 -> 1.2.0
2021-03-22 01:25:13 +01:00
Robert Scott 996b14f610
Merge pull request #116614 from r-ryantm/auto-update/fly
fly: 7.0.0 -> 7.1.0
2021-03-19 23:13:22 +00:00
R. RyanTM 6fdb1772f3 fly: 7.0.0 -> 7.1.0 2021-03-17 11:55:47 +00:00
R. RyanTM fddb829150 buildkite-cli: 1.1.0 -> 1.2.0 2021-03-13 02:43:35 +00:00
github-actions[bot] b0a6c2b8a5
Merge master into staging-next 2021-03-13 00:38:26 +00:00
Peter Simons 795ef4f46f
Merge pull request #115256 from NixOS/haskell-updates
Update Haskell package set to Stackage Nightly 2021-03-06 (plus other fixes)
2021-03-12 20:53:42 +01:00
github-actions[bot] 903fc48674
Merge master into staging-next 2021-03-12 00:39:51 +00:00
Tim Steinbach ddae5e706e
jenkins: 2.263.4 → 2.277.1 2021-03-11 14:14:45 +00:00
Robert Hensing fdfbd17b70 hci: init at 0.1.0 2021-03-09 16:38:20 +01:00
Robert Hensing c0a3fd18ca hercules-ci-agent: Fix and update build 2021-03-09 16:38:20 +01:00
github-actions[bot] 65cddb74d7
Merge staging-next into staging 2021-03-07 06:17:25 +00:00
Jörg Thalheim f003d2c9ce
drone-runner-exec: init at unstable-2020-04-19 (#115003)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-03-07 04:35:30 +01:00