Skip to content

Commit e5f2899

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 5d2d4f9 commit e5f2899

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- run: make backend
5151
env:
5252
TAGS: bindata
53-
- run: make test-pgsql-migration test-pgsql
53+
- run: make test-pgsql-migration test-pgsql#TestGitAnnex
5454
timeout-minutes: 50
5555
env:
5656
TAGS: bindata gogit
@@ -74,7 +74,7 @@ jobs:
7474
- run: make backend
7575
env:
7676
TAGS: bindata gogit sqlite sqlite_unlock_notify
77-
- run: make test-sqlite-migration test-sqlite
77+
- run: make test-sqlite-migration test-sqlite#TestGitAnnex
7878
timeout-minutes: 50
7979
env:
8080
TAGS: bindata gogit sqlite sqlite_unlock_notify
@@ -179,7 +179,7 @@ jobs:
179179
env:
180180
TAGS: bindata
181181
- name: run tests
182-
run: make test-mysql-migration integration-test-coverage
182+
run: make test-mysql-migration test-mysql#TestGitAnnex
183183
env:
184184
TAGS: bindata
185185
RACE_ENABLED: true
@@ -212,7 +212,7 @@ jobs:
212212
- run: make backend
213213
env:
214214
TAGS: bindata
215-
- run: make test-mssql-migration test-mssql
215+
- run: make test-mssql-migration test-mssql#TestGitAnnex
216216
timeout-minutes: 50
217217
env:
218218
TAGS: bindata

Makefile

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

116116
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/))
117-
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/))
118-
117+
# Only test code modified in the git-annex feature branch; upstream can handle testing the full suite.
118+
# This list was generated by `git diff --stat --name-only main.. -- '*.go' | xargs dirname | sort | uniq`
119+
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
119120
FOMANTIC_WORK_DIR := web_src/fomantic
120121

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

0 commit comments

Comments
 (0)