From f31238e77b6166d0839593720985543de85c9682 Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Mon, 31 Aug 2026 15:10:05 +0200 Subject: [PATCH 1/3] Align workflow filenames with 2026.x; remove dead duplicates Migration-named new-* workflows take the default branch's filenames so upstream merges map file-to-file; old copies are removed only where verifiably dead (retired centralized reference or retired ubuntu-20.04 runners). Content is the branch's own, era-correct version - deliberately not synced from 2026.x (matrix differences). Co-Authored-By: Claude Opus 5 (1M context) --- .../workflows/{new-static-analysis.yaml => static-analysis.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{new-static-analysis.yaml => static-analysis.yaml} (100%) diff --git a/.github/workflows/new-static-analysis.yaml b/.github/workflows/static-analysis.yaml similarity index 100% rename from .github/workflows/new-static-analysis.yaml rename to .github/workflows/static-analysis.yaml From c0aa5fa848ae46c94becedc1b49744a19596ad4d Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Mon, 31 Aug 2026 16:24:16 +0200 Subject: [PATCH 2/3] Align 2025-line workflows with 2026.x (non-matrix families) 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) --- .github/workflows/static-analysis.yaml | 2 + .github/workflows/static-analysis.yaml.bak | 95 ---------------------- 2 files changed, 2 insertions(+), 95 deletions(-) delete mode 100644 .github/workflows/static-analysis.yaml.bak diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 6e0327d..b447c1f 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -12,6 +12,7 @@ on: - 'doc/**' - 'install/**' - 'src/Resources/public/**' + - '**.md' push: paths-ignore: - 'assets/**' @@ -19,6 +20,7 @@ on: - 'doc/**' - 'install/**' - 'src/Resources/public/**' + - '**.md' branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" diff --git a/.github/workflows/static-analysis.yaml.bak b/.github/workflows/static-analysis.yaml.bak deleted file mode 100644 index 9d4310b..0000000 --- a/.github/workflows/static-analysis.yaml.bak +++ /dev/null @@ -1,95 +0,0 @@ -name: "Static analysis centralised" - -on: - schedule: - - cron: '0 3 * * 1,3,5' - workflow_dispatch: - push: - branches: - - "[0-9]+.[0-9]+" - - "[0-9]+.x" - - "feature-*" - pull_request: - types: [ opened, synchronize, reopened ] - - -env: - PIMCORE_PROJECT_ROOT: ${{ github.workspace }} - PRIVATE_REPO: ${{ github.event.repository.private }} - -jobs: - setup-matrix: - runs-on: ubuntu-latest - outputs: - php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} - matrix: ${{ steps.set-matrix.outputs.matrix }} - private_repo: ${{ env.PRIVATE_REPO }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Checkout reusable workflow repo - uses: actions/checkout@v4 - with: - repository: pimcore/workflows-collection-public - ref: main - path: reusable-workflows - - - name: Parse PHP versions from composer.json - id: parse-php-versions - run: | - if [ -f composer.json ]; then - php_versions=$(jq -r '.require.php' composer.json | grep -oP '\d+\.\d+' | tr '\n' ',' | sed 's/,$//') - if [ -z "$php_versions" ]; then - echo "No PHP versions found in composer.json" - echo "Setting default PHP value" - echo "php_versions=default" >> $GITHUB_OUTPUT - else - echo "php_versions=$php_versions" >> $GITHUB_OUTPUT - echo "#### php versions #### : $php_versions" - fi - else - echo "composer.json not found" - exit 1 - fi - - - name: Set up matrix - id: set-matrix - run: | - php_versions="${{ steps.parse-php-versions.outputs.php_versions }}" - - MATRIX_JSON=$(cat reusable-workflows/phpstan-configuration/matrix-config.json) - - IFS=',' read -ra VERSIONS_ARRAY <<< "$php_versions" - - FILTERED_MATRIX_JSON=$(echo $MATRIX_JSON | jq --arg php_versions "$php_versions" ' - { - matrix: [ - .configs[] | - select(.php_version == $php_versions) | - .matrix[] - ] - }') - - ENCODED_MATRIX_JSON=$(echo $FILTERED_MATRIX_JSON | jq -c .) - - echo "matrix=${ENCODED_MATRIX_JSON}" >> $GITHUB_OUTPUT - - static-analysis: - needs: setup-matrix - strategy: - matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }} - uses: pimcore/workflows-collection-public/.github/workflows/reusable-static-analysis-centralized.yaml@main - with: - APP_ENV: test - PIMCORE_TEST: 1 - PRIVATE_REPO: ${{ needs.setup-matrix.outputs.private_repo}} - PHP_VERSION: ${{ matrix.matrix.php-version }} - SYMFONY: ${{ matrix.matrix.symfony }} - DEPENDENCIES: ${{ matrix.matrix.dependencies }} - EXPERIMENTAL: ${{ matrix.matrix.experimental }} - PIMCORE_VERSION: ${{ matrix.matrix.pimcore_version }} - COMPOSER_OPTIONS: ${{ matrix.matrix.composer_options }} - secrets: - SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER: ${{ secrets.SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER }} - COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN: ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }} \ No newline at end of file From 9514e04b7f827787d14d51786197f72749e0220c Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Thu, 3 Sep 2026 15:44:16 +0200 Subject: [PATCH 3/3] Consistency batch: agreed knobs and trigger polish Per the consistency audit and the decisions of 2026-09-03: markdown-only changes skip the suites; feature-* leaves the push filters (epics get CI via their PRs); static analysis pull_request aligned to version branches; concurrency uniformly keyed by PR number; setup jobs at 10 minutes with an empty-matrix error guard; the studio frontend build no longer re-runs on every PR push (its committed output directory left the pull_request paths while the push-side stale-merge detection stays exactly as designed). Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/codeception.yaml | 22 +++++++++++++++++++++- .github/workflows/static-analysis.yaml | 7 ++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeception.yaml b/.github/workflows/codeception.yaml index bed1f3f..de53388 100644 --- a/.github/workflows/codeception.yaml +++ b/.github/workflows/codeception.yaml @@ -5,20 +5,36 @@ on: - cron: '0 3 * * 1,3,5' workflow_dispatch: push: + paths-ignore: + - 'assets/**' + - 'assets-customized/**' + - 'doc/**' + - 'src/Resources/public/**' + - '**.md' branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" - - "feature-*" pull_request: + paths-ignore: + - 'assets/**' + - 'assets-customized/**' + - 'doc/**' + - 'src/Resources/public/**' + - '**.md' types: [opened, synchronize, reopened] env: PIMCORE_PROJECT_ROOT: ${{ github.workspace }} PRIVATE_REPO: ${{ github.event.repository.private }} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: setup-matrix: runs-on: ubuntu-latest + timeout-minutes: 10 outputs: php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} matrix: ${{ steps.set-matrix.outputs.matrix }} @@ -70,6 +86,10 @@ jobs: ] }') + if [ "$(echo "$FILTERED_MATRIX_JSON" | jq '.matrix | length')" = "0" ]; then + echo "::error::No matrix configuration found for PHP versions '$php_versions'" + exit 1 + fi ENCODED_MATRIX_JSON=$(echo $FILTERED_MATRIX_JSON | jq -c .) echo "matrix=${ENCODED_MATRIX_JSON}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index b447c1f..9c595ec 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -30,12 +30,13 @@ env: PRIVATE_REPO: ${{ github.event.repository.private }} concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: setup-matrix: runs-on: ubuntu-latest + timeout-minutes: 10 outputs: php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} phpstan_matrix: ${{ steps.set-matrix.outputs.phpstan_matrix }} @@ -71,6 +72,10 @@ jobs: php_versions="${{ steps.parse-php-versions.outputs.php_versions }}" MATRIX_JSON=$(cat reusable-workflows/phpstan-configuration/matrix-config.json) FILTERED_MATRIX_JSON=$(echo "$MATRIX_JSON" | jq --arg php_versions "$php_versions" '{ include: [ .configs[] | select(.php_version == $php_versions) | .matrix[] ] }') + if [ "$(echo "$FILTERED_MATRIX_JSON" | jq '.include | length')" = "0" ]; then + echo "::error::No matrix configuration found for PHP versions '$php_versions'" + exit 1 + fi ENCODED_MATRIX_JSON=$(echo "$FILTERED_MATRIX_JSON" | jq -c .) echo "phpstan_matrix=$ENCODED_MATRIX_JSON" >> "$GITHUB_OUTPUT"