feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready

This commit is contained in:
2025-10-31 01:39:24 +01:00
parent 55c04e4fd0
commit e26eb2aa12
601 changed files with 44184 additions and 32477 deletions

View File

@@ -88,12 +88,13 @@ describe('QueryPattern Value Object', function () {
it('calculates N+1 severity correctly', function () {
$queries = [];
// High execution count (20 queries)
// High execution count (20 queries) + high total time
// Severity: exec_count(20)=+2, avg_time(55ms)=+3, consistent_caller=+2, total_time(1100ms)=+1 → 8 points
for ($i = 1; $i <= 20; $i++) {
$queries[] = new QueryLog(
sql: 'SELECT * FROM posts WHERE user_id = ?',
bindings: [$i],
executionTimeMs: 10.0,
executionTimeMs: 55.0, // Increased from 10.0 to reach >6 severity
stackTrace: 'UserController::show',
callerClass: 'UserController',
callerMethod: 'show'
@@ -111,11 +112,13 @@ describe('QueryPattern Value Object', function () {
it('classifies severity levels correctly', function () {
$highSeverityQueries = [];
// 50 queries with high execution time to reach CRITICAL or HIGH severity
// Severity: exec_count(50)=+3, avg_time(55ms)=+3, consistent_caller=+2, total_time(2750ms)=+1 → 9 points (CRITICAL)
for ($i = 1; $i <= 50; $i++) {
$highSeverityQueries[] = new QueryLog(
sql: 'SELECT * FROM posts WHERE user_id = ?',
bindings: [$i],
executionTimeMs: 15.0,
executionTimeMs: 55.0, // Increased from 15.0 to reach CRITICAL/HIGH
stackTrace: 'UserController::show',
callerClass: 'UserController',
callerMethod: 'show'