This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 214b564e9 Add debug logs to smoosh test
214b564e9 is described below

commit 214b564e90937f2083718ba67779a2f04dd245c6
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Fri Dec 2 11:30:02 2022 -0500

    Add debug logs to smoosh test
    
    Saw this fail 2 in a the last week or so but couldn't reproduce it locally.
    Instead of deleting, this is an attempt to emit debug lines to see how far 
it
    goes before it times out in the CI.
---
 src/smoosh/test/smoosh_tests.erl | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/smoosh/test/smoosh_tests.erl b/src/smoosh/test/smoosh_tests.erl
index 0ec07025a..9c0bcb075 100644
--- a/src/smoosh/test/smoosh_tests.erl
+++ b/src/smoosh/test/smoosh_tests.erl
@@ -239,13 +239,17 @@ t_checkpointing_works(DbName) ->
     setup_db_compactor_intercept(),
     {ok, _} = delete_doc(DbName, <<"doc1">>),
     ok = wait_to_enqueue(DbName),
+    ?debugHere,
     CompPid = wait_db_compactor_pid(),
+    ?debugHere,
     ChanPid = get_channel_pid("ratio_dbs"),
     config:set("smoosh", "persist", "true", false),
     meck:reset(smoosh_channel),
     ChanPid ! checkpoint,
     % Wait for checkpoint process to exit
+    ?debugHere,
     ok = wait_normal_down(),
+    ?debugHere,
     % Stop smoosh and then crash the compaction
     ok = application:stop(smoosh),
     CompPid ! {raise, error, kapow},
@@ -253,10 +257,15 @@ t_checkpointing_works(DbName) ->
     setup_db_compactor_intercept(),
     meck:reset(smoosh_channel),
     ok = application:start(smoosh),
+    ?debugHere,
     CompPid2 = wait_db_compactor_pid(),
+    ?debugHere,
     ?assertEqual({1, 0, 0}, sync_status("ratio_dbs")),
     CompPid2 ! continue,
-    ok = wait_normal_down().
+    ?debugHere,
+    ok = wait_normal_down(),
+    ?debugHere,
+    ok.
 
 t_ignore_checkpoint_resume_if_compacted_already(DbName) ->
     setup_db_compactor_intercept(),

Reply via email to