3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

25 commits

Author SHA1 Message Date
Pavol Rusnak 3dc3e1ef58
Merge pull request #152387 from kfollesdal/kfollesdal/github-runner_2.286.0
github-runner update to 2.286.0 with dotnet sdk 6.0
2022-01-03 17:08:44 +01:00
Vincent Haupert 8b138c9031 github-runner: Extend script to update all platform deps
Runs `dotnet restore` for all supported platforms (`x86_64-linux` and
`arm64-linux` at the moment) in the update script.
2021-12-30 00:34:50 +01:00
Kristoffer Føllesdal c8b997df95 github-runner: Add @kfollesdal to maintainers 2021-12-30 00:21:04 +01:00
Kristoffer Føllesdal a32ca2885c github-runner: Add script to create deps.nix.
Add create-deps-file script at github-runner.passthru.createDepsFile
Recreate deps.nix with new script.
2021-12-30 00:21:04 +01:00
Vincent Haupert 01ad24db55 github-runner: install bundled Node.js scripts
Fixes a bug which caused workflow steps to fail if they called the
`hashFiles` expression function; we didn't install it. This commit makes
sure the Nodejs script is in the expected location.

Same applies for the scripts in the `checkScripts` directory which we
missed to install so far.
2021-12-29 17:45:58 +01:00
Kristoffer Føllesdal 24b79667cf github-runne: 2.285.1 -> 2.286.0 2021-12-29 12:32:32 +01:00
Vincent Haupert d498380c88 github-runner: 2.285.0 -> 2.285.1 2021-12-11 18:43:05 +01:00
Vincent Haupert 5f0466376b github-runner: 2.284.0 -> 2.285.0
Adds support for Node.js 16.
2021-12-03 00:07:41 +01:00
Claudio Bley 5913fdbd0b
github-runner: Update dependencies 2021-11-16 15:54:33 +01:00
R. Ryantm 5ca614d397 github-runner: 2.283.3 -> 2.284.0 2021-11-03 03:40:48 +00:00
Alex Martens 0b15a9997c github-runner: add aarch64-linux to platforms 2021-10-16 14:52:38 -07:00
Vincent Haupert f6db206386
github-runner: 2.283.1 -> 2.283.3 2021-10-06 10:56:41 +02:00
R. RyanTM e095423d1b github-runner: 2.282.1 -> 2.283.1 2021-09-22 21:59:25 +00:00
Claudio Bley 573e3931f3 github-runner: Update dependencies 2021-09-17 10:11:27 -07:00
R. RyanTM af750c6f54 github-runner: 2.282.0 -> 2.282.1 2021-09-16 09:17:36 +00:00
Vincent Haupert cd641476cf
github-runner: 2.281.1 -> 2.282.0 2021-09-14 15:46:20 +02:00
Vincent Haupert e8bbcc79fd
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.
2021-09-13 19:15:34 +02:00
Vincent Haupert cc5c902fdf
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.
2021-09-13 19:15:33 +02:00
Vincent Haupert 1614fc6eb6
github-runner: adapt to latest lttng-ust
ref: ab2501bd17
2021-09-07 16:16:29 +02:00
Vincent Haupert ebcf2468ac
github-runner: 2.279.0 -> 2.281.1 2021-09-07 16:03:38 +02:00
Vincent Haupert 0d1e42786e
github-runner: make derivation easier to override 2021-09-07 15:52:29 +02:00
Vincent Haupert a4c132fd65 github-runner: 2.278.0 -> 2.279.0 2021-07-22 10:32:03 -07:00
Vincent Haupert 6477046b53
github-runner: 2.277.1 -> 2.278.0 2021-04-22 21:46:37 +02: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 193ac67ba3.

* 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