Skip to content

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Dec 23, 2025

This is my attempt to get TAP tests in Cloudberry CI.

x-ref to my sandbox repo
open-gpdb#10

@reshke
Copy link
Contributor Author

reshke commented Dec 24, 2025

Currrently initdb TAP test fails due to

# Running: initdb -N -T german -X /__w/cloudberry/cloudberry/src/bin/initdb/tmp_check/tmp_test_IKXO/pgxlog /__w/cloudberry/cloudberry/src/bin/initdb/tmp_check/tmp_test_IKXO/data
initdb: error: The program "postgres" is needed by initdb but was not found in the
same directory as "/__w/cloudberry/cloudberry/src/bin/initdb/initdb".

locally I fix it this source /path/to/cloubderry-env.sh

UPD: looks like I need to make installcheck instead of make check

@reshke reshke changed the title Update build-cloudberry.yml Enable src/bin TAP tests in CI Dec 24, 2025
@reshke reshke added the TAP label Dec 24, 2025
@reshke
Copy link
Contributor Author

reshke commented Dec 24, 2025

I think our CI is missing this icw-test check

@tuhaihe
Copy link
Member

tuhaihe commented Jan 6, 2026

Some tests failed. Maybe we need to update the related output files. FYI.

diff -I HINT: -I CONTEXT: -I GP_IGNORE: -U3 /__w/cloudberry/cloudberry/src/test/isolation2/expected/concurrent_partition_table_operations_should_not_deadlock.out /__w/cloudberry/cloudberry/src/test/isolation2/results/concurrent_partition_table_operations_should_not_deadlock.out
--- /__w/cloudberry/cloudberry/src/test/isolation2/expected/concurrent_partition_table_operations_should_not_deadlock.out	2026-01-05 02:53:30.001712108 -0800
+++ /__w/cloudberry/cloudberry/src/test/isolation2/results/concurrent_partition_table_operations_should_not_deadlock.out	2026-01-05 02:53:30.008712151 -0800
@@ -1,6 +1,6 @@
 GP_IGNORE: formatted by atmsort.pm
 CREATE EXTENSION IF NOT EXISTS gp_inject_fault;
-CREATE EXTENSION
+CREATE
 
 
 -- Two concurrent transactions on partitioned table
@@ -8,9 +8,9 @@
 --    2) truncate
 -- should not cause deadlock
 CREATE TABLE pt(a int, b text) DISTRIBUTED BY (a) PARTITION BY range(a) (start (0) end(10) every(2));
-CREATE TABLE
+CREATE
 INSERT INTO pt SELECT i%10, 'text'||i FROM generate_series(1, 10)i;
-INSERT 0 10
+INSERT 10
 VACUUM ANALYZE pt;
 VACUUM
 
@@ -19,9 +19,9 @@
 ___________
  Gather Motion 3:1  (slice1; segments: 3) 
    ->  Append                             
-         ->  Seq Scan on pt_1_prt_1       
+         ->  Seq Scan on pt_1_prt_1 pt_1  
                Filter: (a < 4)            
-         ->  Seq Scan on pt_1_prt_2       
+         ->  Seq Scan on pt_1_prt_2 pt_2  
                Filter: (a < 4)            
 GP_IGNORE:(7 rows)
 -- [ORCA] Fetch stats outside transaction so that we skip locking inside the transaction due to fetching stats.
@@ -75,9 +75,9 @@
  3 | text3  
 (4 rows)
 1: END;
-COMMIT
+END
 2<:  <... completed>
-TRUNCATE TABLE
+TRUNCATE
 
 
 -- Two concurrent transactions on partitioned table
@@ -85,7 +85,7 @@
 --    2) truncate
 -- should not cause deadlock
 CREATE INDEX idx ON pt(a);
-CREATE INDEX
+CREATE
 VACUUM ANALYZE pt;
 VACUUM
 
@@ -94,9 +94,9 @@
 ___________
  Gather Motion 3:1  (slice1; segments: 3) 
    ->  Append                             
-         ->  Seq Scan on pt_1_prt_1       
+         ->  Seq Scan on pt_1_prt_1 pt_1  
                Filter: (a < 4)            
-         ->  Seq Scan on pt_1_prt_2       
+         ->  Seq Scan on pt_1_prt_2 pt_2  
                Filter: (a < 4)            
 GP_IGNORE:(7 rows)
 -- [ORCA] Fetch stats outside transaction so that we skip locking inside the transaction due to fetching stats.
@@ -146,9 +146,9 @@
  3 | text3 
 (2 rows)
 1: END;
-COMMIT
+END
 2<:  <... completed>
-TRUNCATE TABLE
+TRUNCATE
 
 
 -- Two concurrent transactions on partitioned table
@@ -163,9 +163,9 @@
 ___________
  Gather Motion 3:1  (slice1; segments: 3) 
    ->  Append                             
-         ->  Seq Scan on pt_1_prt_1       
+         ->  Seq Scan on pt_1_prt_1 pt_1  
                Filter: (a < 4)            
-         ->  Seq Scan on pt_1_prt_2       
+         ->  Seq Scan on pt_1_prt_2 pt_2  
                Filter: (a < 4)            
 GP_IGNORE:(7 rows)
 -- [ORCA] Fetch stats outside transaction so that we skip locking inside the transaction due to fetching stats.
@@ -215,6 +215,6 @@
  3 
 (2 rows)
 1: END;
-COMMIT
+END
 2<:  <... completed>
-TRUNCATE TABLE
+TRUNCATE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants