Commit graph

96 commits

Author SHA1 Message Date
magic_rb 16d4308d29 Fix GitHub InstallationToken renewal.
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-13 10:54:09 +02:00
magic_rb 300fd88394
Fix treefmt errors introduced in #156
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-12 18:59:23 +02:00
Richard Brežák 7e327b88b6
Merge pull request #156 from MagicRB/github_app
Add GitHub App support
2024-06-12 15:40:19 +00:00
magic_rb 0ac5dcb33d
Fix GitHub App backend failing if project-id-map disappears
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-12 17:36:43 +02:00
magic_rb 467b9164de
Fix app_project_id_map_name in GitHub App backend, not having a .json extension
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-12 17:36:08 +02:00
magic_rb eeb21e9ddd
Streamline Legacy <-> App GitHub auth backend migrations
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-12 17:19:11 +02:00
Jörg Thalheim 9f04067a6a bust cache after adding installation_id 2024-06-12 07:58:34 +02:00
Jörg Thalheim 30a49d4e88 fix typo in class name 2024-06-07 16:55:36 +02:00
Jörg Thalheim 4357604463 add assert message to get_repo_token 2024-06-07 16:50:03 +02:00
magic_rb 475fbf3952 Fix GitHub avatars for GitHub Apps
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-07 08:16:40 +00:00
magic_rb 5dc05ea3fe Fix GitHub installation tokens not getting updated in the cache file
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-07 08:16:40 +00:00
magic_rb 067f3e0fc1 Add GitHub App support
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-07 08:16:39 +00:00
magic_rb 12e9d639df
Fix Gitea backend not authenticating properly with Gitea
Signed-off-by: magic_rb <richard@brezak.sk>
2024-06-02 16:30:29 +02:00
Jörg Thalheim 48d3f2dedc gitea: don't drop pull request events 2024-05-03 20:36:17 +02:00
Jörg Thalheim 1153510b04 Revert "don't block CI on github status updates"
This reverts commit 0bb55aaa8dfe98dc81c993d647ba814ebd9df260.
2024-05-03 20:36:17 +02:00
Jörg Thalheim f0f934bf11 don't block CI on github status updates 2024-05-03 11:51:34 +00:00
Jörg Thalheim a36953b52d gitea: fix testing pull requests 2024-05-03 10:20:55 +00:00
Jörg Thalheim 5e37a99685 github: only include properties that we actually use for performance 2024-05-02 04:29:28 +00:00
Jörg Thalheim 4f78c6e7f7 gitea: expect full instance url 2024-05-01 12:00:45 +02:00
Jörg Thalheim 993b5e822a log worker name on startup 2024-04-30 18:03:29 +02:00
Jörg Thalheim 56899cd29c fix printing errors in project reload hooks 2024-04-30 18:03:29 +02:00
Jörg Thalheim 6ae08b645c make it possible to disable github 2024-04-30 17:32:40 +02:00
magic_rb 3f01a96147 Add Gitea backend
Signed-off-by: magic_rb <richard@brezak.sk>
2024-04-29 18:30:15 +02:00
magic_rb 1605d2d3c2 Remove assumption of GitHub being the only forge
Signed-off-by: magic_rb <richard@brezak.sk>
2024-04-29 18:29:35 +02:00
Jörg Thalheim cb1e2640cd make worker name configurable 2024-04-15 15:17:25 +02:00
Jörg Thalheim 5f92033b61 git clone project if it doesn't exist yet in local-merge case 2024-04-11 10:47:06 +00:00
Jörg Thalheim 956e8e0a67 do merges locally 2024-04-06 18:54:58 +02:00
Jörg Thalheim 35c3fb64c8 fix users not beeing able to restart virtual builders 2024-03-07 22:58:37 +01:00
Jörg Thalheim 3c1e2c0e76 cleanup drv gcroots after a build 2024-01-15 13:17:19 +00:00
Jörg Thalheim c9e850ff32 only refresh github projects in timer and sort them
This way errors are more visible to users on the first running.

Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2024-01-08 11:45:01 +00:00
Jörg Thalheim f69a37a69e relax concurrent builds
So far we cannot have builds running concurrently, whereas we only would
need to be strict about nix evaluation to stay below memory limits.
2024-01-05 08:49:54 +01:00
Jörg Thalheim b2467c4ac5 typecheck twisted 2024-01-01 15:38:28 +00:00
Jörg Thalheim 6882c81e90 fixup logger warning call 2024-01-01 08:05:12 +01:00
Jörg Thalheim acdab58765 worker: fix basedir 2023-12-27 10:25:28 +00:00
Jörg Thalheim 645c7fd0cc fix workername formatting 2023-12-27 10:25:28 +00:00
Jörg Thalheim 8b9c060dbe fix new linting errors 2023-12-26 22:36:40 +01:00
Jörg Thalheim 35079f89e7 apply ruff 2023-12-26 19:50:34 +01:00
Jörg Thalheim f56e43267d expose cachix options explictly 2023-12-24 07:10:01 +00:00
Jörg Thalheim 232a617fe1 let nix handle the silent timeout of builds 2023-12-22 14:40:31 +01:00
Jörg Thalheim a13cd78a1c drop prometheus exporter again
User can add this themself
2023-12-08 11:11:48 +00:00
Jörg Thalheim 48ea2f7db4 GithubAuth: increase apiVersion to 4 2023-12-08 11:11:48 +00:00
Jörg Thalheim cbe4ce0571 move extraConfig into configurator
extraConfig can be only set once. By moving it to the configurator we allow users to set this option themself.
2023-12-08 11:11:48 +00:00
Jörg Thalheim dd6eacc4c4 allow all members in an org to restart/cancel/trigger builds 2023-12-08 11:11:48 +00:00
Jörg Thalheim ed8a6c0333 git: fix retry message 2023-12-04 10:20:27 +01:00
Jörg Thalheim 590f31eb6f retry git clonning errors 2023-12-03 15:10:16 +00:00
Jörg Thalheim b33d7e5a3e drop nix_update_flake_config pipeline
This is better offloaded to tools like dependabot/renovatebot.
I will probably work on integrate the latter one.
2023-12-03 15:10:16 +00:00
Jörg Thalheim 49f97876d5 fix status_name and virtual_builder_name 2023-11-20 09:07:45 +01:00
Jörg Thalheim 9d80f5f2c7 move skipped builds to local worker 2023-11-18 10:13:16 +01:00
Jörg Thalheim 392329ea71 fix conditionals when skipping cached builds 2023-11-18 07:02:34 +01:00
Jörg Thalheim 37372c90da skip cached builds 2023-11-17 18:04:27 +01:00