Conversation
nickva
approved these changes
Nov 16, 2022
Contributor
nickva
left a comment
There was a problem hiding this comment.
+1
======================== EUnit ========================
module 'chttpd_dbs_info_test'
chttpd dbs info tests
chttpd_dbs_info_test:82: dbs_info_test_ (get_db_info_should_return_db_info)...[0.022 s] ok
chttpd_dbs_info_test:83: dbs_info_test_ (get_db_info_should_return_error_when_db_not_exist)...ok
chttpd_dbs_info_test:84: dbs_info_test_ (get_db_info_should_return_error_when_time_out)...[0.157 s] ok
chttpd_dbs_info_test:85: dbs_info_test_ (should_return_error_for_put_dbs_info)...[0.004 s] ok
chttpd_dbs_info_test:86: dbs_info_test_ (should_return_dbs_info_for_get_dbs_info)...[0.039 s] ok
chttpd_dbs_info_test:87: dbs_info_test_ (should_return_nothing_when_db_not_exist_for_get_dbs_info)...[0.057 s] ok
chttpd_dbs_info_test:88: dbs_info_test_ (should_return_500_time_out_when_time_is_not_enough_for_get_dbs_info)...[0.245 s] ok
chttpd_dbs_info_test:89: dbs_info_test_ (should_return_db2_for_get_dbs_info_with_descending)...[0.006 s] ok
chttpd_dbs_info_test:90: dbs_info_test_ (should_return_db1_for_get_dbs_info_with_limit_1)...[0.006 s] ok
chttpd_dbs_info_test:91: dbs_info_test_ (should_return_db2_for_get_dbs_info_with_skip_1)...[0.006 s] ok
chttpd_dbs_info_test:92: dbs_info_test_ (should_return_dbs_info_with_correct_start_end_key)...[0.006 s] ok
chttpd_dbs_info_test:93: dbs_info_test_ (should_return_empty_list_with_wrong_start_end_key)...[0.020 s] ok
chttpd_dbs_info_test:94: dbs_info_test_ (should_return_dbs_info_for_single_db)...[0.006 s] ok
chttpd_dbs_info_test:95: dbs_info_test_ (should_return_dbs_info_for_multiple_dbs)...[0.007 s] ok
chttpd_dbs_info_test:96: dbs_info_test_ (should_return_error_for_exceeded_keys)...[0.015 s] ok
chttpd_dbs_info_test:97: dbs_info_test_ (should_return_error_for_missing_keys)...[0.004 s] ok
chttpd_dbs_info_test:98: dbs_info_test_ (should_return_dbs_info_for_dbs_with_mixed_state)...[0.006 s] ok
chttpd_dbs_info_test:99: dbs_info_test_ (should_not_allow_non_admin_access)...[0.007 s] ok
[done in 9.228 s]
chttpd skip limit tests
chttpd_dbs_info_test:117: skip_limit_test_ (t_dbs_info_when_shards_db_design_doc_exist)...[0.007 s] ok
chttpd_dbs_info_test:118: skip_limit_test_ (t_all_dbs_when_shards_db_design_doc_exist)...[0.006 s] ok
[done in 1.320 s]
chttpd admin only false tests
chttpd_dbs_info_test:136: admin_only_config_false_test_ (t_dbs_info_allow_non_admin_access)...[0.012 s] ok
chttpd_dbs_info_test:137: admin_only_config_false_test_ (t_all_dbs_allow_non_admin_access)...[0.006 s] ok
[done in 0.965 s]
[done in 29.921 s]
=======================================================
66b3e44 to
def5969
Compare
This test can time out with the following stack trace because ibrowse
sends {error, retry_later} under certain conditions [1] which causes
test_request:request/6 to sleep and retry [2], which can result in
this failure:
chttpd_dbs_info_test:79: -dbs_info_test_/0-fun-20- (should_return_500_time_out_when_time_is_not_enough_for_get_dbs_info)...*timed out*
in function timer:sleep/1 (timer.erl, line 219)
in call from test_request:request/6 (src/test_request.erl, line 106)
in call from chttpd_dbs_info_test:should_return_500_time_out_when_time_is_not_enough_for_get_dbs_info/1 (test/eunit/chttpd_dbs_info_test.erl, line 157)
in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
in call from eunit_proc:run_test/1 (eunit_proc.erl, line 531)
in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 356)
in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 514)
in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 456)
undefined
[1] https://github.com/cmullaparthi/ibrowse/blob/22d6fd6baa6e83633aa2923f41589945c1d2dc2f/src/ibrowse.erl#L409
[2] https://github.com/apache/couchdb/blob/62d92766e8b8042c2f3627c3ac3e2365410c7912/src/couch/src/test_request.erl#L104-L106
def5969 to
a509102
Compare
Contributor
|
I'll merge this, since it's ready to go, otherwise smoosh optimization PR would make it stale again. |
Contributor
Author
|
Thanks for merging! I rebased 3 times already trying to get it done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This test can time out with the following stack trace because ibrowse sends {error, retry_later} under certain conditions [1] which causes test_request:request/6 to sleep and retry [2], which can result in this failure:
[1] https://github.com/cmullaparthi/ibrowse/blob/22d6fd6baa6e83633aa2923f41589945c1d2dc2f/src/ibrowse.erl#L409
[2]
couchdb/src/couch/src/test_request.erl
Lines 104 to 106 in 62d9276
Testing recommendations
Related Issues or Pull Requests
Checklist
rel/overlay/etc/default.inisrc/docsfolder