Merge pull request 'fix: PHPStan level 5 - fix metrics increment bug' (#127) from dev into main
Generic: Repo Health / Access control (push) Successful in 5s
Generic: Repo Health / Site Health (push) Has been skipped
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 8s
Generic: Repo Health / Release configuration (push) Successful in 5s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 56s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Successful in 1m20s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Successful in 1m15s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 10s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Successful in 54s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 1m17s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 1m14s
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Generic: Repo Health / Access control (push) Successful in 5s
Generic: Repo Health / Site Health (push) Has been skipped
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 8s
Generic: Repo Health / Release configuration (push) Successful in 5s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 56s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Successful in 1m20s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Successful in 1m15s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 10s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Successful in 54s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 1m17s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 1m14s
Platform: moko-platform CI / CI Summary (push) Has been cancelled
This commit was merged in pull request #127.
This commit is contained in:
@@ -282,7 +282,7 @@ class BulkSync extends CliFramework
|
||||
}
|
||||
}
|
||||
|
||||
return array_values(array_merge($priority, $rest));
|
||||
return array_merge($priority, $rest);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1508,16 +1508,16 @@ HCL;
|
||||
|
||||
if ($updated) {
|
||||
$results['success']++;
|
||||
$this->metrics->increment('repos_updated_total', ['status' => 'success']);
|
||||
$this->metrics->increment('repos_updated_total', 1, ['status' => 'success']);
|
||||
$results['repositories'][$repoName] = 'updated';
|
||||
} else {
|
||||
$results['skipped']++;
|
||||
$this->metrics->increment('repos_updated_total', ['status' => 'skipped']);
|
||||
$this->metrics->increment('repos_updated_total', 1, ['status' => 'skipped']);
|
||||
$results['repositories'][$repoName] = 'skipped';
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$results['failed']++;
|
||||
$this->metrics->increment('repos_updated_total', ['status' => 'failed']);
|
||||
$this->metrics->increment('repos_updated_total', 1, ['status' => 'failed']);
|
||||
$results['repositories'][$repoName] = 'failed: ' . $e->getMessage();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
# PHPStan configuration for moko-platform projects
|
||||
parameters:
|
||||
level: 4
|
||||
level: 5
|
||||
paths:
|
||||
- lib
|
||||
- validate
|
||||
|
||||
Reference in New Issue
Block a user