Commit graph

370 commits

Author SHA1 Message Date
Skyler Grey a5b34ea356 fix: Correct output path with failed builds
Previously, if a build failed to produce any output we would try to
write "None" to the output file. This doesn't work, causing the job to
error. Instead, we should skip writing the output and preserve the
original "failed" status.
2024-09-11 20:54:03 +00:00
Skyler Grey 46800094bb feat!: Update output path writing
- Allow pull requests to create output paths

Previously, it was not possible to get unmerged pull request outputs. I
would like to access these (e.g. for hosting a preview version of a
website in a similar way to https://docs.netlify.com/site-deploys/deploy-previews/
or https://vercel.com/docs/deployments/preview-deployments)

These are now surfaced under `{owner}/{repo}/pulls/{pr number}`

- Fix repository attribute name conflicts

Previously there was no difference between samely-named attributes in
different repositories.

This has been changed so outputs are under `{owner}/{repo}/{branch}`

- Allow full attribute names, still stripping path traversal

Previously, presumably to prevent path traversal, if your attribute name
contained slashes buildbot-nix would only take the last segment as an
output.

This has been replaced by interpreting slashes as subdirectories and
refusing any segments which don't descend into a subdirectory (i.e. are
attempting path traversal)

- Still create outputs on skipped builds

Previously when something was skipped, for example a build that was
completed in a pull request, the output wouldn't be updated. This made
the outputs directory quite unreliable.

Outputs will now always be updated, no matter whether a build was
actually executed.

BREAKING-CHANGE: This stops old output locations being outputted. If you rely on these locations, you will need to update whatever relies on them.
2024-07-28 09:06:51 +00:00
magic_rb 62e7fc4d88 Actually fix Cachix, attempt 3
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-27 14:14:23 +00:00
Jörg Thalheim 225d286fa7 make release 2024-07-26 20:26:45 +00:00
Jörg Thalheim f5fd4bf2a8 fix cachix usage 2024-07-26 17:39:07 +00:00
Jörg Thalheim eb746d95a4 make first release 2024-07-26 13:50:07 +02:00
Jörg Thalheim 2620f2cd31
Merge pull request #217 from MagicRB/combined-build-reports-github
Combined build reports GitHub
2024-07-26 13:47:13 +02:00
Jörg Thalheim c9b6d013d7
Merge pull request #235 from MagicRB/catch-silent-disable-of-cachix
Add check, which catchis silent disabling of cachix
2024-07-26 13:05:23 +02:00
magic_rb 36ef50e49f
Add check, which catchis silent disabling of cachix
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 12:23:05 +02:00
magic_rb 0ecf33f8d4
Reformat gitea_projects.py, __init__.py, and github_projects.py
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:53:06 +02:00
magic_rb 19d5cdd29a Hide gcroot registration steps from the reporters
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:37:23 +02:00
magic_rb d44dc3da09
Fix Gitea backend using the Gitea url as a webhook url
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:37:10 +02:00
magic_rb 437ebc49b9 Support combined builds for Gitea
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:23:49 +02:00
magic_rb e53acc6660 Support setting jobReportLimit to 0, which always combines bulids
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:23:49 +02:00
magic_rb 28b6da6e73
Make the cut off point for combining build reports customizable.
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:23:38 +02:00
magic_rb dd2df67009 Combine build reports for GitHub if there are too many
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 11:09:12 +02:00
Jörg Thalheim 7480ee03b3 jwt: fix passing private_key_file to command 2024-07-26 06:13:34 +00:00
Jörg Thalheim eb6fae3100 fix linter errros 2024-07-26 06:13:34 +00:00
magic_rb 6e8e735628 Utilize pydantic for serialization and deserialization
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-26 06:13:34 +00:00
github-actions[bot] 9086472a5f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/a2aeb0fcca8ef063c03ef57fa5de49084d4e9687?narHash=sha256-GOwbtcTDS7KnVseckF%2BH8OCRNrwYEqCZ34QOZ%2Bi51e4%3D' (2024-07-20)
  → 'github:Nixos/nixpkgs/1855c9961e0bfa2e776fa4b58b7d43149eeed431?narHash=sha256-o87oh2nLDzZ1E9%2Bj1I6GaEvd9865OWGYvxaPSiH9DEU%3D' (2024-07-24)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/888bfb10a9b091d9ed2f5f8064de8d488f7b7c97?narHash=sha256-wNXLQ/ATs1S4Opg1PmuNoJ%2BWamqj93rgZYV3Di7kxkg%3D' (2024-07-20)
  → 'github:numtide/treefmt-nix/8db8970be1fb8be9c845af7ebec53b699fe7e009?narHash=sha256-6Pqa0bi5nV74IZcENKYRToRNM5obo1EQ%2B3ihtunJ014%3D' (2024-07-23)
2024-07-25 01:50:30 +00:00
github-actions[bot] be581a5320 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/7edc243443b44444eba596557de03ee52beca2eb?narHash=sha256-aOiSBcftoGye0spDdIylZE6TVTo7C/B4atYH25tSemQ%3D' (2024-07-17)
  → 'github:Nixos/nixpkgs/a2aeb0fcca8ef063c03ef57fa5de49084d4e9687?narHash=sha256-GOwbtcTDS7KnVseckF%2BH8OCRNrwYEqCZ34QOZ%2Bi51e4%3D' (2024-07-20)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/0fb28f237f83295b4dd05e342f333b447c097398?narHash=sha256-gCICMMX7VMSKKt99giDDtRLkHJ0cwSgBtDijJAqTlto%3D' (2024-07-15)
  → 'github:numtide/treefmt-nix/888bfb10a9b091d9ed2f5f8064de8d488f7b7c97?narHash=sha256-wNXLQ/ATs1S4Opg1PmuNoJ%2BWamqj93rgZYV3Di7kxkg%3D' (2024-07-20)
2024-07-21 01:54:58 +00:00
Jörg Thalheim 5bdbb76096
Merge pull request #229 from MagicRB/support-other-caches
Generalize Cachix support to `post_build_steps`
2024-07-19 17:27:23 +02:00
Jörg Thalheim 69f357021e
nix/master: describe how to inject secrets. 2024-07-19 17:16:48 +02:00
magic_rb 8a6d34b83c Create gcroots on skipped builds too
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-19 15:09:38 +00:00
magic_rb e99623b2f6
Generalize Cachix support to post_build_steps
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-18 17:39:36 +02:00
github-actions[bot] a50a29f71b flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/19116ccf234e32acf133863d430506da68008550?narHash=sha256-1K32XHPcQBo8XdLDQNybfLQc9I8hqSZdjA/Ur3zW/io%3D' (2024-07-13)
  → 'github:Nixos/nixpkgs/7edc243443b44444eba596557de03ee52beca2eb?narHash=sha256-aOiSBcftoGye0spDdIylZE6TVTo7C/B4atYH25tSemQ%3D' (2024-07-17)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/5b002f8a53ed04c1a4177e7b00809d57bd2c696f?narHash=sha256-f52x9srIcqQm1Df3T%2BxYR5P6VfdnDFa2vkkcLhlTp6U%3D' (2024-07-12)
  → 'github:numtide/treefmt-nix/0fb28f237f83295b4dd05e342f333b447c097398?narHash=sha256-gCICMMX7VMSKKt99giDDtRLkHJ0cwSgBtDijJAqTlto%3D' (2024-07-15)
2024-07-18 01:49:23 +00:00
Jörg Thalheim 93942c0a66 also introduce buildbotNixpkgs for buildbot-worker module 2024-07-14 16:52:57 +00:00
Jörg Thalheim b896d5fb7f
Merge pull request #222 from nix-community/react
switch to www package back
2024-07-14 04:58:37 +02:00
Jörg Thalheim 0b301f0782 switch to www package back 2024-07-14 04:50:23 +02:00
Jörg Thalheim 5163434da6 github/reporter: use properties to render github secret 2024-07-14 02:48:29 +00:00
Jörg Thalheim e8a88f8f15 use nixos options instead of nixpkgs overlay
The overlay will break if buildbot in unstable will change it's python
override in nixpkgs.
This will happen in the next release when sqlalchemy will be update.

Also I have at least three installations where I share nixpkgs instances
across multiple nixos configuration for performance reasons,
where I cannot use overlays defined in a NixOS module.
2024-07-14 02:48:29 +00:00
Jörg Thalheim 6efd536381 remove unused fixPatch 2024-07-14 02:48:29 +00:00
magic_rb c3346978d5 Support per installation tokens directly in GitHubStatusPush
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-14 02:48:29 +00:00
magic_rb 4b8c544db8 Vendor buildbot from the nixpkgs input (nixpkgs-unstable-small)
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-14 02:48:29 +00:00
github-actions[bot] fade46ad70 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/e01511309fe8b0432aa58a547365e51d5a3ecf85?narHash=sha256-UONPcQR2r0voopd6pcNFmUv7p4TJPeAXzwnqWmaPujw%3D' (2024-07-10)
  → 'github:Nixos/nixpkgs/19116ccf234e32acf133863d430506da68008550?narHash=sha256-1K32XHPcQBo8XdLDQNybfLQc9I8hqSZdjA/Ur3zW/io%3D' (2024-07-13)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/750dfb555b5abdab4d3266b3f9a05dec6d205c04?narHash=sha256-vAeYp%2BWH7i/DlBM5xNt9QeWiOiqzzf5abO8DYGkbUxg%3D' (2024-07-10)
  → 'github:numtide/treefmt-nix/5b002f8a53ed04c1a4177e7b00809d57bd2c696f?narHash=sha256-f52x9srIcqQm1Df3T%2BxYR5P6VfdnDFa2vkkcLhlTp6U%3D' (2024-07-12)
2024-07-14 01:56:43 +00:00
Jörg Thalheim 6c7b3b1a1c fix max-silent-time 2024-07-13 00:06:04 +00:00
zowoq 8678bdf73b drop pre 24.05 patch 2024-07-12 11:31:30 +00:00
Jörg Thalheim d6ae979a91
Merge pull request #218 from nix-community/retries
fix retries beeing zero
2024-07-12 07:55:48 +02:00
magic_rb 458b39fc3a Don't pass token into AvatarGitHub, it works perfectly without it
Signed-off-by: magic_rb <richard@brezak.sk>
2024-07-12 07:33:19 +02:00
Jörg Thalheim 3389164c13 fix retries beeing zero 2024-07-12 07:28:28 +02:00
Jörg Thalheim 7b35dfe0a7 add missing license file
the license was already in the pyproject.toml file but github likes to
have files instead
2024-07-11 18:50:09 +00:00
github-actions[bot] d4e6741dba flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/c030874db3ce4ff192aabf059988ed1be95d167a?narHash=sha256-3gf8pkyp/yjFdLJo7PSQ/Vmta9QBPWfKs5SFc/wh3h4%3D' (2024-07-08)
  → 'github:Nixos/nixpkgs/e01511309fe8b0432aa58a547365e51d5a3ecf85?narHash=sha256-UONPcQR2r0voopd6pcNFmUv7p4TJPeAXzwnqWmaPujw%3D' (2024-07-10)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/6fc8bded78715cdd43a3278a14ded226eb3a239e?narHash=sha256-/cKXod0oGLl%2BvH4bKBZnTV3qxrw4jgOLnyQ8KXey5J8%3D' (2024-07-08)
  → 'github:numtide/treefmt-nix/750dfb555b5abdab4d3266b3f9a05dec6d205c04?narHash=sha256-vAeYp%2BWH7i/DlBM5xNt9QeWiOiqzzf5abO8DYGkbUxg%3D' (2024-07-10)
2024-07-11 01:49:51 +00:00
Jörg Thalheim 8da399b788
Merge pull request #211 from nix-community/joerg-ci
change type of buildRetries to int that allows 0 values
2024-07-09 12:05:47 +02:00
Jörg Thalheim 6dab953092 change type of buildRetries to int that allows 0 values 2024-07-09 12:02:34 +02:00
Jörg Thalheim ffabc831bb
Merge pull request #208 from nix-community/update_flake_lock_action
flake.lock: Update
2024-07-09 11:47:29 +02:00
Jörg Thalheim 701a5ac400 add build retries nixos option 2024-07-09 09:29:57 +00:00
zowoq ff3821bd05 treefmt: update ruff settings 2024-07-09 09:54:08 +10:00
github-actions[bot] d5c6b4bfe8 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:Nixos/nixpkgs/88f3dab52d2cc42945f70f4e84c4505dedaa377d?narHash=sha256-TLiEulaY4I%2BvwaJIHQXASVQva%2B2nepaziUomigYY9%2B0%3D' (2024-07-03)
  → 'github:Nixos/nixpkgs/c030874db3ce4ff192aabf059988ed1be95d167a?narHash=sha256-3gf8pkyp/yjFdLJo7PSQ/Vmta9QBPWfKs5SFc/wh3h4%3D' (2024-07-08)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/bdb6355009562d8f9313d9460c0d3860f525bc6c?narHash=sha256-p0B2r98UtZzRDM5miGRafL4h7TwGRC4DII%2BXXHDHqek%3D' (2024-07-02)
  → 'github:numtide/treefmt-nix/6fc8bded78715cdd43a3278a14ded226eb3a239e?narHash=sha256-/cKXod0oGLl%2BvH4bKBZnTV3qxrw4jgOLnyQ8KXey5J8%3D' (2024-07-08)
2024-07-08 23:51:41 +00:00
zowoq d1d3746aa7 remove boot workaround
partial revert of b2ed2ccacc
2024-07-06 06:54:52 +00:00
Jörg Thalheim bb9c110355 add Org members permission as an requirement 2024-07-05 12:48:44 +00:00