Files
michaelschiemer/scripts/debug/debug_mapper_config.php
Michael Schiemer 36ef2a1e2c
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Failing after 10m14s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Has been skipped
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Security Vulnerability Scan / Check for Dependency Changes (push) Failing after 11m25s
Security Vulnerability Scan / Composer Security Audit (push) Has been cancelled
fix: Gitea Traefik routing and connection pool optimization
- Remove middleware reference from Gitea Traefik labels (caused routing issues)
- Optimize Gitea connection pool settings (MAX_IDLE_CONNS=30, authentication_timeout=180s)
- Add explicit service reference in Traefik labels
- Fix intermittent 504 timeouts by improving PostgreSQL connection handling

Fixes Gitea unreachability via git.michaelschiemer.de
2025-11-09 14:46:15 +01:00

40 lines
1.4 KiB
PHP

#!/usr/bin/env php
<?php
declare(strict_types=1);
require_once __DIR__ . '/vendor/autoload.php';
use App\Framework\Console\ConsoleCommandMapper;
use App\Framework\Console\ConsoleCommand;
use App\Framework\Console\DemoCommand;
use App\Framework\ReflectionLegacy\WrappedReflectionMethod;
echo "Testing ConsoleCommandMapper..." . PHP_EOL;
try {
$mapper = new ConsoleCommandMapper();
// Test the mapper configuration
echo "Mapper attribute class: " . $mapper->getAttributeClass() . PHP_EOL;
echo "ConsoleCommand class: " . ConsoleCommand::class . PHP_EOL;
echo "Classes match: " . ($mapper->getAttributeClass() === ConsoleCommand::class ? 'YES' : 'NO') . PHP_EOL;
// Test with a real method
$reflector = new ReflectionClass(DemoCommand::class);
$method = $reflector->getMethod('hello');
$attributes = $method->getAttributes(ConsoleCommand::class);
if (!empty($attributes)) {
$attribute = $attributes[0]->newInstance();
echo "Attribute found: " . $attribute->name . PHP_EOL;
// This would require complex setup, just test the basic mapping
echo "Basic mapper test passed!" . PHP_EOL;
} else {
echo "No attributes found on hello method!" . PHP_EOL;
}
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . PHP_EOL;
echo "Trace: " . $e->getTraceAsString() . PHP_EOL;
}