1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-10 05:15:48 +00:00
gitea/models/migrations/v1_22
Lunny Xiao 45277486c2
Fix bug hidden on CI and make ci failed if tests failure (#29254)
The tests on migration tests failed but CI reports successfully


https://github.com/go-gitea/gitea/actions/runs/7364373807/job/20044685969#step:8:141

This PR will fix the bug on migration v283 and also the CI hidden
behaviour.

The reason is on the Makefile

`GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GO) test
$(GOTESTFLAGS) -tags='$(TEST_TAGS)' $(MIGRATE_TEST_PACKAGES)` will
return the error exit code.

But 

`for pkg in $(shell $(GO) list
code.gitea.io/gitea/models/migrations/...); do \
GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GO) test
$(GOTESTFLAGS) -tags '$(TEST_TAGS)' $$pkg; \
	done`

will not work.

This also fix #29602
2024-03-07 17:43:32 +01:00
..
main_test.go Add combined index for issue_user.uid and issue_id (#28080) 2023-12-14 09:26:59 +00:00
v280.go
v281.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
v282.go Add Index to pull_auto_merge.doer_id (#27811) 2023-10-30 08:39:29 +00:00
v283_test.go Fix migration test (#28659) 2023-12-30 21:54:48 +08:00
v283.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-07 17:43:32 +01:00
v284.go Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
v285.go Fix incorrect action duration time when rerun the job before executed once (#28364) 2024-01-19 14:05:49 +00:00
v286_test.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-07 17:43:32 +01:00
v286.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-07 17:43:32 +01:00
v287_test.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-07 17:43:32 +01:00
v287.go Add admin API route for managing user's badges (#23106) 2024-03-01 03:23:28 -05:00
v288.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
v289.go Make wiki default branch name changable (#29603) 2024-03-06 14:26:32 +08:00