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

jan pushed a commit to branch auto-delete-3-plus-shard-move
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 444c86324dc6e49be389de12da3408945ba56f0d
Author: Robert Newson <rnew...@apache.org>
AuthorDate: Thu Jun 12 14:37:27 2025 +0100

    disable smoosh and ken
    
    disable smoosh and ken so that only our commands change the couchdb
    state.
---
 Makefile |  2 +-
 dev/run  | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5feaa8deb..14935225b 100644
--- a/Makefile
+++ b/Makefile
@@ -261,7 +261,7 @@ elixir-cluster-with-quorum: elixir-init devclean
 .PHONY: elixir-cluster
 elixir-cluster: export MIX_ENV=integration
 elixir-cluster: elixir-init devclean
-       @dev/run -n 3 -q -a adm:pass --with-nouveau \
+       @dev/run -n 3 -q -a adm:pass --with-nouveau --no-auto \
                --no-eval 'mix test --trace --only with_cluster $(EXUNIT_OPTS)'
 
 .PHONY: elixir
diff --git a/dev/run b/dev/run
index 4349e45e3..8bec0abed 100755
--- a/dev/run
+++ b/dev/run
@@ -267,6 +267,13 @@ def get_args_parser():
         default=None,
         help="Use TCP for specified node when TLS distribution is enabled",
     )
+    parser.add_option(
+        "--no-auto",
+        dest="no_auto",
+        default=False,
+        action="store_true",
+        help="Disable auto-indexing and auto-compaction",
+    )
     return parser
 
 
@@ -304,6 +311,7 @@ def setup_context(opts, args):
         "erlang_cookie": opts.erlang_cookie,
         "enable_tls": opts.enable_tls,
         "no_tls": opts.no_tls,
+        "no_auto": opts.no_auto,
     }
 
 
@@ -856,6 +864,10 @@ def hack_vm_args(ctx, node, contents):
     if ctx["erlang_cookie"]:
         contents += f"""
 -setcookie {ctx["erlang_cookie"]}
+"""
+    if ctx["no_auto"]:
+        contents += """
+-kernel permissions '[{smoosh,false},{ken,false}]'
 """
     return contents
 

Reply via email to