Gitlab runner 7.2 has updated its config to use datetime TOML values instead of strings. The gitlab-runner-configure bash script tries to convert this TOML config into a JSON config so it can manipulate it. This fails because there's no datetime equivalent in JSON.
Steps To Reproduce
Steps to reproduce the behavior:
Be running nixos-unstable (24.05 works fine because it uses Gitlab runner 7.1)
Install/configure gitlab-runner and enable the systemd service
Restart your system
Gitlab-runner has failed to start: Error: Cannot convert data to JSON (Object of type datetime is not JSON serializable)
Describe the bug
Gitlab runner 7.2 has updated its config to use datetime TOML values instead of strings. The gitlab-runner-configure bash script tries to convert this TOML config into a JSON config so it can manipulate it. This fails because there's no datetime equivalent in JSON.
Steps To Reproduce
Steps to reproduce the behavior:
Error: Cannot convert data to JSON (Object of type datetime is not JSON serializable)
Expected behavior
Gitlab-runner starts consistently on every reboot
Screenshots
Additional context
The problematic code appears to be here: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/continuous-integration/gitlab-runner.nix#L81
Instead of converting to JSON and back again, I think we want to manipulate the TOML directly
Metadata
NOTE - this is from after I downgraded to 24.05. I could only reproduce the issue on nixos-unstable
Notify maintainers
@zimbatm @globin @krav @talyz @yayayayaka
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.