File tree Expand file tree Collapse file tree 5 files changed +48
-0
lines changed
Expand file tree Collapse file tree 5 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,16 @@ public async Task ExecuteBatchSQLAsync_WithCancellation_CanComplete()
120120 }
121121
122122 [ Fact ]
123+ [ Trait ( "Category" , "Performance" ) ]
123124 public void ExecuteBatchSQL_LargeVolume_Performance ( )
124125 {
126+ // Skip in CI - GitHub Actions runners have slow I/O
127+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
128+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
129+ {
130+ return ; // Skip performance test in CI
131+ }
132+
125133 // Arrange
126134 var db = _factory . Create ( _testDbPath , "testpass" ) ;
127135 db . ExecuteSQL ( "CREATE TABLE perf_batch (id INTEGER, timestamp DATETIME, value DECIMAL)" ) ;
Original file line number Diff line number Diff line change @@ -156,8 +156,16 @@ public void BufferedWal_MixedOperations_WorksCorrectly()
156156 }
157157
158158 [ Fact ]
159+ [ Trait ( "Category" , "Performance" ) ]
159160 public void BufferedWal_PerformanceImprovement_IsMeasurable ( )
160161 {
162+ // Skip in CI - GitHub Actions runners have slow I/O
163+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
164+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
165+ {
166+ return ; // Skip performance test in CI
167+ }
168+
161169 // This test validates that buffered WAL provides consistent performance
162170 // by measuring time for bulk inserts
163171
Original file line number Diff line number Diff line change @@ -77,8 +77,16 @@ public async Task Database_ExecuteSQLAsync_Batching_ProcessesInParallel()
7777 }
7878
7979 [ Fact ]
80+ [ Trait ( "Category" , "Performance" ) ]
8081 public void Database_ExecuteBatchSQL_LargeBatch_PerformanceBenchmark ( )
8182 {
83+ // Skip in CI - GitHub Actions runners have slow I/O
84+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
85+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
86+ {
87+ return ; // Skip performance test in CI
88+ }
89+
8290 // Arrange
8391 var db = _factory . Create ( _testDbPath , "password" ) ;
8492 db . ExecuteSQL ( "CREATE TABLE perf_test (id INTEGER, data TEXT, timestamp DATETIME)" ) ;
Original file line number Diff line number Diff line change @@ -98,8 +98,16 @@ public void NoEncryption_DataPersistence_WorksCorrectly()
9898 }
9999
100100 [ Fact ]
101+ [ Trait ( "Category" , "Performance" ) ]
101102 public void NoEncryption_PerformanceBenefit_IsMeasurable ( )
102103 {
104+ // Skip in CI - GitHub Actions runners have slow I/O and this test takes too long
105+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
106+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
107+ {
108+ return ; // Skip performance test in CI
109+ }
110+
103111 // Arrange
104112 var configNoEncrypt = new DatabaseConfig { NoEncryptMode = true } ;
105113 var configEncrypted = DatabaseConfig . Default ;
Original file line number Diff line number Diff line change @@ -25,8 +25,16 @@ public WriteOperationQueueTests()
2525 }
2626
2727 [ Fact ]
28+ [ Trait ( "Category" , "Performance" ) ]
2829 public async System . Threading . Tasks . Task WriteBlockAsync_WithBatching_ShouldImprovePerformance ( )
2930 {
31+ // Skip in CI - GitHub Actions runners have slow I/O
32+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
33+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
34+ {
35+ return ; // Skip performance test in CI
36+ }
37+
3038 // Arrange
3139 var options = new DatabaseOptions
3240 {
@@ -100,8 +108,16 @@ public async System.Threading.Tasks.Task FlushPendingWritesAsync_ShouldPersistAl
100108 }
101109
102110 [ Fact ]
111+ [ Trait ( "Category" , "Performance" ) ]
103112 public async System . Threading . Tasks . Task WriteBlockAsync_MultipleConcurrentWrites_ShouldQueue ( )
104113 {
114+ // Skip in CI - GitHub Actions runners have slow I/O
115+ if ( Environment . GetEnvironmentVariable ( "CI" ) == "true" ||
116+ Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" )
117+ {
118+ return ; // Skip performance test in CI
119+ }
120+
105121 // Arrange
106122 var options = new DatabaseOptions
107123 {
You can’t perform that action at this time.
0 commit comments