Commit graph

211 commits

Author SHA1 Message Date
Earl Warren
0f4173555f
forgejo: fix sources Gitea compatibility
It is cosmetic, keep it accurate.
2024-08-07 11:42:22 +02:00
Earl Warren
af9305b221
README: link to v7.0 documentation instead of v1.21 2024-08-07 11:42:22 +02:00
Earl Warren
944dd98727
test Gitea upgrades with v7.0 and v9.0
the upgrade path from Gitea v1.21 & v1.22 to v8.0 was tested before it
was published. The patch releases for v8.0 will only include bug fixes
and no database upgrades: they are the only kind of changes that could
cause a problem with upgrades.
2024-08-07 11:42:22 +02:00
Earl Warren
d872865242
test Forgejo upgrades starting with v7.0 instead of v1.21 2024-08-07 11:42:22 +02:00
Earl Warren
497a5d76bb
actions: trim v1.20 & v1.21 specific comment 2024-08-07 11:42:22 +02:00
Earl Warren
f46d01885f
packages: alpine: verify supported versions
v8.0-dev should be supported too but it is not LTS: only care for
9.0-dev which is not different for Alpine.
2024-08-07 11:42:22 +02:00
Earl Warren
50c5908a91
Forgejo v1.21 is EOL, v9.0 is dev 2024-08-07 11:42:22 +02:00
earl-warren
47a6f7ee78 Merge pull request 'shfmt -w globally' (#237) from earl-warren/end-to-end:wip-shfmt into main
Reviewed-on: https://code.forgejo.org///forgejo/end-to-end/pulls/237
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-08-07 08:20:51 +00:00
Earl Warren
d5f66e4c0a
shfmt -w globally 2024-08-07 08:31:33 +02:00
earl-warren
4e207414d4 Merge pull request 'forgejo: add 9.0' (#225) from earl-warren/end-to-end:wip-9.0 into main
Reviewed-on: https://code.forgejo.org///forgejo/end-to-end/pulls/225
2024-07-18 08:43:08 +00:00
Earl Warren
2bc5c804ef
forgejo: add 9.0 2024-07-18 08:41:26 +02:00
earl-warren
de08b8c0f5 Merge pull request 'federation: wait for the asynchronous star to land' (#223) from earl-warren/end-to-end:wip-federation into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/223
2024-07-08 08:17:50 +00:00
Earl Warren
ad5790b566
federation: wait for the asynchronous star to land
The check races with the propagation of the star from one forge to the
other. It must wait for it to land instead.
2024-07-08 08:29:20 +02:00
earl-warren
631262b3b9 Merge pull request 'actions: add an example for workflow-dispatch' (#220) from earl-warren/end-to-end:wip-workflow-dispatch into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/220
2024-07-05 10:21:59 +00:00
Earl Warren
05a341e201
actions: add an example for workflow-dispatch
/repos/{owner}/{repo}/actions/workflows/{workflowname}/dispatches

* fails if the required inputs are not provided
* sets defaults to inputs that are not provided

The type of inputs are only used for building the web UI interface,
not for validation. All values are strings.
2024-07-05 07:16:35 +02:00
Earl Warren
64489247aa
actions: run in development mode for debug purposes 2024-07-04 20:15:10 +02:00
earl-warren
63df181d7a Merge pull request 'Revert "actions: use Forgejo runner v3.5.0"' (#218) from earl-warren/end-to-end:wip-runner into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/218
2024-07-02 19:26:50 +00:00
Earl Warren
87df9095b9
Revert "actions: use Forgejo runner v3.5.0"
Do not force the runner version, use whatever default setup-forgejo
provides.

Forcing the version will break the cascading-pr workflow. It will
attempt to download a version that does not exist instead of building
it from sources.

This reverts commit dca3641cf3.
2024-07-02 20:54:27 +02:00
earl-warren
ec9543a6b6 Merge pull request 'lib: enable ActivityPub in GitLab' (#215) from twenty-panda/end-to-end:wip-gitlab into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/215
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-06-29 09:29:02 +00:00
Twenty Panda
b43cfb6e0c cleanup(gitlab): move hardcoded strings to variables [skip ci] 2024-06-25 18:55:19 +02:00
earl-warren
e4fa6d814f Merge pull request 'lib: start & stop GitLab' (#207) from twenty-panda/end-to-end:wip-gitlab into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/207
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-06-23 08:26:40 +00:00
earl-warren
148b7ca98c Merge pull request 'test: make it easier to comment out tests' (#209) from twenty-panda/end-to-end:wip-test into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/209
2024-06-23 08:26:01 +00:00
earl-warren
d99352c80e Merge pull request 'test: upgrade actions/cache@v4' (#208) from twenty-panda/end-to-end:wip-cache into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/208
2024-06-23 08:25:43 +00:00
Twenty Panda
76ac081fb9 lib: start & stop GitLab
The image is saved to disk and cached because it is over 1GB, to save bandwidthc.
2024-06-23 09:16:25 +02:00
Twenty Panda
6b35ea27c3 test: make it easier to comment out tests
When the build stage is commented out, the /srv/forgejo-binaries
directory will not exist. Change the script to work in both cases.
2024-06-23 09:13:36 +02:00
Twenty Panda
cc16df533b test: upgrade actions/cache@v4
Refs: https://code.forgejo.org/forgejo/runner/issues/209
2024-06-23 09:10:52 +02:00
earl-warren
c2b7f36bc8 Merge pull request 'actions: test cache/{restore,save}@v4 support' (#206) from twenty-panda/end-to-end:wip-cache into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/206
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-06-22 19:04:03 +00:00
Twenty Panda
8b3c0a55e7 actions: test cache/{restore,save}@v4 support 2024-06-22 20:27:04 +02:00
Twenty Panda
dca3641cf3 actions: use Forgejo runner v3.5.0 2024-06-22 20:24:47 +02:00
earl-warren
a402d490ba Merge pull request 'upgrades: add Gitea 1.21 & 1.22 to Forgejo 8.0-test' (#205) from twenty-panda/end-to-end:wip-gitea into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/205
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-06-22 11:15:29 +00:00
Twenty Panda
c1ce4361b9 upgrades: add Gitea 1.22.0 & 1.21.11 to Forgejo 8.0-test 2024-06-22 12:42:19 +02:00
earl-warren
9cfd043b8a Merge pull request 'federation: add star scenario' (#196) from earl-warren/end-to-end:wip-federation into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/196
2024-06-07 16:26:04 +00:00
Earl Warren
233b73d7c8
federation: add star scenario
Refs: https://codeberg.org/forgejo/forgejo/pulls/1680
2024-06-04 19:57:31 +02:00
earl-warren
a1b6e192d9 Merge pull request 'federation: stub that checks the nodeinfo of the two instances' (#195) from earl-warren/end-to-end:wip-federation into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/195
2024-06-04 15:32:52 +00:00
Earl Warren
9b6442bfcf
federation: stub that checks the nodeinfo of the two instances 2024-06-04 16:38:32 +02:00
Earl Warren
19ce0fe6b1
lib: add $work_path/forgejo-curl.sh for each Forgejo instance
The $work_path/forgejo-curl.sh for each Forgejo instance is logged
in with admin permissions and ready to use.

The default forgejo-curl.sh remains logged in the last Forgejo
instance that was launched.
2024-06-04 16:30:35 +02:00
Earl Warren
078107026b
lib: get_host_port is $IP:3000 or read from app.ini 2024-06-04 15:29:00 +02:00
Earl Warren
b62866f3ae
lib: move forgejocli to the forgejo instance WORK_PATH
Instead of having it in $DIR so that there can be one forgejocli per
forgejo instance.
2024-06-04 15:29:00 +02:00
Earl Warren
2461666aca
lib: use the WORK_PATH base instead of forgejo for the daemon
Instead of hardcoding "forgejo" as the base for the daemon to store
the PID and the logs, use the base of the WORK_PATH so that a given
work path can run a dedicated forgejo instance by the same name.
2024-06-04 13:04:05 +02:00
Earl Warren
4a19e9c90b
lib: get the base of WORK_PATH from app.ini
instead of hardcoding forgejo-work-path to be the base of WORK_PATH
relative to DIR, read it from the app.ini file. It will allow
multiple Forgejo instances to run simultaneously, each using a
different directory.
2024-06-04 12:00:42 +02:00
earl-warren
6f3f3ec0f2 Merge pull request 'docs(README): remove unhelpful sentence about actions' (#183) from earl-warren/end-to-end:wip-readme into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/183
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-06-01 14:19:12 +00:00
earl-warren
f8dae4b6c1 Merge pull request 'actions: post-7-0-schedule: create /srv/example/post-7-0-schedule/contexts first' (#192) from earl-warren/end-to-end:wip-cron into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/192
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-06-01 14:18:52 +00:00
Earl Warren
9e60ae4449
actions: post-7-0-schedule: create /srv/example/post-7-0-schedule/contexts first
A loop is waiting for /srv/example/post-7-0-schedule-volume/DONE to exist before
declaring the workflow is successfully run. But it is not really until
/srv/example/post-7-0-schedule/contexts is created with the event content and they
will race.

Fixes: https://code.forgejo.org/forgejo/end-to-end/issues/181

Exactly the same as 57fdd1cd49 but for
post-7-0-schedule instead of cron
2024-06-01 09:36:45 +02:00
earl-warren
2b8c2826c5 Merge pull request 'actions: automerge: check when review happens after CI success' (#189) from earl-warren/end-to-end:wip-automerge into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/189
2024-05-30 20:04:55 +00:00
Earl Warren
fcb48eff5c
actions: automerge: check when review happens after CI success 2024-05-28 00:47:02 +02:00
thefox
7fd268b02f Merge pull request 'actions: add automerge example' (#187) from earl-warren/end-to-end:wip-automerge into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/187
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-27 19:28:55 +00:00
Earl Warren
f9e20e7770
actions: add automerge example 2024-05-27 20:57:40 +02:00
Earl Warren
abe9f5f52d
docs(README): remove unhelpful sentence about actions 2024-05-22 11:07:45 +02:00
thefox
c6cd39b074 Merge pull request 'actions: cron: create /srv/example/cron/contexts first' (#182) from earl-warren/end-to-end:wip-cron into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/182
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-21 06:52:08 +00:00
Earl Warren
57fdd1cd49
actions: cron: create /srv/example/cron/contexts first
A loop is waiting for /srv/example/cron-volume/DONE to exist before
declaring the workflow is successfully run. But it is not really until
/srv/example/cron/contexts is created with the event content and they
will race.

Fixes: https://code.forgejo.org/forgejo/end-to-end/issues/181
2024-05-21 08:16:39 +02:00