-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI unrelated failures #18077
Comments
I think this indicates that you've ran some other tests (Likely the integration tests The purpose of the make test-check is to detect if test-backend has created any files only and it assumes that there are not any uncommited files at the start of the test. It's not trying to be clever. Therefore we have four solutions:
I think however as this is only a rough and ready test to detect if test-backend is doing naughty things on drone I'm not sure any of this is worth doing. |
Hmm ... it happens during our CI, and only happens randomly, makes some PRs fails again and again. I haven't caught the reason or investigated. Among these solutions, which one is best? |
oh that's interesting. I guess we should change the drone configuration to make sure that these logs end up on the temp dir. I'll take a look at this. |
There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix go-gitea#18077 Signed-off-by: Andrew Thornton <art27@cantab.net>
I've folded the fix in to #18447 |
* Ensure git tag tests and other create test repos in tmpdir There are a few places where tests appear to reuse testing repos which causes random CI failures. This PR simply changes these tests to ensure that cloning always happens into new temporary directories. Fix #18444 * Change log root for integration tests to use the REPO_TEST_DIR There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix #18077 Signed-off-by: Andrew Thornton <art27@cantab.net>
…#18447) Backport go-gitea#18447 * Ensure git tag tests and other create test repos in tmpdir There are a few places where tests appear to reuse testing repos which causes random CI failures. This PR simply changes these tests to ensure that cloning always happens into new temporary directories. Fix go-gitea#18444 * Change log root for integration tests to use the REPO_TEST_DIR There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix go-gitea#18077 Signed-off-by: Andrew Thornton <art27@cantab.net>
…18767) Backport #18447 * Ensure git tag tests and other create test repos in tmpdir There are a few places where tests appear to reuse testing repos which causes random CI failures. This PR simply changes these tests to ensure that cloning always happens into new temporary directories. Fix #18444 * Change log root for integration tests to use the REPO_TEST_DIR There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix #18077 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
…#18447) * Ensure git tag tests and other create test repos in tmpdir There are a few places where tests appear to reuse testing repos which causes random CI failures. This PR simply changes these tests to ensure that cloning always happens into new temporary directories. Fix go-gitea#18444 * Change log root for integration tests to use the REPO_TEST_DIR There is a potential race in the drone integration tests whereby test-mysql etc will start writing to log files causing make test-check fail. Fix go-gitea#18077 Signed-off-by: Andrew Thornton <art27@cantab.net>
During unit-test:
The text was updated successfully, but these errors were encountered: