Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
Add missing dependency of database tests on backend#36073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
silverwind commentedDec 2, 2025
CI failures are unrelated and will be fixed with#36074. |
silverwind commentedDec 2, 2025
Actually no, not entirely unrelated. |
wxiaoguang commentedDec 3, 2025
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. |
hramrach commentedDec 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Interesting. Clearly the dependency is real because the workflow in question first builds backend, and then runs the test. However, the test is run with environment variables set that fail the backend build. My suggestion would be to drop the CGO_ENABLED=0 which would then make the backend buildable as part of the test but I am not expert on go and don't know what this was supposed to accomplish. |
hramrach commentedDec 3, 2025
I see. cgo, at least the version you use is broken on Arm due to bogus inline assembly. |
silverwind commentedDec 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think we may just need to add Line 93 in46d7ade
|
42ab49e to7835f8bCompareCGO is required for tests that use -race as well as some other buildoptions.On arm64 the build fails when CGO is enabled because of some assemblyerror.
fixes this error: make test-sqlitego 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.iniGITEA_ROOT="/home/hramrach/gitea" GITEA_CONF=tests/sqlite.ini ./integrations.sqlite.testCould not find gitea binary at /home/hramrach/gitea/giteamake: *** [Makefile:506: test-sqlite] Error 1No need to build it explicitly, db tests now depend on it.
silverwind commentedDec 5, 2025
Timeout after 50m seems odd as the db tests usually take only 30m, I've restarted the failing job, maybe it was a flake. |
silverwind commentedDec 5, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If the postgres test times out again, try raising this temporarily: |
wxiaoguang commentedDec 5, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
No, it shouldn't and don't do that. There must be a bug (eg: deadlock) if it timeouts. |
silverwind commentedDec 5, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It's still valuable if we see the output of a full test run that is not cancelled, otherwise you have no full picture of the errors to work with. Will of course be reverted before merge. |
wxiaoguang commentedDec 5, 2025
For testing-only purpose, you can try. But I guess it won't really help, because usually a test finishes in 20-30 minutes. So you already have the doubled time. |
silverwind commentedDec 5, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yeah i don't know why it's taking so long now, I assume it's related to |
Missing make file dependency:
git clonehttps://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