Skip to content

Commit fee5cb7

Browse files
committed
git-annex: Only run git-annex tests.
Upstream can handle the full test suite; to avoid tedious waiting, we only test the code added in this fork.
1 parent 4838e8e commit fee5cb7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/pull-db-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- run: make backend
5050
env:
5151
TAGS: bindata
52-
- run: make test-pgsql-migration test-pgsql
52+
- run: make test-pgsql-migration test-pgsql#TestGitAnnex
5353
timeout-minutes: 50
5454
env:
5555
TAGS: bindata gogit
@@ -72,7 +72,7 @@ jobs:
7272
- run: make backend
7373
env:
7474
TAGS: bindata gogit sqlite sqlite_unlock_notify
75-
- run: make test-sqlite-migration test-sqlite
75+
- run: make test-sqlite-migration test-sqlite#TestGitAnnex
7676
timeout-minutes: 50
7777
env:
7878
TAGS: bindata gogit sqlite sqlite_unlock_notify
@@ -183,7 +183,7 @@ jobs:
183183
env:
184184
TAGS: bindata
185185
- name: run tests
186-
run: make test-mysql-migration integration-test-coverage
186+
run: make test-mysql-migration test-mysql#TestGitAnnex
187187
env:
188188
TAGS: bindata
189189
RACE_ENABLED: true
@@ -214,7 +214,7 @@ jobs:
214214
- run: make backend
215215
env:
216216
TAGS: bindata
217-
- run: make test-mysql8-migration test-mysql8
217+
- run: make test-mysql8-migration test-mysql8#TestGitAnnex
218218
timeout-minutes: 50
219219
env:
220220
TAGS: bindata
@@ -245,7 +245,7 @@ jobs:
245245
- run: make backend
246246
env:
247247
TAGS: bindata
248-
- run: make test-mssql-migration test-mssql
248+
- run: make test-mssql-migration test-mssql#TestGitAnnex
249249
timeout-minutes: 50
250250
env:
251251
TAGS: bindata

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(G
116116
LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
117117

118118
GO_PACKAGES ?= $(filter-out code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO) list ./... | grep -v /vendor/))
119-
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO) list ./... | grep -v /vendor/))
120-
119+
# Only test code modified in the git-annex feature branch; upstream can handle testing the full suite.
120+
# This list was generated by `git diff --stat --name-only main.. -- '*.go' | xargs dirname | sort | uniq`
121+
GO_TEST_PACKAGES ?= code.gitea.io/gitea/modules/annex code.gitea.io/gitea/modules/base code.gitea.io/gitea/modules/git code.gitea.io/gitea/modules/private code.gitea.io/gitea/modules/setting code.gitea.io/gitea/modules/util code.gitea.io/gitea/routers/private code.gitea.io/gitea/routers/web code.gitea.io/gitea/services/auth
121122
FOMANTIC_WORK_DIR := web_src/fomantic
122123

123124
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)

0 commit comments

Comments
 (0)