[PR #201] [MERGED] Add E2E testing #1329

Closed
opened 2026-04-21 23:16:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/201
Author: @Xyndra
Created: 2/28/2026
Status: Merged
Merged: 3/1/2026
Merged by: @arunavo4

Base: mainHead: e2e-testing


📝 Commits (10+)

📊 Changes

19 files changed (+5365 additions, -59 deletions)

View changed files

.github/workflows/e2e-tests.yml (+281 -0)
📝 .gitignore (+15 -0)
📝 bun.lock (+22 -4)
📝 bunfig.toml (+4 -1)
📝 package.json (+7 -1)
📝 src/lib/github.ts (+83 -52)
📝 src/lib/repo-backup.ts (+7 -1)
tests/e2e/01-health.spec.ts (+77 -0)
tests/e2e/02-mirror-workflow.spec.ts (+344 -0)
tests/e2e/03-backup.spec.ts (+305 -0)
tests/e2e/04-force-push.spec.ts (+864 -0)
tests/e2e/05-sync-verification.spec.ts (+342 -0)
tests/e2e/cleanup.sh (+141 -0)
tests/e2e/create-test-repos.ts (+522 -0)
tests/e2e/docker-compose.e2e.yml (+105 -0)
tests/e2e/fake-github-server.ts (+1027 -0)
tests/e2e/helpers.ts (+666 -0)
tests/e2e/playwright.config.ts (+98 -0)
tests/e2e/run-e2e.sh (+455 -0)

📄 Description

Add an automated end to end testing system using playwright, along with a custom system to control the API of gitea-mirror and a fake version of the GitHub API, as well as a docker image to fake some repositories.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/201 **Author:** [@Xyndra](https://github.com/Xyndra) **Created:** 2/28/2026 **Status:** ✅ Merged **Merged:** 3/1/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `e2e-testing` --- ### 📝 Commits (10+) - [`1b8a38c`](https://github.com/RayLabsHQ/gitea-mirror/commit/1b8a38ca0debda064774199bca15c2930638b49b) feat: add E2E testing infrastructure with fake GitHub, Playwright, and CI workflow - [`f70baba`](https://github.com/RayLabsHQ/gitea-mirror/commit/f70baba2cef3de9b8f6b04c354ee16b6ffab8090) feat: add real git repos + backup config testing to E2E suite - [`a0197da`](https://github.com/RayLabsHQ/gitea-mirror/commit/a0197da191e8a0d7ab74938f246f0ff4f24eb12e) refactor: split E2E tests into focused files + add force-push tests - [`3efecbb`](https://github.com/RayLabsHQ/gitea-mirror/commit/3efecbbb2ca8d6ef71be5975d905e503de13e916) Try to fix actions - [`2c1e3a7`](https://github.com/RayLabsHQ/gitea-mirror/commit/2c1e3a7090396d91ec0d3aa6f16aa21fa8cdf029) Try to fix the other action - [`10e9d22`](https://github.com/RayLabsHQ/gitea-mirror/commit/10e9d225236fc99da8fc10eaa1f2760b57c392a1) Add debug info to check why e2e action is failing - [`7bbdf5f`](https://github.com/RayLabsHQ/gitea-mirror/commit/7bbdf5fc23fbc9cb276247e68966f6920c1edd7a) More debug info - [`4e71afb`](https://github.com/RayLabsHQ/gitea-mirror/commit/4e71afbad4f4a2f6edb04349abad7b719f2bdb0a) Even more debug info - [`f914ae4`](https://github.com/RayLabsHQ/gitea-mirror/commit/f914ae4adcdfe5dfe81218e9300b5b617b982057) E2E fix attempt #1 - [`c75c5f5`](https://github.com/RayLabsHQ/gitea-mirror/commit/c75c5f5a8498f9ebf90130df8dbad16de6151c16) E2E fix attempt #2 ### 📊 Changes **19 files changed** (+5365 additions, -59 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/e2e-tests.yml` (+281 -0) 📝 `.gitignore` (+15 -0) 📝 `bun.lock` (+22 -4) 📝 `bunfig.toml` (+4 -1) 📝 `package.json` (+7 -1) 📝 `src/lib/github.ts` (+83 -52) 📝 `src/lib/repo-backup.ts` (+7 -1) ➕ `tests/e2e/01-health.spec.ts` (+77 -0) ➕ `tests/e2e/02-mirror-workflow.spec.ts` (+344 -0) ➕ `tests/e2e/03-backup.spec.ts` (+305 -0) ➕ `tests/e2e/04-force-push.spec.ts` (+864 -0) ➕ `tests/e2e/05-sync-verification.spec.ts` (+342 -0) ➕ `tests/e2e/cleanup.sh` (+141 -0) ➕ `tests/e2e/create-test-repos.ts` (+522 -0) ➕ `tests/e2e/docker-compose.e2e.yml` (+105 -0) ➕ `tests/e2e/fake-github-server.ts` (+1027 -0) ➕ `tests/e2e/helpers.ts` (+666 -0) ➕ `tests/e2e/playwright.config.ts` (+98 -0) ➕ `tests/e2e/run-e2e.sh` (+455 -0) </details> ### 📄 Description Add an automated end to end testing system using playwright, along with a custom system to control the API of gitea-mirror and a fake version of the GitHub API, as well as a docker image to fake some repositories. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-21 23:16:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#1329