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
thefox
657e367db9
Merge pull request 'lib: retry git fetch a few times (take 2)' ( #180 ) from earl-warren/end-to-end:wip-codeberg-retry into main
...
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/180
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-20 04:46:11 +00:00
Earl Warren
f6da41ec8e
lib: retry git fetch a few times (take 2)
...
Wrap the failure in a if statement. Otherwise it will fail the first
time because the script runs under -e
2024-05-20 01:54:22 +02:00
thefox
56fb137646
Merge pull request 'lib: retry git fetch a few times' ( #178 ) from earl-warren/end-to-end:wip-codeberg-retry into main
...
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/178
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-19 08:59:09 +00:00
Earl Warren
872e4632bf
lib: retry git fetch a few times
...
The instance hosting the forgejo repository may be down or very slow
while the build tries to fetch from it, retry a few times instead of
giving up immediately.
A total retry time of 3 * 60 seconds is probably sufficient since
Forgejo startup time is lower than this, even on large instances.
2024-05-19 09:16:55 +02:00
thefox
90e5b72123
Merge pull request 'logs: always prefix with the file name' ( #149 ) from earl-warren/end-to-end:wip-logs into main
...
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/149
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-13 19:09:54 +00:00
earl-warren
8d48bb7639
Merge pull request 'actions: push-cancel intermitent failure' ( #175 ) from earl-warren/end-to-end:wip-actions-push-cancel into main
...
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/175
Reviewed-by: thefox <thefox@noreply.code.forgejo.org>
2024-05-13 18:33:55 +00:00
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