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/migrations
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
11 months ago
..
base Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
fixtures Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
v1_6 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_7 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_8 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_9 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_10 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_11 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_12 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_13 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_14 Use `crypto/sha256` (#29386) 12 months ago
v1_15 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_16 Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
v1_17 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_18 Refactor system setting (#27000) 1 year ago
v1_19 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_20 Rename `Sync2` -> `Sync` (#26479) 2 years ago
v1_21 handle repository.size column being NULL in migration v263 (#28336) 1 year ago
v1_22 Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
migrations.go Make wiki default branch name changable (#29603) 11 months ago