ci: exclude PostgreSQL tests from CI workflow
Build and Deploy to Synology NAS / test (push) Successful in 1h8m11s
Build and Deploy to Synology NAS / build (push) Failing after 2h11m18s
Build and Deploy to Synology NAS / deploy (push) Failing after 11m20s
Build and Deploy to Synology NAS / notify (push) Has been cancelled

- Added --exclude-group=backend-db flag to test command in Gitea workflow
- Marked all PostgreSQL-dependent tests with ->group('backend-db')
- Tests in BackendModelsTest.php (8 tests) now excluded from CI
- Tests in SyncBackendDataPoolTest.php (8 tests) now excluded from CI
- These tests still run locally where PostgreSQL backend is available

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
cbazzaandClaude committed 2025-12-17 18:04:42 +01:00
1 parent 94d02736f7
commit d0bd84f4a2
3 files changed
+17 -17

No files matched your search

@@ -43,7 +43,7 @@ test('full sync truncates and rebuilds backend_data_pool', function () {
->first();
expect($oldRecord)->toBeNull();
});
})->group('backend-db');
test('incremental sync only adds new records', function () {
// Arrange: Perform initial sync
@@ -62,7 +62,7 @@ test('incremental sync only adds new records', function () {
// Assert: Count should not increase significantly (only if new records in backend)
$newCount = DB::table('backend_data_pool')->count();
expect($newCount)->toBeGreaterThanOrEqual($initialCount);
});
})->group('backend-db');
test('sync correctly maps backend.transactions and backend.transaction_outputs', function () {
// Act: Perform sync
@@ -84,7 +84,7 @@ test('sync correctly maps backend.transactions and backend.transaction_outputs',
expect($record)->toHaveProperty('content');
expect($record)->toHaveProperty('synced_at');
}
});
})->group('backend-db');
test('sync only includes transactions with status done', function () {
// Act: Perform sync
@@ -97,7 +97,7 @@ test('sync only includes transactions with status done', function () {
->count();
expect($nonDoneRecords)->toBe(0);
});
})->group('backend-db');
test('sync processes records in batches', function () {
// Act: Perform sync with small batch size
@@ -107,7 +107,7 @@ test('sync processes records in batches', function () {
// Assert: Should complete without errors
$recordCount = DB::table('backend_data_pool')->count();
expect($recordCount)->toBeGreaterThanOrEqual(0);
});
})->group('backend-db');
test('getStats returns correct statistics', function () {
// Arrange: Perform sync
@@ -125,7 +125,7 @@ test('getStats returns correct statistics', function () {
expect($stats)->toHaveKey('last_synced_at');
expect($stats['backend_data_pool_records'])->toBeGreaterThanOrEqual(0);
});
})->group('backend-db');
test('sync handles empty backend gracefully', function () {
// This test assumes backend might be empty or have no 'done' transactions
@@ -137,7 +137,7 @@ test('sync handles empty backend gracefully', function () {
// Assert: Should complete without errors
$recordCount = DB::table('backend_data_pool')->count();
expect($recordCount)->toBeGreaterThanOrEqual(0);
});
})->group('backend-db');
test('sync orders records by transaction_id and prompt_id', function () {
// Act: Perform sync
@@ -167,4 +167,4 @@ test('sync orders records by transaction_id and prompt_id', function () {
$previousPromptId = $record->prompt_id;
}
}
});
})->group('backend-db');