You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
wxiaoguang ecbb03dc6d
Improve testing and try to fix MySQL hanging (#32515)
By some CI fine tunes (`run tests`), SQLite & MSSQL could complete
in about 12~13 minutes (before > 14), MySQL could complete in 18 minutes
(before: about 23 or even > 30)

Major changes:

1. use tmpfs for MySQL storage
1. run `make test-mysql` instead of `make integration-test-coverage`
because the code coverage is not really used at the moment.
1. refactor testlogger to make it more reliable and be able to report
stuck stacktrace
1. do not requeue failed items when a queue is being flushed (failed
items would keep failing and make flush uncompleted)
1. reduce the file sizes for testing
1. use math ChaCha20 random data instead of crypot/rand (for testing
purpose only)
1. no need to `DeleteRepository` in `TestLinguist`
1. other related refactoring to make code easier to maintain
3 months ago
..
actions Trim title before insert/update to database to match the size requirements of database (#32498) 3 months ago
activities Fix nil panic if repo doesn't exist (#32501) 3 months ago
admin Fix javascript error when an anonymous user visiting migration page (#32144) 4 months ago
asymkey bump to go 1.23 (#31855) 5 months ago
auth Fix nuget/conan/container packages upload bugs (#31967) 5 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 11 months ago
db Fix db engine (#32351) 3 months ago
dbfs Enable `unparam` linter (#31277) 8 months ago
fixtures Reduce integration test overhead (#32475) 3 months ago
git refactor: remove redundant err declarations (#32381) 3 months ago
issues Trim title before insert/update to database to match the size requirements of database (#32498) 3 months ago
migrations Improve testing and try to fix MySQL hanging (#32515) 3 months ago
organization Reimplement GetUserOrgsList to make it simple and clear (#32486) 3 months ago
packages Fix db engine (#32351) 3 months ago
perm Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 3 months ago
project Trim title before insert/update to database to match the size requirements of database (#32498) 3 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo Fix `recentupdate` sorting bugs (#32505) 3 months ago
secret Clarify Actions resources ownership (#31724) 6 months ago
shared/types Refactor locale&string&template related code (#29165) 12 months ago
system Refactor deletion (#28610) 1 year ago
unit Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (#32416) 3 months ago
unittest Reduce integration test overhead (#32475) 3 months ago
user Allow code search by filename (#32210) 4 months ago
webhook Store webhook event in database (#29145) 11 months ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Add user blocking (#29028) 11 months ago
org_team.go Clarify permission "HasAccess" behavior (#30585) 10 months ago
org_team_test.go Add user blocking (#29028) 11 months ago
org_test.go Add user blocking (#29028) 11 months ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 10 months ago