Commit graph

67 commits

Author SHA1 Message Date
Mathieu Fenniak
1064337c89 ci: run Forgejo Actions & Packages test w/ dynamic matrix (#1367)
Incorporates these changes:
- When `forgejo/build-from-sources` is present, Actions & Packages tests are run only against the built versions.  Otherwise, they are run against the versions defined in `$RELEASE_NUMBERS`
- Updates Packages tests which are testing Alpine publishing to use currently supported Alpine releases
- Actions & Packages tests are run in a matrix, allowing parallel execution

Only the Actions & Packages tests take a significant amount of time (>10 minutes), so changes have been limited to those test suites -- every test suite that is moved into a matrix adds additional overhead in the 1 minute `prepare-end-to-end` step.

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1367
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
2026-01-01 22:16:33 +00:00
famfo
891e8f2d81
mastodon/gotosocial e2e tests: infrastructure changes (#1273)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1273
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
Co-authored-by: famfo <famfo@famfo.xyz>
Co-committed-by: famfo <famfo@famfo.xyz>
2025-12-05 10:40:47 +00:00
Renovate Bot
ec2d8e96b7 Replace Node.js with data.forgejo.org/oci/node (#1239)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [code.forgejo.org/oci/node](https://hub.docker.com/_/node) ([source](https://github.com/nodejs/docker-node)) → [data.forgejo.org/oci/node](https://hub.docker.com/_/node) | container | replacement | `22-bookworm` -> `22-bookworm` |
| [code.forgejo.org/oci/node](https://hub.docker.com/_/node) ([source](https://github.com/nodejs/docker-node)) → [data.forgejo.org/oci/node](https://hub.docker.com/_/node) | container | replacement | `20-bookworm` -> `20-bookworm` |
| [code.forgejo.org/oci/node](https://hub.docker.com/_/node) ([source](https://github.com/nodejs/docker-node)) → [data.forgejo.org/oci/node](https://hub.docker.com/_/node) | final | replacement | `20-bookworm` -> `20-bookworm` |

This is a special PR that replaces `code.forgejo.org/oci/node` with the community suggested minimal stable replacement version.

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMS4wIiwidXBkYXRlZEluVmVyIjoiNDIuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1239
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-12-01 15:41:41 +00:00
Renovate Bot
2cbea248e5
Update dependency forgejo-lxc to v13 (#1205)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1205
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-11-11 23:35:20 +00:00
Earl Warren
2c247b8d49
feat: federation: upgrade to trixie (#1069)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1069
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-09-28 14:46:16 +00:00
Earl Warren
9b17f51199
chore: do not propagate contexts to the documentation (#1010)
Refs forgejo/docs#1445

Notes: secrets should also be removed after this is merged

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1010
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-09-08 20:14:08 +00:00
Gusted
8f920b4b7a
Add coverage (#914)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/914
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-21 04:54:52 +00:00
Earl Warren
95453f8fd8
fix: use yes/no instead of true/false for using a binary built from source (#948)
and add information from steps and inputs context for future debug.

---

For debugging a temporary commit [that trims the tests is used](https://code.forgejo.org/forgejo/end-to-end/pulls/948/commits/5e6bd041158847de99908464d629cbd85d14b951)

## No build from source

- https://code.forgejo.org/forgejo/end-to-end/actions/runs/3905
   ![image](/attachments/66ef5aa0-25a8-4624-9d92-dd18dce0a427)

## Build from source

A temporary commit [is used to build from sources](https://code.forgejo.org/forgejo/end-to-end/pulls/948/commits/ffa5170ba21c070208c7934d727327efc0ec248f).

- https://code.forgejo.org/forgejo/end-to-end/actions/runs/3904
  ![image](/attachments/e335ee9f-fa07-43e0-aaf4-dfa745aa2a6a)

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/948
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-17 08:44:56 +00:00
Earl Warren
1e33063227 fix: the build step output is built, not value (#947)
44f2cf9cf1/.forgejo/workflows/end-to-end.yml (L65)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/947
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-16 21:43:35 +00:00
Earl Warren
6455896fd3
chore: do not needlessly upload an artifact when there is no build (#916)
- ${{ needs.build.outputs.built }} is true if there is a build from source, false otherwise
- prepare-end-to-end local action does not attempt to download an artifact if inputs.built  is false

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/916
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-15 07:34:38 +00:00
Earl Warren
07654423c6
feat: enable Forgejo Actions email notifications (#707)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/707
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-23 15:23:20 +00:00
Earl Warren
18b2dc2e85
chore(cosmetic): pretty names for docs generation matrix (#816)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/816
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-20 18:50:38 +00:00
Renovate Bot
4e10e47689
Update https://data.forgejo.org/actions/cascading-pr action to v2.2.1 (#819)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [https://data.forgejo.org/actions/cascading-pr](https://code.forgejo.org/actions/cascading-pr) | action | minor | `v2.1.1` -> `v2.2.1` |

---

### Release Notes

<details>
<summary>actions/cascading-pr (https://data.forgejo.org/actions/cascading-pr)</summary>

### [`v2.2.1`](https://code.forgejo.org/actions/cascading-pr/compare/v2.2.0...v2.2.1)

[Compare Source](https://code.forgejo.org/actions/cascading-pr/compare/v2.2.0...v2.2.1)

### [`v2.2.0`](https://code.forgejo.org/actions/cascading-pr/compare/v2.1.1...v2.2.0)

[Compare Source](https://code.forgejo.org/actions/cascading-pr/compare/v2.1.1...v2.2.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4zMi4xIiwidXBkYXRlZEluVmVyIjoiNDEuMzIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/819
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-07-20 15:22:23 +00:00
Earl Warren
84b83250e3
chore(renovate): use cascading-pr@v2.1.1 instead of cascading-pr@v2.1 (#817)
because the branch is not maintained, only tags are used now

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/817
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-20 08:40:24 +00:00
Earl Warren
606c32a2be
fix: update the docs branches (#815)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/815
Reviewed-by: 0ko <0ko@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-20 04:25:19 +00:00
Earl Warren
b67f9e1a70
chore: s/GITHUB_*/FORGEJO_*/ & s/github./forge./ (#776)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/776
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-09 14:09:48 +00:00
Earl Warren
cd1a0f5076
chore: add assertions for the forge context and use it instead of github where relevant (#748)
Refs forgejo/act#37

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/748
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-06 12:15:38 +00:00
limiting-factor
5b5dab8c13
chore(revert): fix: alternative route of getting latest Gitea version
Revert 53375283d4
fix: alternative route of getting latest Gitea version

Use git ls-remote and git-mirror instead of the API

$ version=1.23
$ git ls-remote --refs --tags --sort=version:refname https://git-mirror.forgejo.org/go-gitea/gitea "v$version*" | sed -n -E -e "s|^.*/v($version[\.0-9]*)$|\1|p"
1.23.0
1.23.1
1.23.2
1.23.3
1.23.4
1.23.5
1.23.6
1.23.7
2025-05-09 12:37:04 +02:00
Earl Warren
b2471a699d
chore: s/code.forgejo.org/data.forgejo.org/ for actions 2025-03-22 16:07:29 +01:00
Earl Warren
53375283d4
fix: alternative route of getting latest Gitea version
Use a code.forgejo.org mirror instead of the GitHub API to not be
subject to rate limiting.
2025-03-22 09:43:42 +01:00
Earl Warren
beae8629a6
fix: use code.forgejo.org instead of docker.io
to avoid throttling

Fixes: https://code.forgejo.org/forgejo/end-to-end/actions/runs/2316
2025-01-13 05:30:48 +01:00
Earl Warren
3bfb74d358
chore(release): cut branch v11.0 2025-01-01 08:44:00 +00:00
Earl Warren
77e6412295
fix(actions): documentation update matrix needs prepare_dockerd
It runs all actions tests to collect artefacts relevant to the
documentation and has the same dependencies as running the actions
tests in a pull request.
2024-11-27 10:26:17 +00:00
Earl Warren
33749f5a5e
actions: runner [container].docker_host variations
* automount
* "" or "-"
* unix:///var/run/docker.sock
* tcp://127.0.0.1:2375
2024-11-27 09:33:08 +00:00
Renovate Bot
4f84eefa62
Update actions/setup-go action to v5 2024-11-21 13:01:22 +00:00
Earl Warren
33f3e7eb65
fix: update the docs branches
Closes forgejo/end-to-end#188
2024-11-10 12:09:05 +01: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
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
Earl Warren
9b6442bfcf
federation: stub that checks the nodeinfo of the two instances 2024-06-04 16:38:32 +02:00
Earl Warren
f3ec6704ba
tests: the development branch requires go 1.22 to build 2024-03-25 18:26:07 +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
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
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
Twenty Panda
81eebc10d8 show the full logs in a separate step for forensic analysis 2024-03-17 21:19:13 +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
Twenty Panda
2bb546d366 upgrades: run on LXC to allow for running docker 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
earl-warren
cff067a118 Merge pull request 'Forgejo v1.22 will actually be Forgejo v7.0' (#91) from earl-warren/end-to-end:wip-alpine into main
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/91
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
2024-02-28 17:07:43 +00:00
Earl Warren
78027e672d
Forgejo v1.22 will actually be Forgejo v7.0 2024-02-28 17:38:31 +01:00
Earl Warren
0f6708163f
packages: support vars.VERBOSE to see what's happening
and debug false positives
2024-02-28 17:09:44 +01:00
Earl Warren
9daf947453
tests: set the name of the packages jobs
actions is a copy/paste from the action workflow and packages is
better.

It also solves a name clash problem as the commit status is based on
the job name.
2024-02-27 17:15:05 +01:00
Earl Warren
74d11b5eaf
packages: add alpine test cases 2024-02-03 19:14:03 +01:00
Earl Warren
6236202f09
actions: CASCADE_DOCS_FORCE_VERSION can force generating a version 2024-01-13 18:21:50 +01:00