gitea/tests
Lunny Xiao a100ac3306
Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed (#31035)
Fix #28144 

To make the resources will be cleanup once failed. All repository
operations now follow a consistent pattern:

- 1. Create a database record for the repository with the status
being_migrated.
- 2. Register a deferred cleanup function to delete the repository and
its related data if the operation fails.
- 3.	Perform the actual Git and database operations step by step.
- 4. Upon successful completion, update the repository’s status to
ready.

The adopt operation is a special case — if it fails, the repository on
disk should not be deleted.
2025-04-07 22:12:54 -07:00
..
e2e Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
fuzz Fix fuzz test (#33156) 2025-01-09 15:15:47 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Support choose email when creating a commit via web UI (more) (#33445) 2025-01-31 02:36:18 +00:00
integration Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed (#31035) 2025-04-07 22:12:54 -07:00
testdata/data Add artifacts test fixture (#30300) 2024-11-01 10:29:54 +08:00
mssql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
mysql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
pgsql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
sqlite.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
test_utils.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00