Commit graph

255 commits

Author SHA1 Message Date
Earl Warren
9f55d67bd2
actions: push-cancel intermitent failure
A) When both push happen within the same second, the SHA will be
  identical and there will not be any cancelation.
B) When `sleep infinity` happens after the reload of the runner, it
   will block the following tests forever because it has a capacity of one.

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

2024-05-13T00:58:49.1453499Z actions_verify_example.out:[main (root-commit) cbf3afb] initial commit
2024-05-13T00:58:49.1453528Z actions_verify_example.out: 3 files changed, 28 insertions(+)
2024-05-13T00:58:49.1453556Z actions_verify_example.out: create mode 100644 .forgejo/workflows/test.yml
2024-05-13T00:58:49.1453585Z actions_verify_example.out: create mode 100755 run.sh
2024-05-13T00:58:49.1453611Z actions_verify_example.out: create mode 100644 teardown.sh
2024-05-13T00:58:49.1453638Z actions_verify_example.out:+ git remote add origin http://root:admin1234@10.201.14.172:3000/root/example-push-cancel
2024-05-13T00:58:49.1453669Z actions_verify_example.out:+ git push --force -u origin main
2024-05-13T00:58:49.1453699Z actions_verify_example.out:remote: . Processing 1 references
2024-05-13T00:58:49.1453728Z actions_verify_example.out:remote: Processed 1 references in total
2024-05-13T00:58:49.1453758Z actions_verify_example.out:To http://10.201.14.172:3000/root/example-push-cancel
2024-05-13T00:58:49.1453786Z actions_verify_example.out: * [new branch]      main -> main
2024-05-13T00:58:49.1453814Z actions_verify_example.out:branch 'main' set up to track 'origin/main'.
...
2024-05-13T00:58:49.1458629Z actions_verify_example.out:[main (root-commit) cbf3afb] initial commit
2024-05-13T00:58:49.1458656Z actions_verify_example.out: 3 files changed, 28 insertions(+)
2024-05-13T00:58:49.1458683Z actions_verify_example.out: create mode 100644 .forgejo/workflows/test.yml
2024-05-13T00:58:49.1458711Z actions_verify_example.out: create mode 100755 run.sh
2024-05-13T00:58:49.1458738Z actions_verify_example.out: create mode 100644 teardown.sh
2024-05-13T00:58:49.1458764Z actions_verify_example.out:+ git remote add origin http://root:admin1234@10.201.14.172:3000/root/example-push-cancel
2024-05-13T00:58:49.1458795Z actions_verify_example.out:+ git push --force -u origin main
2024-05-13T00:58:49.1458822Z actions_verify_example.out:Everything up-to-date
2024-05-13 19:42:42 +02:00
earl-warren
888ddb992c Merge pull request 'fix(lib): explicitly set the page limit for releases' (#170) from earl-warren/end-to-end:wip-limit into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/170
2024-05-03 07:13:24 +00:00
Earl Warren
d9fc5cee11
fix(lib): explicitly set the page limit for releases
otherwise it is subject to limitations imposed by the server and as
the number of releases grow, the older ones will no longer be found.
2024-05-03 07:40:34 +01:00
earl-warren
2171ed7a5e Merge pull request 'chore(cleanup): v1.20 is EOL, trim it' (#167) from earl-warren/end-to-end:wip-trim-v1.20 into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/167
2024-04-25 13:21:58 +00:00
Earl Warren
c5a35b1ad5
fix(pprof): reset_forgejo before running it
it was working before because the previous tests did it. Now that it
is gone, it no longer worked because there was no app.ini.
2024-04-25 14:24:52 +02:00
Earl Warren
e80f12ace9
chore(cleanup): v1.20 is EOL, trim it 2024-04-25 14:24:50 +02:00
Earl Warren
456dab5002
docs: managing legacy tests and cutting branches 2024-04-25 13:24:51 +02:00
earl-warren
449890d712 Merge pull request 'lib: sort releases in version order' (#164) from earl-warren/end-to-end:wip-find-download into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/164
2024-04-19 15:20:18 +00:00
Earl Warren
4bff22bc37
lib: sort releases in version order
If sorted in alphabetical order v1.21.11 will be lower than v1.21.8
2024-04-19 16:36:38 +02:00
earl-warren
8260f4ac6f Merge pull request 'upgrades: gitea 1.21.10 -> forgejo 7.0.0' (#158) from earl-warren/end-to-end:wip-gitea-upgrade into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/158
2024-04-13 17:04:52 +00:00
Earl Warren
3bd723d6b8
upgrades: gitea 1.21.10 -> forgejo 7.0.0 2024-04-13 16:41:24 +02:00
thefox
9ca95cd19a add 7.0-test to pprof (#148)
Test backport of pprof to 7.0

Closes #143

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/148
Co-authored-by: thefox <thefox@noreply.code.forgejo.org>
Co-committed-by: thefox <thefox@noreply.code.forgejo.org>
2024-04-13 10:42:40 +00:00
Earl Warren
74294d14f0
logs: always prefix with the file name
otherwise it is difficult to figure out where the runner logs end and
where the forgejo logs start.
2024-04-13 12:09:41 +02:00
earl-warren
e9bb6f67e6 Merge pull request 'Revert "temporarily skip 8.0-test"' (#152) from earl-warren/end-to-end:wip-8-0-migration into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/152
2024-04-12 21:43:36 +00:00
TheFox0x7
416db9031b add schedule runs-on variables test for post 7.0 releases (#151)
reimplements: forgejo/end-to-end#146 for 8.0-dev and 8.0-test
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/151
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
2024-04-07 20:25:02 +00:00
Earl Warren
05341f1ae0
Revert "temporarily skip 8.0-test"
This reverts commit 174cb37ac9.
2024-04-07 07:45:05 +02:00
earl-warren
1a3b74f520 Merge pull request 'temporarily skip 8.0-test' (#150) from earl-warren/end-to-end:wip-8-0-migration into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/150
2024-04-06 19:59:39 +00:00
Earl Warren
174cb37ac9
temporarily skip 8.0-test
because 7.0-dev contains a migration that is ahead of 8.0 which should
not happen but does today because a PR was backported. The last one.
2024-04-06 16:15:12 +02:00
earl-warren
56110cffcc Merge pull request 'logs: show logs, not just the .out files' (#147) from earl-warren/end-to-end:wip-logs into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/147
2024-04-06 09:58:04 +00:00
Earl Warren
4a6ed59cb6
logs: show logs, not just the .out files 2024-04-06 11:08:05 +02:00
earl-warren
922508d1b5 Merge pull request 'Revert "actions: workaround for possible 404 transient bug on artifacts"' (#145) from earl-warren/end-to-end:wip-fixes into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/145
2024-04-06 07:11:17 +00:00
Earl Warren
e3a6e1fd8a
Revert "actions: workaround for possible 404 transient bug on artifacts"
Refs: https://code.forgejo.org/forgejo/end-to-end/issues/144

This reverts commit 191976a836.
2024-04-05 05:24:04 +02:00
earl-warren
4f34b12bb2 Merge pull request 'add pprof upload test' (#141) from thefox/end-to-end:pprof_upload_test into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/141
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
2024-04-02 18:54:52 +00:00
TheFox0x7
4a82c559b9
run pprof test on test build 2024-04-02 20:15:57 +02:00
earl-warren
dd768c648e Merge pull request 'actions: workaround for possible 404 transient bug on artifacts' (#142) from earl-warren/end-to-end:wip-artifacts into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/142
2024-04-02 09:43:11 +00:00
Earl Warren
191976a836
actions: workaround for possible 404 transient bug on artifacts
Refs: https://codeberg.org/forgejo/forgejo/issues/2949
2024-04-02 07:40:08 +02:00
TheFox0x7
c00a5bfc9c
download profilecli 2024-04-01 19:25:11 +02:00
TheFox0x7
0b216e9851
actually add test to suite 2024-04-01 01:47:56 +02:00
TheFox0x7
5a5b461453
correct version to run against 2024-04-01 01:21:59 +02:00
TheFox0x7
fbe3c3c59c
add pprof test 2024-03-31 22:49:52 +02:00
earl-warren
9a1a91333e Merge pull request 'the forgejo development branch is now 8.0' (#139) from earl-warren/end-to-end:wip-8.0 into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/139
2024-03-30 14:26:15 +00:00
Earl Warren
6be26d2a69
the forgejo development branch is now 8.0 2024-03-30 14:44:43 +01:00
earl-warren
0afc6ee868 Merge pull request 'various minor fixes' (#134) from earl-warren/end-to-end:wip-fixes into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/134
2024-03-26 16:48:36 +00:00
Earl Warren
cd377ddbad
actions: push-cancel: fix typo 2024-03-26 09:21:32 +01:00
Earl Warren
d8673b8c0b
actions: pull-request: squash main/setup functions 2024-03-26 08:35:16 +01:00
Earl Warren
36456ee74f
actions: pull-request: assert the existence of contexts
and not the existence of tokens
2024-03-26 08:31:26 +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