Commit graph

120 commits

Author SHA1 Message Date
Earl Warren 9514fdeec5
actions: add pull-request-cancel
Refs: https://codeberg.org/forgejo/forgejo/pulls/2799
2024-03-26 16:37:54 +01:00
earl-warren 8b6609ac4b Merge pull request 'tests: the development branch requires go 1.22 to build' (#131) from earl-warren/end-to-end:wip-go-1.22 into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/131
2024-03-25 18:09:32 +00:00
Earl Warren f3ec6704ba
tests: the development branch requires go 1.22 to build 2024-03-25 18:26:07 +01:00
earl-warren d69a12b4af Merge pull request 'actions: services: cover the case when no container is specified' (#127) from earl-warren/end-to-end:wip-regression into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/127
2024-03-24 11:03:25 +00:00
Earl Warren be033071a4
actions: services: cover the case when no container is specified
When the container for running the steps is specificied, it is setup
differently than when it is implicit. This test adds coverage for both
instead of running all examples with an explicitly specified container
image.
2024-03-24 10:51:02 +01:00
earl-warren 4f3e03b917 Merge pull request 'actions: Forgejo 7.0 is equivalent to 7.0-test and run artifacts v4' (#124) from earl-warren/end-to-end:wip-artifacts-v4 into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/124
2024-03-21 17:02:05 +00:00
Earl Warren 13f18f9f47
actions: Forgejo 7.0 is equivalent to 7.0-test and run artifacts v4 2024-03-21 17:16:05 +01:00
Earl Warren a9a46b7b7d
actions: display the runner version 2024-03-21 15:34:38 +01:00
earl-warren 73ef53dce5 Merge pull request 'actions: test {upload,download}-artifacts@v4 support' (#121) from earl-warren/end-to-end:wip-artifacts-v4 into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/121
2024-03-21 14:16:04 +00:00
Earl Warren e1fd4cbc0f
actions: test {upload,download}-artifacts@v4 support
If Forgejo version is >= 7.0 and Forgejo runner > 3.3.0 artifacts@v4
are tested to work with a forked modified version that claims to be
compatible.
2024-03-21 14:25:28 +01:00
earl-warren c461ace62b Merge pull request 'lib: ORGANIZATIONS ordered list' (#118) from twenty-panda/end-to-end:wip-actions into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/118
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-20 19:14:52 +00:00
Twenty Panda 02d263e212 lib: ORGANIZATIONS ordered list
they determine the order in which Forgejo binaries will be looked
up. It is moved to a file so it can be overriden to change the order.
2024-03-20 19:49:21 +01:00
Twenty Panda 4e517fb4df outputs do not cross local actions 2024-03-20 19:44:15 +01:00
Twenty Panda f4c266f6b2 actions: add step to show logs 2024-03-20 19:44:00 +01:00
Earl Warren dd5d55f032
upgrade to cascading-pr@v2.1
Closes: https://code.forgejo.org/forgejo/end-to-end/issues/114
2024-03-20 16:53:29 +01:00
earl-warren 8c9d1ff068 Merge pull request 'versions must be strings' (#113) from twenty-panda/end-to-end:wip-actions into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/113
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-20 14:37:57 +00:00
Twenty Panda 473c9820c9 versions must be strings 2024-03-20 14:54:17 +01:00
Twenty Panda 8d8994f7ea always cache minio & garage binaries
they are sometime very slow to download and it does not help to do it
five times for each workflow
2024-03-20 14:54:17 +01:00
earl-warren b8c71e7201 Merge pull request 'merge actions test into end-to-end.sh' (#112) from twenty-panda/end-to-end:wip-actions into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/112
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-20 13:18:28 +00:00
Twenty Panda 96f91063c9 merge actions test into end-to-end.sh
* replace the high level test running actions tests with end-to-end.sh
* set DOMAIN to the IP instead of 127.0.0.1 for runner <-> forgejo communications
* move forgejo_cli from a function to a file so that it can be used by forgejo-runner.sh
* keep the documentation updates workflows separate because they need to open one PR per version
2024-03-20 13:42:44 +01:00
earl-warren ee1b082c3f Merge pull request 'Add E2E test for Alpine package with noarch architecture' (#110) from twenty-panda/end-to-end:wip-alpine into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/110
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-17 20:46:14 +00:00
Twenty Panda 81eebc10d8 show the full logs in a separate step for forensic analysis 2024-03-17 21:19:13 +01:00
Twenty Panda b563e5cd19 packages: Add E2E test for Alpine package with noarch
Refs: https://code.forgejo.org/forgejo/end-to-end/pulls/75
2024-03-17 21:08:13 +01:00
earl-warren 5bb5e037ce Merge pull request 'add editorconfig to help with Forgejo space display' (#92) from earl-warren/end-to-end:wip-editorconfig into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/92
2024-03-17 19:04:35 +00:00
earl-warren 8034186267 Merge pull request 'split tests into upgrades, storages and packages' (#108) from twenty-panda/end-to-end:wip-versions into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/108
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-17 18:21:25 +00:00
Twenty Panda 6bb5e947fb upgrades: run doctor check --all after each upgrade 2024-03-17 18:22:31 +01:00
Twenty Panda 21920b10d9 upgrades: add LFS assert 2024-03-17 18:22:22 +01:00
Twenty Panda 51f7263dee hide expected errors so they are not confused with actual errors 2024-03-17 17:56:03 +01:00
Twenty Panda 554d2b48c0 split storage & ugprade and separate fixtures 2024-03-17 17:56:03 +01:00
Twenty Panda bf689a2478 refactor end-to-end.yml workflow to use a top-level end-to-end.sh 2024-03-17 16:27:35 +01:00
earl-warren 62f75aa56f Merge pull request 'unify packages & upgrades' (#107) from twenty-panda/end-to-end:wip-lib into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/107
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-15 13:15:00 +00:00
Twenty Panda 2bb546d366 upgrades: run on LXC to allow for running docker 2024-03-15 19:54:34 +07:00
Twenty Panda f321bf5d5e upgrades: test_successful_upgrades must stop lingering Forgejo 2024-03-15 19:54:34 +07:00
Twenty Panda 8f0f6537c6 upgrades: use setup-forgejo as a helper to setup docker & user 2024-03-15 19:54:34 +07:00
Twenty Panda 9ff495254a packages: simplify the setup to use the same as upgrades
the packages tests control which Forgejo version they run against so
they can test a feature on version X+1 and not on version X
2024-03-15 19:54:34 +07:00
Twenty Panda dd35a9f1a8 lib: import generic helpers from upgrades 2024-03-15 19:54:34 +07:00
Twenty Panda 8347d9e040 upgrades; move SUDO and verbosity control to lib 2024-03-15 13:17:01 +07:00
Twenty Panda bf6ece0f52 README: v7.0.0-test is known as v7.0-test 2024-03-15 13:15:54 +07:00
Twenty Panda 3ead37ed37 upgrades: use the host IP instead of 0.0.0.0
otherwise it cannot be used when running from a LXC/docker container
2024-03-15 12:37:17 +07:00
earl-warren e0c4025af5 Merge pull request 'upgrades: remove ad-hoc code and use forgejo-curl.sh instead' (#106) from twenty-panda/end-to-end:wip-forgejo-curl into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/106
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-15 03:48:19 +00:00
Twenty Panda f4d0c03302 upgrades: remove ad-hoc code and use forgejo-curl.sh instead 2024-03-15 10:21:58 +07:00
earl-warren d7e067b418 Merge pull request 'run upgrades on the development version' (#103) from twenty-panda/end-to-end:wip-cidr into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/103
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-03-14 10:11:17 +00:00
Twenty Panda b011f038aa upgrades: split v1.20 & database v3 tests in separate files 2024-03-14 16:51:34 +07:00
Twenty Panda be86fe2e44 upgrade: RELEASE_NUMBERS is a variable with all known releases
the development branch is not build for v1.21 & v1.20 because they
pre-date the hard fork and near EOL
2024-03-14 16:51:34 +07:00
Twenty Panda aa83694fd7 upgrades: leftovers in the avatars storage is not important, ignore 2024-03-14 16:51:34 +07:00
Twenty Panda dcab318b4a upgrades: prefix the logs with the filename for debugging 2024-03-14 16:51:34 +07:00
Twenty Panda 8bc234e82f upgrades: verify S3 storage works on v1.21 & v7.0 2024-03-14 16:51:34 +07:00
Twenty Panda 1546793d0a upgrades: verify storage settings on the latest v1.21 & v7.0 2024-03-14 16:51:34 +07:00
Twenty Panda bc55c01cc6 upgrades: the X.Y version is equivalent to the latest patch release 2024-03-14 16:51:34 +07:00
Twenty Panda 4dc1068027 upgrade: fix the version number
FORGEJO_VERSION=$semver must be set for make backend
2024-03-14 16:51:34 +07:00