Make WordPress Core

Changeset 63162 for trunk


Ignore:
Timestamp:
08/10/2026 05:21:35 PM (5 days ago)
Author:
desrosj
Message:

Build/Test Tools: Miscellaneous imrpovements after [62859].

This applies several small changes to improve on the changes aimed at fetching the built Gutenberg asset zip file once per run:

  • Adds some missing step names.
  • Converts the gutenberg-artifact workflow input from a string to boolean.
  • Removes overly complex job description.

Developed in https://github.com/WordPress/wordpress-develop/pull/12935.

Follow up to [62859], [62862].

Props desrosj, irozum.
Fixes #65721.

Location:
trunk/.github/workflows
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r62951 r63162  
    5454jobs:
    5555  # Downloads and verifies the Gutenberg build once for all PHPUnit jobs.
    56   #
    57   # This condition is the union of the conditions on the jobs that need it, reduced.
    58   # The org matrices require `WordPress/wordpress-develop` or a pull request, and the
    59   # fork matrix requires a pull request, so `wordpress-develop` or a pull request
    60   # covers every case. Keep it in step with those jobs: a narrower condition orphans
    61   # them, because a job that needs a skipped job is skipped too, and a broader one
    62   # downloads a build that nothing consumes.
    6356  prepare-gutenberg:
     57    name: Prepare Gutenberg Assets
    6458    uses: ./.github/workflows/reusable-prepare-gutenberg.yml
    6559    permissions:
     
    145139      tests-domain: ${{ matrix.tests-domain }}
    146140      report: ${{ matrix.report || false }}
    147       gutenberg-artifact: gutenberg-build
     141      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    148142      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    149143
     
    201195      phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
    202196      report: false
    203       gutenberg-artifact: gutenberg-build
     197      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    204198      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    205199
     
    251245      phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
    252246      report: false
    253       gutenberg-artifact: gutenberg-build
     247      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    254248      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    255249
     
    286280      db-version: ${{ matrix.db-version }}
    287281      phpunit-test-groups: ${{ matrix.phpunit-test-groups }}
    288       gutenberg-artifact: gutenberg-build
     282      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    289283      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    290284
     
    351345      phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
    352346      phpunit-test-groups: ${{ matrix.phpunit-test-groups || '' }}
    353       gutenberg-artifact: gutenberg-build
     347      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    354348      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    355349
  • trunk/.github/workflows/reusable-phpunit-tests-v3.yml

    r63003 r63162  
    7474        default: false
    7575      gutenberg-artifact:
    76         description: 'The name of a same-workflow artifact containing the prepared Gutenberg build. Optional: callers that omit it download Gutenberg per job.'
    77         required: false
    78         type: string
    79         default: ''
     76        description: 'Whether the Gutenberg-sourced assets are sourced from zip artifact.'
     77        required: false
     78        type: boolean
     79        default: false
    8080      gutenberg-sha:
    8181        description: 'The immutable Gutenberg source SHA verified by the calling workflow.'
     
    147147          persist-credentials: false
    148148
    149       # Branches >= 5.9 call this workflow at @trunk without the producer job, so they
    150       # pass no artifact. They skip this step and fall back to a per-job download.
     149      # Only WordPress 7.0+ include Gutenberg-maintained assets from a built zip file.
    151150      - name: Download prepared Gutenberg build
    152         if: inputs.gutenberg-artifact != ''
     151        if: ${{ inputs.gutenberg-artifact }}
    153152        uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
    154153        with:
    155           # Without a run ID, this action reads only from the caller's current workflow run.
    156           name: ${{ inputs.gutenberg-artifact }}
     154          name: gutenberg-build
    157155          path: gutenberg
    158156          digest-mismatch: error
  • trunk/.github/workflows/test-coverage.yml

    r62859 r63162  
    5353  # Downloads and verifies the Gutenberg build once for all coverage jobs.
    5454  prepare-gutenberg:
     55    name: Prepare Gutenberg Assets
    5556    uses: ./.github/workflows/reusable-prepare-gutenberg.yml
    5657    permissions:
     
    7778      multisite: ${{ matrix.multisite }}
    7879      coverage-report: ${{ matrix.coverage-report }}
    79       gutenberg-artifact: gutenberg-build
     80      gutenberg-artifact: ${{ needs.prepare-gutenberg.result != 'skipped' }}
    8081      gutenberg-sha: ${{ needs.prepare-gutenberg.outputs.gutenberg-sha }}
    8182    secrets:
Note: See TracChangeset for help on using the changeset viewer.