0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-28 18:23:08 +01:00
gitea/modules/repository
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
..
branch.go Fix adopt repository has empty object name in database (#31333) 2024-06-12 18:22:01 +08:00
branch_test.go Make "sync branch" also sync object format and add tests (#30878) 2024-05-06 17:02:30 +00:00
commits.go Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
commits_test.go Make offline mode as default to no connect external avatar service by default (#28548) 2023-12-21 07:42:16 +00:00
create.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
create_test.go Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
delete.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
env.go Move database operations of merging a pull request to post receive hook and add a transaction (#30805) 2024-05-07 07:36:48 +00:00
fork.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
hooks.go Always write proc-receive hook for all git versions (#29287) 2024-02-21 07:01:48 +00:00
init.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
init_test.go
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
license_test.go
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
push.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
repo.go Make LFS http_client parallel within a batch. (#32369) 2024-11-04 04:49:08 +00:00
repo_test.go Don't remove all mirror repository's releases when mirroring (#28817) 2024-01-26 06:18:19 +00:00
temp.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00