WIP: add woodpecker CI #479

Draft
kiara wants to merge 29 commits from kiara/fediversity:woodpecker into main
Owner
  • publicly expose the machine - blocked on move by procolix - (as an ugly hack i could temporarily point the DNS to the local address so i wouldn't need to await procolix action to speed up CI - tho this would then come at the cost of CI not being publicly accessible yet.)

  • set up woodpecker

  • [ ] fix update pipeline? - #65

  • fix CD pipeline

  • check (non-kvm) pipelines work

    • cd: slow build and some (random?) connection time-out, possibly due to inferior compute on fedi203 compared to forgejo-ci
  • move to forgejo-ci (fixes needed access to /dev/kvm)

  • preventing rebuilds, by either:

    • [ ] cache - #92
    • [ ] custom container image
    • [ ] mount store - clashes with #362, and yields errors like /tmp/nix-shell-***/rc: line 3: <NIX-INVOKED BINARY>: command not found, using verbose nix showing:

    Unable to build with a primary store that isn't a local store; either pass a different '--store' or enable remote builds. For more information check 'man nix.conf' and search for '/machines'.

closes #463, supersedes #405.

edit: actually, woodpecker seems to still lack concurrency groups.

- [ ] publicly expose the machine - blocked on move [by procolix](https://mantis.protagio.org/view.php?id=12267) - (as an ugly hack i could temporarily point the DNS to the local address so i wouldn't need to await procolix action to speed up CI - tho this would then come at the cost of CI not being publicly accessible yet.) - [x] [set up woodpecker](https://woodpecker-ci.org/docs/3.6/administration/installation/packages#nixos) - ~~[ ] fix update pipeline?~~ - #65 - [x] fix CD pipeline - [ ] check (non-kvm) pipelines work - [ ] `cd`: slow build and some (random?) connection time-out, possibly due to inferior compute on fedi203 compared to forgejo-ci - [x] move to `forgejo-ci` (fixes needed access to `/dev/kvm`) - ~~preventing rebuilds, by either:~~ - ~~[ ] cache~~ - #92 - ~~[ ] [custom container image](https://git.fediversity.eu/Fediversity/Fediversity/pulls/405/files#diff-e93f79da6579010e9e28cbb8570053f42952c9a0)~~ - ~~[ ] [mount store](https://blog.kotatsu.dev/posts/2023-04-21-woodpecker-nix-caching/)~~ - clashes with #362, ~~and yields errors like `/tmp/nix-shell-***/rc: line 3: <NIX-INVOKED BINARY>: command not found`, using verbose nix showing:~~ > ~~Unable to build with a primary store that isn't a local store; either pass a different '--store' or enable remote builds. For more information check 'man nix.conf' and search for '/machines'.~~ closes #463, supersedes #405. edit: actually, woodpecker seems to still [lack concurrency groups](https://github.com/woodpecker-ci/woodpecker/issues/1461).
enable flakes thru env var
Some checks are pending
ci/woodpecker/pr/check-data-model Pipeline is pending approval
ci/woodpecker/pr/check-deployment-basic Pipeline is pending approval
ci/woodpecker/pr/check-deployment-cli Pipeline is pending approval
ci/woodpecker/pr/check-deployment-panel Pipeline is pending approval
ci/woodpecker/pr/check-mastodon Pipeline is pending approval
ci/woodpecker/pr/check-panel Pipeline is pending approval
ci/woodpecker/pr/check-peertube Pipeline is pending approval
ci/woodpecker/pr/check-pre-commit Pipeline is pending approval
4e2f0e810c
unverbose
Some checks are pending
ci/woodpecker/pr/check-data-model Pipeline is pending approval
ci/woodpecker/pr/check-deployment-basic Pipeline is pending approval
ci/woodpecker/pr/check-deployment-cli Pipeline is pending approval
ci/woodpecker/pr/check-deployment-panel Pipeline is pending approval
ci/woodpecker/pr/check-mastodon Pipeline is pending approval
ci/woodpecker/pr/check-panel Pipeline is pending approval
ci/woodpecker/pr/check-peertube Pipeline is pending approval
ci/woodpecker/pr/check-pre-commit Pipeline is pending approval
1eae31c876
simplify
Some checks are pending
ci/woodpecker/pr/check-data-model Pipeline is pending approval
ci/woodpecker/pr/check-deployment-basic Pipeline is pending approval
ci/woodpecker/pr/check-deployment-cli Pipeline is pending approval
ci/woodpecker/pr/check-deployment-panel Pipeline is pending approval
ci/woodpecker/pr/check-mastodon Pipeline is pending approval
ci/woodpecker/pr/check-panel Pipeline is pending approval
ci/woodpecker/pr/check-peertube Pipeline is pending approval
ci/woodpecker/pr/check-pre-commit Pipeline is pending approval
6df2cc78c0
make it secure
Some checks are pending
ci/woodpecker/pr/check-data-model Pipeline is pending approval
ci/woodpecker/pr/check-deployment-basic Pipeline is pending approval
ci/woodpecker/pr/check-deployment-cli Pipeline is pending approval
ci/woodpecker/pr/check-deployment-panel Pipeline is pending approval
ci/woodpecker/pr/check-mastodon Pipeline is pending approval
ci/woodpecker/pr/check-panel Pipeline is pending approval
ci/woodpecker/pr/check-peertube Pipeline is pending approval
ci/woodpecker/pr/check-pre-commit Pipeline is pending approval
10f4764e45
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/cd.yaml
  • .forgejo/workflows/ci.yaml
  • npins/sources.json
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u woodpecker:kiara-woodpecker
git switch kiara-woodpecker
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fediversity/fediversity#479
No description provided.