jiahuili430 commented on code in PR #5341:
URL: https://github.com/apache/couchdb/pull/5341#discussion_r1864090081
##########
Makefile:
##########
@@ -339,7 +339,7 @@ mango-test: devclean all
--admin=adm:pass \
--no-eval "\
COUCH_USER=adm COUCH_PASS=pass \
-src/mango/.venv/bin/nose2 -s src/mango/test -c src/mango/unittest.cfg
$(MANGO_TEST_OPTS)"
+src/mango/.venv/bin/nose2 -F -s src/mango/test -c src/mango/unittest.cfg
$(MANGO_TEST_OPTS)"
Review Comment:
> Same error message, but bailed on different test cases.
The error message is as follows:
```bash
Traceback (most recent call last):
File "/Users/jiahuili/src/a/src/mango/test/16-index-selectors-test.py",
line 214, in test_uses_partial_index_for_query_selector
docs = self.db.find(selector, use_index="Selected", fields=["_id",
"location"])
File "/Users/jiahuili/src/a/src/mango/test/mango.py", line 317, in find
r.raise_for_status()
~~~~~~~~~~~~~~~~~~^^
File
"/Users/jiahuili/src/a/src/mango/.venv/lib/python3.13/site-packages/requests/models.py",
line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for
url: http://127.0.0.1:15984/mango_test_480b738790f748d9b5f3c5c17202d501/_find
```
Sometimes it fails on `test_uses_partial_index_for_query_selector` and
sometimes it fails on `test_uses_partial_index_with_different_selector`.
Comment out some test cases and you'll get different test results.
We can remove the `-F` if it is not needed:
https://github.com/apache/couchdb/pull/5348/files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]