fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
@@ -109,9 +109,9 @@ final readonly class ExceptionMetricsCollector
|
||||
private function getMetricValue(CacheKey $cacheKey): int
|
||||
{
|
||||
$result = $this->cache->get($cacheKey);
|
||||
$item = $result->getFirstHit();
|
||||
$item = $result->getItem($cacheKey);
|
||||
|
||||
if ($item === null) {
|
||||
if (!$item->isHit) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -135,9 +135,9 @@ final readonly class ExceptionMetricsCollector
|
||||
{
|
||||
$cacheKey = CacheKey::fromString(self::CACHE_PREFIX . 'execution_times');
|
||||
$result = $this->cache->get($cacheKey);
|
||||
$item = $result->getFirstHit();
|
||||
$item = $result->getItem($cacheKey);
|
||||
|
||||
$times = $item !== null && is_array($item->value) ? $item->value : [];
|
||||
$times = $item->isHit && is_array($item->value) ? $item->value : [];
|
||||
$times[] = $executionTimeMs;
|
||||
|
||||
// Keep only last 1000 execution times
|
||||
@@ -161,9 +161,9 @@ final readonly class ExceptionMetricsCollector
|
||||
{
|
||||
$cacheKey = CacheKey::fromString(self::CACHE_PREFIX . 'execution_times');
|
||||
$result = $this->cache->get($cacheKey);
|
||||
$item = $result->getFirstHit();
|
||||
$item = $result->getItem($cacheKey);
|
||||
|
||||
if ($item === null || !is_array($item->value)) {
|
||||
if (!$item->isHit || !is_array($item->value)) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user