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

jt2594838 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new b896b6f5186 [Doc] Avoid global database counts in integration tests 
(#19127)
b896b6f5186 is described below

commit b896b6f51860b104f7ed032f75356b1ae1f96ab8
Author: Caideyipi <[email protected]>
AuthorDate: Thu Nov 5 10:02:53 2026 +0800

    [Doc] Avoid global database counts in integration tests (#19127)
---
 integration-test/AGENTS.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/integration-test/AGENTS.md b/integration-test/AGENTS.md
index ed67a6b613f..d121b388f38 100644
--- a/integration-test/AGENTS.md
+++ b/integration-test/AGENTS.md
@@ -104,6 +104,11 @@ These instructions apply to `integration-test/` and 
supplement the repository-le
   changed state or configuration using the repository's test helpers. Wait for 
asynchronous
   cleanup effects, such as quota accounting after schema deletion, before the 
next method's setup;
   successful cleanup SQL alone does not prove that dependent cluster state has 
converged.
+- Do not use global database-count statements such as `COUNT DATABASE` or 
`COUNT DATABASE root.**`
+  in ITs, including helper methods and wait conditions. Limit counts to an 
explicit test-owned
+  database path or test-specific path pattern, or assert the existence or 
absence of the specific
+  test databases. Do not assume that the cluster's total database count equals 
the number created
+  by the test; pre-existing databases can vary across test environments.
 - Close sessions, pools, and result sets; shut down test-owned executors and 
clean the cluster
   even when assertions fail. Use try-with-resources and `finally` as 
appropriate.
 - Assert the behavior under test and its recovery result. Only tolerate 
expected cleanup errors

Reply via email to