gitea/models
Rowan Bohde 68731c07c5
Reduce integration test overhead (#32475)
In profiling integration tests, I found a couple places where per-test
overhead could be reduced:

* Avoiding disk IO by synchronizing instead of deleting & copying test
Git repository data. This saves ~100ms per test on my machine
* When flushing queues in `PrintCurrentTest`, invoke `FlushWithContext`
in a parallel.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-11-14 19:28:46 +00:00
..
actions Trim title before insert/update to database to match the size requirements of database (#32498) 2024-11-14 07:19:14 +00:00
activities Fix nil panic if repo doesn't exist (#32501) 2024-11-14 12:17:58 +08:00
admin
asymkey
auth
avatars
db
dbfs
fixtures Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
git
issues Trim title before insert/update to database to match the size requirements of database (#32498) 2024-11-14 07:19:14 +00:00
migrations Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
organization Reimplement GetUserOrgsList to make it simple and clear (#32486) 2024-11-14 05:31:47 +00:00
packages
perm
project Trim title before insert/update to database to match the size requirements of database (#32498) 2024-11-14 07:19:14 +00:00
pull
repo Trim title before insert/update to database to match the size requirements of database (#32498) 2024-11-14 07:19:14 +00:00
secret
shared/types
system
unit
unittest Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_test.go
repo_transfer.go
repo.go