You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "jiahuili430 (via GitHub)" <gi...@apache.org> on 2024/08/17 03:07:24 UTC

[PR] Add OTP 27 to pull request CI list [couchdb]

jiahuili430 opened a new pull request, #5181:
URL: https://github.com/apache/couchdb/pull/5181

   <!-- Thank you for your contribution!
   
        Please file this form by replacing the Markdown comments
        with your text. If a section needs no action - remove it.
   
        Also remember, that CouchDB uses the Review-Then-Commit (RTC) model
        of code collaboration. Positive feedback is represented +1 from committers
        and negative is a -1. The -1 also means veto, and needs to be addressed
        to proceed. Once there are no objections, the PR can be merged by a
        CouchDB committer.
   
        See: http://couchdb.apache.org/bylaws.html#decisions for more info. -->
   
   ## Overview
   - Add OTP 27 to pull request CI list
   - Modify some tests according to Erlang version
   
   <!-- Please give a short brief for the pull request,
        what problem it solves or how it makes things better. -->
   
   ## Testing recommendations
   
   <!-- Describe how we can test your changes.
        Does it provide any behaviour that the end users
        could notice? -->
   
   ## Related Issues or Pull Requests
   
   <!-- If your changes affect multiple components in different
        repositories please put links to those issues or pull requests here.  -->
   
   ## Checklist
   
   - [ ] Code is written and works correctly
   - [ ] Changes are covered by tests
   - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini`
   - [ ] Documentation changes were made in the `src/docs` folder
   - [ ] Documentation changes were backported (separated PR) to affected branches
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1725280510


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   https://github.com/apache/couchdb/pull/5190



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1725280510


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   Remove the flaky test in: https://github.com/apache/couchdb/pull/5190



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724125252


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   Yes, quickjs is always smaller than spidermonkey 1.8.5.
   - If I run test using `make eunit apps=couch suites=couch_key_tree_tests tests=key_tree_stemming_test_`, then `quickjs -> 18_000_000, spidermonkey -> 21_000_000`;
   - If I run `make eunit`, they use more heap, `quickjs -> 19_000_000, spidermonkey -> 22_000_000`.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724015919


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -575,5 +575,10 @@ should_not_use_excessive_memory_when_stemming() ->
             receive
                 {'DOWN', Ref, _, _, Res} -> Res
             end,
-        ?assertEqual(normal, Exit)
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" ->
+                ?assertEqual(killed, Exit);

Review Comment:
   Tried with OTP 27.0.1, QuickJS requires at least 19_000_000 and SpiderMonkey 21_000_000.
   Thank you for the links and review.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1725332125


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   Merged. Thank you for the review.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724025133


##########
src/config/src/config.erl:
##########
@@ -612,7 +612,13 @@ to_float_test() ->
     ?assertEqual(1.0, to_float(<<"1.0">>)),
     ?assertEqual(1.0, to_float("1.0")),
     ?assertEqual(-1.1, to_float("-01.1")),
-    ?assertEqual(0.0, to_float("-0.0")),
+    ?assertEqual(
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" -> -0.0;
+            _ -> 0.0
+        end,
+        to_float("-0.0")
+    ),

Review Comment:
   Ooh, good find @jiahuili430. I had no idea we even had `?assertEquiv/1`It looks like was introduced in https://github.com/apache/couchdb/commit/306d2e2df54fa9406adf1022c4d250040b90e42a by Adam. Well that's perfect for what we want, let's use it!



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#issuecomment-2294946956

   > Do we also want to update the Elixir version in `mix.exs` (currently at `1.13`) to `1.17`, which [claims to support OTP 25-27](https://hexdocs.pm/elixir/1.17.2/compatibility-and-deprecations.html#between-elixir-and-erlang-otp)?
   
   We should already be using 1.72:
   
   ```
   jenkins@d999e780ea71:/$ iex
   Erlang/OTP 25 [erts-13.2.2.10] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
   
   Interactive Elixir (1.17.2) - press Ctrl+C to exit (type h() ENTER for help)
   ```
   
   Not sure what the 1.13 in mix.exs actually does but I don't think it actually installs elixir? It shouldn't be able to select an elixir version because there is not 1.13 any longer on our CI images. It will just complain if we try to compile with elixir < 1.13? We could bump it to 1.17.0 but we might accidentally exclude anyone still using 1.15 or something like that.


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1720599210


##########
src/config/src/config.erl:
##########
@@ -612,7 +612,13 @@ to_float_test() ->
     ?assertEqual(1.0, to_float(<<"1.0">>)),
     ?assertEqual(1.0, to_float("1.0")),
     ?assertEqual(-1.1, to_float("-01.1")),
-    ?assertEqual(0.0, to_float("-0.0")),
+    ?assertEqual(
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" -> -0.0;
+            _ -> 0.0
+        end,
+        to_float("-0.0")
+    ),

Review Comment:
   For `-0.0` and `0.0` let's have two cases and use numerical comparison == instead of `?assertEqual/2` which probably does exact comparisons.
   
   That is `?assertEqual(0.0 == to_float("-0.0"))` and `?assertEqual(0.0 == to_float("0.0"))`



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724013386


##########
src/config/src/config.erl:
##########
@@ -612,7 +612,13 @@ to_float_test() ->
     ?assertEqual(1.0, to_float(<<"1.0">>)),
     ?assertEqual(1.0, to_float("1.0")),
     ?assertEqual(-1.1, to_float("-01.1")),
-    ?assertEqual(0.0, to_float("-0.0")),
+    ?assertEqual(
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" -> -0.0;
+            _ -> 0.0
+        end,
+        to_float("-0.0")
+    ),

Review Comment:
   Changed to `?assertEquiv()`.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1720600265


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -575,5 +575,10 @@ should_not_use_excessive_memory_when_stemming() ->
             receive
                 {'DOWN', Ref, _, _, Res} -> Res
             end,
-        ?assertEqual(normal, Exit)
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" ->
+                ?assertEqual(killed, Exit);

Review Comment:
   For context this all started with https://github.com/apache/couchdb/pull/3963. Upstream OTP issue https://github.com/erlang/otp/issues/5808



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724125252


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   Yes, quickjs is always smaller than spidermonkey 1.8.5.
   - If I run tests using `make eunit apps=couch suites=couch_key_tree_tests tests=key_tree_stemming_test_`, then `quickjs -> 18_000_000, spidermonkey -> 21_000_000`;
   - If using `make eunit`, they use more heap, `quickjs -> 19_000_000, spidermonkey -> 22_000_000`.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1720597751


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -575,5 +575,10 @@ should_not_use_excessive_memory_when_stemming() ->
             receive
                 {'DOWN', Ref, _, _, Res} -> Res
             end,
-        ?assertEqual(normal, Exit)
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" ->
+                ?assertEqual(killed, Exit);

Review Comment:
   We should see what's happening here. The idea is we don't want stemming to take too much memory. Using a set based map helped keep the data on the heap, we were able to keep the max memory size down. It seems in 27 either the allocation strategy changes, the compiler changed or the memory calculation size changed. What if we increase it just a bit, maybe  16_000_000 would do it?



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1720599210


##########
src/config/src/config.erl:
##########
@@ -612,7 +612,13 @@ to_float_test() ->
     ?assertEqual(1.0, to_float(<<"1.0">>)),
     ?assertEqual(1.0, to_float("1.0")),
     ?assertEqual(-1.1, to_float("-01.1")),
-    ?assertEqual(0.0, to_float("-0.0")),
+    ?assertEqual(
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" -> -0.0;
+            _ -> 0.0
+        end,
+        to_float("-0.0")
+    ),

Review Comment:
   For `-0.0` and `0.0` let's have two cases and use numerical comparison == instead of `?assertEqual/2`, just to avoid having a special with an OTP version in there. We just care that it parses the float and numerically (`==` instead of `=:=`) they should all be `0.0`.
   
   That is `?assertEqual(0.0 == to_float("-0.0"))` and `?assertEqual(0.0 == to_float("0.0"))`



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724015919


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -575,5 +575,10 @@ should_not_use_excessive_memory_when_stemming() ->
             receive
                 {'DOWN', Ref, _, _, Res} -> Res
             end,
-        ?assertEqual(normal, Exit)
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" ->
+                ?assertEqual(killed, Exit);

Review Comment:
   Tried with OTP 27.0.1, QuickJS requires at least 18_000_000 and SpiderMonkey 21_000_000.
   Thank you for the links and review.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jaydoane (via GitHub)" <gi...@apache.org>.
jaydoane commented on PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#issuecomment-2294934851

   Do we also want to update the Elixir version in `mix.exs` (currently at `1.13`) to `1.17`, which [claims to support OTP 25-27](https://hexdocs.pm/elixir/1.17.2/compatibility-and-deprecations.html#between-elixir-and-erlang-otp)?


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 merged PR #5181:
URL: https://github.com/apache/couchdb/pull/5181


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#issuecomment-2294984195

   @jaydoane I gave it a try here https://github.com/apache/couchdb/pull/5182
   
   I just used 1.15, as 1.15 should still technically work and there is no need to force people to jump to 1.17.


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724056162


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   Oh interesting, does it seem like it js_engine related? That is a bit unexpected as we're just generating a plain re-tree. Is it fairly consistent?



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1725168189


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -561,10 +561,15 @@ should_not_use_excessive_memory_when_stemming() ->
         % Without the optimization #91de482fd66f4773b3b8583039c6bcaf1c5727ec
         % stemming would consume about 18_000_000 words. With it, it consumes
         % 6_000_000. So, use 13_000_000 as a threshold.
+        Size =
+            case ?COUCHDB_JS_ENGINE of
+                "quickjs" -> 18_000_000;
+                "spidermonkey" -> 21_000_000

Review Comment:
   I pulled the tree generation into a separate module and see that in 27 the sizes of a tree is slightly larger
   
   27
   ```
   erts_debug:size(x:tree()).
   2052613
   ```
   
   26
   ```
   erts_debug:flat_size(x:tree()).
   1759383
   ```
   
   This coupled with an odd dependency on js engines, even though the key tree has nothing to do with js engines, indicates this is too flaky to deal with. It was a nice hack while it lasted, but I'd opt to remove the test. 



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add OTP 27 to pull request CI list [couchdb]

Posted by "jiahuili430 (via GitHub)" <gi...@apache.org>.
jiahuili430 commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724015919


##########
src/couch/test/eunit/couch_key_tree_tests.erl:
##########
@@ -575,5 +575,10 @@ should_not_use_excessive_memory_when_stemming() ->
             receive
                 {'DOWN', Ref, _, _, Res} -> Res
             end,
-        ?assertEqual(normal, Exit)
+        case erlang:system_info(otp_release) of
+            Ver when Ver =:= "27" ->
+                ?assertEqual(killed, Exit);

Review Comment:
   Tried with OTP 27.0.1, QuickJS requires at least 19_000_000 and SpiderMonkey 22_000_000.
   Thank you for the links and review.



-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org