Skip to content

Conversation

@hramrach
Copy link
Contributor

@hramrach hramrach commented Dec 2, 2025

Missing make file dependency:

git clone https://github.com/go-gitea/gitea.git
make -C gitea test-sqlite

go test -c code.gitea.io/gitea/tests/integration -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
sed -e 's|{{REPO_TEST_DIR}}||g'
-e 's|{{TEST_LOGGER}}|test,file|g'
-e 's|{{TEST_TYPE}}|integration|g'
tests/sqlite.ini.tmpl > tests/sqlite.ini
GITEA_ROOT="/home/hramrach/gitea" GITEA_CONF=tests/sqlite.ini ./integrations.sqlite.test
Could not find gitea binary at /home/hramrach/gitea/gitea

make: *** [Makefile:506: test-sqlite] Error 1

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 2, 2025
@hramrach hramrach changed the title Testdep Add missing dependency of database tests on backend Dec 2, 2025
fixes this error:

 make test-sqlite
go test  -c code.gitea.io/gitea/tests/integration -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
sed -e 's|{{REPO_TEST_DIR}}||g' \
	-e 's|{{TEST_LOGGER}}|test,file|g' \
	-e 's|{{TEST_TYPE}}|integration|g' \
		tests/sqlite.ini.tmpl > tests/sqlite.ini
GITEA_ROOT="/home/hramrach/gitea" GITEA_CONF=tests/sqlite.ini ./integrations.sqlite.test
Could not find gitea binary at /home/hramrach/gitea/gitea

make: *** [Makefile:506: test-sqlite] Error 1
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 2, 2025
@silverwind
Copy link
Member

CI failures are unrelated and will be fixed with #36074.

@silverwind
Copy link
Member

CI failures are unrelated and will be fixed with #36074.

Actually no, not entirely unrelated. go: -race requires cgo; enable cgo by setting CGO_ENABLED=1 is related.

delvh
delvh previously approved these changes Dec 3, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 3, 2025
@wxiaoguang
Copy link
Contributor

Well, I don't think this "fix" is right and can be approved as the current implementation.

@silverwind @delvh , see the CI failures. There are more details.

@wxiaoguang wxiaoguang marked this pull request as draft December 3, 2025 04:07
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants