forked from gitea/gitea
1
0
Fork 0
gitea/models/migrations
Lunny Xiao e8b6d28ab9
Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662)
Backport #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 migrations 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.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2024-03-09 09:44:02 +00:00
..
base Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 2024-03-09 09:44:02 +00:00
fixtures Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 2024-03-09 09:44:02 +00:00
v1_6 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_7 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_8 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_9 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_10 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_11 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_12 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_13 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_14 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_15 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_16 Fix bug hidden on CI and make ci failed if tests failure (#29254) (#29662) 2024-03-09 09:44:02 +00:00
v1_17 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_18 Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
v1_19 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_20 Rename `Sync2` -> `Sync` (#26479) 2023-08-13 21:17:21 +02:00
v1_21 handle repository.size column being NULL in migration v263 (#28336) (#28363) 2023-12-05 14:51:56 +00:00
migrations.go Add Index to `action.user_id` (#27403) (#27425) 2023-10-04 08:53:00 +02:00