Skip to content

Repoint static analysis to reusable-static-analysis-unified - #83

Merged
berfinyuksel merged 4 commits into
2.1from
ci/static-analysis-unified-2.0
Sep 21, 2026
Merged

berfinyuksel merged 4 commits into
2.1from
ci/static-analysis-unified-2.0

Conversation

@berfinyuksel

Copy link
Copy Markdown
Contributor

Fix for the silently-dead static analysis (pimcore/DevOps-Tasks#47): this branch's caller references reusable-static-analysis-centralized.yaml, retired from workflows-collection-public on 2025-12-09 — every run since start-failed with zero jobs. Replaced with the unified pattern validated on pimcore/web2print-tools#121 and green on pimcore/system-info-bundle#61 / pimcore/opensearch-client#59.

This lands on the lowest 12-era branch: the older branches of this repo cannot install any Pimcore ^10/^11 release under Composer 2.9's Packagist advisory policy (verified in PR runs), so their static analysis stays documented on #47 pending the workflows-owner decision. Forward-merge up the remaining chain follows after merge.

Also carries pimcore/DevOps-Tasks#44 ideas 1–3 in the same file: push scoped to version branches, concurrency keyed by PR number (cancels superseded runs, no cross-fork collisions), paths-ignore for docs/assets/markdown.

Expected on this PR: static analysis runs real matrix legs.

Copilot AI balanced review requested due to automatic review settings August 26, 2026 12:10
@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Aug 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reactivates static analysis by migrating to the unified reusable workflow and refining workflow triggers.

Changes:

  • Uses the unified PHPStan matrix workflow.
  • Adds path filters and version-branch push restrictions.
  • Adds cancellation of superseded runs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

needs: setup-matrix
uses: pimcore/workflows-collection-public/.github/workflows/reusable-static-analysis-unified.yaml@main
with:
phpstan_matrix: ${{ needs.setup-matrix.outputs.phpstan_matrix }}
Rebased to 2.1 per the platform-version line map (2024.4/2025.4/2026.2/2026.x
are the valid lines; the previous base was not on a valid line). The caller
referenced a reusable retired on 2025-12-09, so every run start-failed with
zero jobs. Convergence lands on the 2025-line only; 2024-line workflows keep
their own matrices per policy.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@berfinyuksel
berfinyuksel changed the base branch from 2.0 to 2.1 August 26, 2026 14:13
@berfinyuksel
berfinyuksel force-pushed the ci/static-analysis-unified-2.0 branch from c8102e8 to bc29b2d Compare August 26, 2026 14:14
@berfinyuksel
berfinyuksel marked this pull request as draft August 26, 2026 14:33
@berfinyuksel

Copy link
Copy Markdown
Contributor Author

Converting to draft: the repoint itself works (setup-matrix and both legs execute), but the restored analysis surfaces real PHPStan findings on 2.1 that were invisible while the workflow was dead — e.g. scalarNode() on the unknown generic NodeBuilder class under highest deps. Needs either a phpstan-baseline entry or the small Configuration type-hint fix on this branch before merge; that is a code decision, not a workflow one. Marking draft so nobody merges a permanently-red check.

berfinyuksel and others added 2 commits August 31, 2026 16:23
Per review of the drift map: .bak files removed, obsolete frontend/npm
workflows removed, cla/docs/poeditor/cs-fixer/copilot-setup/stale synced
to the 2026.x content and filenames, and static analysis gets the uniform
paths-ignore (assets, assets-customized, doc, install, src/Resources/public,
**.md). Matrix-bearing workflows keep their era-specific content.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@berfinyuksel
berfinyuksel requested review from robertSt7 and removed request for bluvulture September 4, 2026 10:31
@berfinyuksel
berfinyuksel marked this pull request as ready for review September 4, 2026 10:33
@sonarqubecloud

Copy link
Copy Markdown

@berfinyuksel
berfinyuksel merged commit 5c738c6 into 2.1 Sep 21, 2026
13 checks passed
@berfinyuksel
berfinyuksel deleted the ci/static-analysis-unified-2.0 branch September 21, 2026 12:59
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Skip Milestone Check Exempts this PR from the mandatory milestone requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants