WIP: Try fixing CI #761

Draft
morguldir wants to merge 11 commits from morguldir/see-eye into main
Owner
No description provided.
morguldir added 2 commits 2025-04-15 22:45:07 +00:00
This reverts commit 35bffa5970.
ci: allow running with docker again, add forgejo specific ci.yml
Some checks failed
CI and Artifacts / variables (pull_request) Successful in 4s
CI and Artifacts / Test (pull_request) Failing after 52s
CI and Artifacts / Build (pull_request) Failing after 38m43s
CI and Artifacts / Docker publish (pull_request) Has been cancelled
5516ff93d1
morguldir added 1 commit 2025-04-15 23:24:06 +00:00
ci: use improved not-nexy runners
Some checks failed
CI and Artifacts / Build (pull_request) Failing after 1s
CI and Artifacts / variables (pull_request) Successful in 20s
CI and Artifacts / Test (pull_request) Failing after 16m44s
CI and Artifacts / Docker publish (pull_request) Has been cancelled
a6b236d417
morguldir force-pushed morguldir/see-eye from a6b236d417 to d5ed93d093 2025-04-15 23:27:53 +00:00 Compare
morguldir force-pushed morguldir/see-eye from d5ed93d093 to 303d35da76 2025-04-15 23:34:04 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 303d35da76 to b498337493 2025-04-15 23:48:25 +00:00 Compare
morguldir force-pushed morguldir/see-eye from b498337493 to b958cde742 2025-04-15 23:58:59 +00:00 Compare
morguldir force-pushed morguldir/see-eye from b958cde742 to 57d8e9b7cd 2025-04-16 00:07:52 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 57d8e9b7cd to 7faca640c0 2025-04-16 00:12:38 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 7faca640c0 to 04995ea3e3 2025-04-16 00:15:00 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 04995ea3e3 to be3bbdd103 2025-04-18 12:53:03 +00:00 Compare
morguldir force-pushed morguldir/see-eye from be3bbdd103 to 911c29988f 2025-04-18 12:56:13 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 911c29988f to 2ca63d1752 2025-04-18 13:00:12 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 2ca63d1752 to 69d72ca100 2025-04-18 13:01:14 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 69d72ca100 to 5fef27759c 2025-04-18 13:15:28 +00:00 Compare
morguldir added 1 commit 2025-04-19 01:59:12 +00:00
switch image and use host network for complement
Some checks failed
CI and Artifacts / variables (pull_request) Successful in 5s
CI and Artifacts / Test (pull_request) Failing after 25s
CI and Artifacts / Build (pull_request) Failing after 25s
CI and Artifacts / Docker publish (pull_request) Has been skipped
26c65ee053
morguldir force-pushed morguldir/see-eye from 26c65ee053 to 757a0f7e24 2025-04-19 02:02:31 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 757a0f7e24 to 9fbb7f0783 2025-04-19 02:04:08 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 9fbb7f0783 to 0c0c1229fe 2025-04-19 03:18:25 +00:00 Compare
morguldir added 1 commit 2025-04-19 04:00:40 +00:00
use bash when setting up build environment
Some checks failed
CI and Artifacts / Test (pull_request) Has been cancelled
CI and Artifacts / variables (pull_request) Has been cancelled
CI and Artifacts / Docker publish (pull_request) Has been cancelled
CI and Artifacts / Build (pull_request) Has been cancelled
c031c5be47
morguldir force-pushed morguldir/see-eye from c031c5be47 to 4121482770 2025-04-19 04:04:51 +00:00 Compare
morguldir added 1 commit 2025-04-19 04:18:26 +00:00
use forgejo/upload-artifact
Some checks failed
CI and Artifacts / variables (pull_request) Has been cancelled
CI and Artifacts / Docker publish (pull_request) Has been cancelled
CI and Artifacts / Build (pull_request) Has been cancelled
CI and Artifacts / Test (pull_request) Has been cancelled
1b91407002
morguldir force-pushed morguldir/see-eye from 1b91407002 to 2b8da496a3 2025-04-19 04:20:14 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 2b8da496a3 to 1cbf4d4205 2025-04-19 04:40:55 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 1cbf4d4205 to 23cc6e7f12 2025-04-19 04:44:44 +00:00 Compare
Jade changed title from Try fixing CI to WIP: Try fixing CI 2025-04-19 21:17:53 +00:00
Jade requested changes 2025-04-20 19:43:52 +00:00
Jade left a comment
Owner

Nice work so far!

I don't think we should be copying the old github and gitlab workflows across wholesale here. Added some comments on them.

Nice work so far! I don't think we should be copying the old github and gitlab workflows across wholesale here. Added some comments on them.
@ -0,0 +1,41 @@
name: Update Docker Hub Description
Owner

Irrelevant until we have an image on Docker Hub
(as the person that wrote this)

Irrelevant until we have an image on Docker Hub (as the person that wrote this)
@ -0,0 +1,104 @@
name: Documentation and GitHub Pages
Owner

Tom's documentation workflow should handle most of this. From what I can see, it's just missing lychee and markdownlint.

Tom's documentation workflow should handle most of this. From what I can see, it's just missing lychee and markdownlint.
@ -0,0 +40,4 @@
tag="${GH_EVENT_INPUTS_TAG}"
else
# get all runs of the ci workflow
json=$(gh api "repos/${GH_REPOSITORY}/actions/workflows/ci.yml/runs")
Owner

Github CLI won't work afaict. Tea CLI should be pretty close though.

Github CLI won't work afaict. Tea CLI should be pretty close though.
@ -0,0 +76,4 @@
GH_TOKEN: ${{ github.token }}
TAG: ${{ steps.get_ci_id.outputs.tag }}
run: |
for file in $(find . -type f); do
Owner

Not sure we want to upload every artifact - for example, the OCI images should probably not be uploaded here.

Might want to consider uploading some things to forgejo packages

Not sure we want to upload every artifact - for example, the OCI images should probably not be uploaded here. Might want to consider uploading some things to forgejo packages
@ -0,0 +83,4 @@
esac
done
- name: upload release assets to website
Owner

We don't have an equivalent here.

We don't have an equivalent here.
@ -0,0 +1,152 @@
stages:
Owner

No gitlab mirror.

No gitlab mirror.
morguldir added 1 commit 2025-04-21 03:47:28 +00:00
run complement against docker:dind
Some checks failed
CI and Artifacts / dind (pull_request) Failing after 2s
CI and Artifacts / variables (pull_request) Failing after 1s
CI and Artifacts / Test (pull_request) Has been cancelled
CI and Artifacts / Build (pull_request) Has been cancelled
CI and Artifacts / Docker publish (pull_request) Has been cancelled
3be3dfd052
morguldir force-pushed morguldir/see-eye from 3be3dfd052 to c11c1925c0 2025-04-21 03:50:11 +00:00 Compare
morguldir force-pushed morguldir/see-eye from c11c1925c0 to 573733c9df 2025-04-21 03:51:41 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 573733c9df to 74b4866c81 2025-04-21 03:52:32 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 74b4866c81 to 9f5acc7226 2025-04-21 04:00:21 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 9f5acc7226 to 0565937080 2025-04-21 04:00:48 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 0565937080 to 6aa78a8b85 2025-04-21 04:04:33 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 6aa78a8b85 to 97b0bc96d6 2025-04-27 21:01:01 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 97b0bc96d6 to 5409b9f7f2 2025-04-27 21:06:16 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 5409b9f7f2 to 794ddd0cb3 2025-04-27 21:19:40 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 794ddd0cb3 to eceafffa8b 2025-04-27 21:58:18 +00:00 Compare
morguldir force-pushed morguldir/see-eye from eceafffa8b to 4ba319ed55 2025-04-27 22:12:09 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 4ba319ed55 to 34c025097c 2025-04-28 20:28:54 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 34c025097c to e99088892b 2025-05-21 20:21:54 +00:00 Compare
morguldir force-pushed morguldir/see-eye from e99088892b to 416aa6d387 2025-05-21 22:36:50 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 416aa6d387 to 849f0ba6bb 2025-05-21 22:40:54 +00:00 Compare
morguldir force-pushed morguldir/see-eye from 849f0ba6bb to d7e2a54cfb 2025-05-22 00:00:22 +00:00 Compare
Jade reviewed 2025-05-22 00:03:57 +00:00
@ -0,0 +874,4 @@
if [ ! -z $FORGEJO_TOKEN ]; then
docker manifest push ${FORGEJO_REPO}:${UNIQUE_TAG}-all-features
docker manifest push ${FORGEJO_REPO}:${BRANCH_TAG}-all-features
docker manifest push ${FORGEJO_REPO}:${UNIQUE_TAG}-debug
Owner

can we get a nix on these?

can we get a `nix` on these?
Jade reviewed 2025-05-22 00:06:24 +00:00
@ -0,0 +61,4 @@
services:
dind:
env:
DOCKER_HOST: unix:///var/run/dind.socket
Owner

DOCKER_HOST should be set by the runner?

`DOCKER_HOST` should be set by the runner?
Author
Owner

It's the listening address for dind in this context

It's the listening address for dind in this context
Jade reviewed 2025-05-22 00:08:55 +00:00
@ -0,0 +624,4 @@
script: |
const repo = '${{ github.repository }}'
core.setOutput('forgejo_repository', repo.toLowerCase())
const replaced = repo.replace(/continuwuation/g, "continuwuity")
Owner

Maybe use a repo variable?

Maybe use a repo variable?
Jade reviewed 2025-05-22 00:10:43 +00:00
@ -0,0 +657,4 @@
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Owner
For github token stuff, see what I'm doing in https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/.forgejo/workflows/rust-checks.yml#L102
Owner

That is using https://github.com/apps/continuwuity-ci, let me know if you need any more perms (it has issues & packages rn)

That is using https://github.com/apps/continuwuity-ci, let me know if you need any more perms (it has issues & packages rn)
Some checks failed
CI and Artifacts / dind-jade (pull_request) Has been cancelled
CI and Artifacts / variables (pull_request) Has been cancelled
CI and Artifacts / dind-ubuntu-22.04 (pull_request) Has been cancelled
CI and Artifacts / Build (pull_request) Has been cancelled
CI and Artifacts / dind-tom (pull_request) Successful in 42s
CI and Artifacts / Test (pull_request) Successful in 7m45s
CI and Artifacts / Docker publish (pull_request) Has been skipped
CI and Artifacts / complement (pull_request) Failing after 8m4s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin morguldir/see-eye:morguldir/see-eye
git checkout morguldir/see-eye

Merge

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff morguldir/see-eye
git checkout morguldir/see-eye
git rebase main
git checkout main
git merge --ff-only morguldir/see-eye
git checkout morguldir/see-eye
git rebase main
git checkout main
git merge --no-ff morguldir/see-eye
git checkout main
git merge --squash morguldir/see-eye
git checkout main
git merge --ff-only morguldir/see-eye
git checkout main
git merge morguldir/see-eye
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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: continuwuation/continuwuity#761
No description provided.