Commit graph

273 commits

Author SHA1 Message Date
limiting-factor
1f2f98fb21 lib: reduce GitLab noise
The absence of the test-gitlab container will display

Error response from daemon: No such container: test-gitlab

which can be mistaken as an actual error where in fact it should be
ignored.
2024-09-02 11:45:26 +02:00
earl-warren
4df9a89f4e Merge pull request 'tests: upgrade setup-forgejo to v2.0.2' (#258) from earl-warren/end-to-end:wip-explicit-version into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/258
2024-08-26 06:47:28 +00:00
Earl Warren
427d9ed267
tests: upgrade setup-forgejo to v2.0.2 2024-08-24 08:23:23 +02:00
earl-warren
d3bce65195 Merge pull request 'actions: feature: compression: do not hardcode the log path' (#259) from earl-warren/end-to-end:wip-compression into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/259
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-08-23 15:30:37 +00:00
Earl Warren
75503c5396
actions: feature: compression: do not hardcode the log path
The log path depends on the previous actions run and may not always
be 01/1.log.zst. Assuming it is makes this test fragile as it is
influenced by which previous tests are run and what they do.
2024-08-23 16:53:03 +02:00
earl-warren
812385a18c Merge pull request 'actions: verify the log compression feature' (#246) from earl-warren/end-to-end:wip-actions-log into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/246
2024-08-15 05:15:36 +00:00
Earl Warren
8636471d63
actions: verify the log compression feature
If running Forgejo >= v9.0, verify the logs are compressed by default
2024-08-11 16:47:14 +02:00
earl-warren
5ad828b7a2 Merge pull request 'lib: source build replace the matching release' (#239) from earl-warren/end-to-end:wip-optimize into main
Reviewed-on: https://code.forgejo.org///forgejo/end-to-end/pulls/239
2024-08-08 16:09:23 +00:00
Earl Warren
149c6a545c
lib: source build replace the matching release
Instead of having an explicit vX.Y-dev version to be referenced
explicitly, a binary built from source replaces the matching
version. For instance, if forgejo/build-from-sources contains v9.0,

* the development branch is compiled from source
* the v9.0 artifact is uploaded
* prior to running any test, the artificat is downloaded and used
* the v9.0 binary is not downloaded from
  forgejo/experimental/integration because it is already present

The vX.Y release is built daily and the end-to-end tests run on it. If
a regression is introduced, it will be spotted within 24h.

Compiling from source is used when the Forgejo runs the end-to-end
suite on a specific pull request.
2024-08-08 17:46:04 +02:00
Earl Warren
427c46dbf9
lib: remove RELEASE_NUMBERS_AND_DEV, use RELEASE_NUMBERS
In the lifecycle of vX.Y.Z, all tests are run against vX.Y-test
before it is published, including when the tag is pushed because the
automated release process now runs end-to-end before pushing the
release to forgejo-experimental.

Running end-to-end against vX.Y-dev is therefore redundant with at least
two other runs with exactly the same SHA (the one before the tag is
pushed and the one when the tag is pushed). There would be value in
doing that if it allowed to detect race conditions in Forgejo. But
such races were not found in the past six months and there is a lot
more scrutiny on commits merged in Forgejo which makes it even less
likely than it was before.

Running the tests on vX.Y instead of also including the built version
provide the same coverage and reduces the workload.
2024-08-08 17:46:04 +02:00
earl-warren
996373c707 Merge pull request 'Forgejo v1.21 is EOL & add v9.0' (#238) from earl-warren/end-to-end:wip-9.0 into main
Reviewed-on: https://code.forgejo.org///forgejo/end-to-end/pulls/238
2024-08-08 14:37:12 +00:00
Earl Warren
6224249696
upgrade: test pprof against the two active stable releases 2024-08-07 11:49:17 +02:00
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