Make WordPress Core

Changeset 59720


Ignore:
Timestamp:
01/28/2025 02:00:16 PM (8 weeks ago)
Author:
desrosj
Message:

Build/Test Tools: Avoid using *-latest tags for runner images.

While using the ubuntu-latest, macos-latest, and windows-latest runner image tags is convenient, it has proven to be problematic in a number of instances as the runners are slowly updated (see #62808 and #62843).

This switches all workflows to using specific version tags representing the latest non-preview versions, which currently are as follows:

  • ubuntu-24.04
  • windows-2022
  • macos-14

Props swissspidy, johnbillion.
See #62221.

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

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r59687 r59720  
    8181  failed-workflow:
    8282    name: Failed workflow tasks
    83     runs-on: ubuntu-latest
     83    runs-on: ubuntu-24.04
    8484    permissions:
    8585      actions: write
  • trunk/.github/workflows/end-to-end-tests.yml

    r59687 r59720  
    6868  failed-workflow:
    6969    name: Failed workflow tasks
    70     runs-on: ubuntu-latest
     70    runs-on: ubuntu-24.04
    7171    permissions:
    7272      actions: write
  • trunk/.github/workflows/failed-workflow.yml

    r59679 r59720  
    2424  failed-workflow:
    2525    name: Rerun a workflow
    26     runs-on: ubuntu-latest
     26    runs-on: ubuntu-24.04
    2727    permissions:
    2828      actions: write
  • trunk/.github/workflows/install-testing.yml

    r59716 r59720  
    7070      fail-fast: false
    7171      matrix:
    72         os: [ ubuntu-latest ]
     72        os: [ ubuntu-24.04 ]
    7373        php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }}
    7474        db-type: [ 'mysql' ]
     
    153153  failed-workflow:
    154154    name: Failed workflow tasks
    155     runs-on: ubuntu-latest
     155    runs-on: ubuntu-24.04
    156156    permissions:
    157157      actions: write
  • trunk/.github/workflows/javascript-tests.yml

    r59687 r59720  
    7171  failed-workflow:
    7272    name: Failed workflow tasks
    73     runs-on: ubuntu-latest
     73    runs-on: ubuntu-24.04
    7474    permissions:
    7575      actions: write
  • trunk/.github/workflows/local-docker-environment.yml

    r59687 r59720  
    8383      fail-fast: false
    8484      matrix:
    85         os: [ ubuntu-latest ]
     85        os: [ ubuntu-24.04 ]
    8686        memcached: [ false, true ]
    8787        php: ${{ fromJSON( needs.build-test-matrix.outputs.php-versions ) }}
     
    124124  failed-workflow:
    125125    name: Failed workflow tasks
    126     runs-on: ubuntu-latest
     126    runs-on: ubuntu-24.04
    127127    permissions:
    128128      actions: write
  • trunk/.github/workflows/performance.yml

    r59687 r59720  
    6767  failed-workflow:
    6868    name: Failed workflow tasks
    69     runs-on: ubuntu-latest
     69    runs-on: ubuntu-24.04
    7070    permissions:
    7171      actions: write
  • trunk/.github/workflows/php-compatibility.yml

    r59687 r59720  
    6868  failed-workflow:
    6969    name: Failed workflow tasks
    70     runs-on: ubuntu-latest
     70    runs-on: ubuntu-24.04
    7171    permissions:
    7272      actions: write
  • trunk/.github/workflows/phpunit-tests.yml

    r59687 r59720  
    4545      fail-fast: false
    4646      matrix:
    47         os: [ ubuntu-latest ]
     47        os: [ ubuntu-24.04 ]
    4848        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
    4949        db-type: [ 'mysql' ]
     
    5555        include:
    5656          # Include jobs that test with memcached.
    57           - os: ubuntu-latest
     57          - os: ubuntu-24.04
    5858            php: '8.3'
    5959            db-type: 'mysql'
     
    6262            multisite: false
    6363            memcached: true
    64           - os: ubuntu-latest
     64          - os: ubuntu-24.04
    6565            php: '8.3'
    6666            db-type: 'mysql'
     
    7070            memcached: true
    7171          # Include jobs with a port on the test domain for both single and multisite.
    72           - os: ubuntu-latest
     72          - os: ubuntu-24.04
    7373            php: '8.4'
    7474            db-type: 'mysql'
     
    7777            multisite: false
    7878            memcached: false
    79           - os: ubuntu-latest
     79          - os: ubuntu-24.04
    8080            php: '8.4'
    8181            db-type: 'mysql'
     
    8585            memcached: false
    8686          # Report test results to the Host Test Results.
    87           - os: ubuntu-latest
     87          - os: ubuntu-24.04
    8888            db-type: 'mysql'
    8989            db-version: '8.4'
     
    116116      fail-fast: false
    117117      matrix:
    118         os: [ ubuntu-latest ]
     118        os: [ ubuntu-24.04 ]
    119119        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
    120120        db-type: [ 'mariadb' ]
     
    125125        include:
    126126        # Include jobs that test with memcached.
    127         - os: ubuntu-latest
     127        - os: ubuntu-24.04
    128128          php: '8.3'
    129129          db-type: 'mariadb'
     
    131131          multisite: false
    132132          memcached: true
    133         - os: ubuntu-latest
     133        - os: ubuntu-24.04
    134134          php: '8.3'
    135135          db-type: 'mariadb'
     
    166166      fail-fast: false
    167167      matrix:
    168         os: [ ubuntu-latest ]
     168        os: [ ubuntu-24.04 ]
    169169        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
    170170        db-type: [ 'mysql', 'mariadb' ]
     
    237237  failed-workflow:
    238238    name: Failed workflow tasks
    239     runs-on: ubuntu-latest
     239    runs-on: ubuntu-24.04
    240240    permissions:
    241241      actions: write
  • trunk/.github/workflows/props-bot.yml

    r59679 r59720  
    4949  props-bot:
    5050    name: Generate a list of props
    51     runs-on: ubuntu-latest
     51    runs-on: ubuntu-24.04
    5252    permissions:
    5353      # The action needs permission `write` permission for PRs in order to add a comment.
  • trunk/.github/workflows/pull-request-comments.yml

    r59679 r59720  
    2323  # Comments on a pull request when the author is a first time contributor.
    2424  post-welcome-message:
    25     runs-on: ubuntu-latest
     25    runs-on: ubuntu-24.04
    2626    permissions:
    2727      issues: write
     
    8181  playground-details:
    8282    name: Comment on a pull request with Playground details
    83     runs-on: ubuntu-latest
     83    runs-on: ubuntu-24.04
    8484    permissions:
    8585      issues: write
     
    171171  trac-ticket-check:
    172172    name: Manage Trac ticket reminders for pull requests
    173     runs-on: ubuntu-latest
     173    runs-on: ubuntu-24.04
    174174    permissions:
    175175      issues: write
  • trunk/.github/workflows/reusable-cleanup-pull-requests.yml

    r59679 r59720  
    2323  close-prs:
    2424    name: Find and close PRs
    25     runs-on: ubuntu-latest
     25    runs-on: ubuntu-24.04
    2626    permissions:
    2727      pull-requests: write
  • trunk/.github/workflows/reusable-coding-standards-javascript.yml

    r59716 r59720  
    2828  jshint:
    2929    name: Run coding standards checks
    30     runs-on: ubuntu-latest
     30    runs-on: ubuntu-24.04
    3131    permissions:
    3232      contents: read
  • trunk/.github/workflows/reusable-coding-standards-php.yml

    r59716 r59720  
    4040  phpcs:
    4141    name: Run coding standards checks
    42     runs-on: ubuntu-latest
     42    runs-on: ubuntu-24.04
    4343    permissions:
    4444      contents: read
  • trunk/.github/workflows/reusable-end-to-end-tests.yml

    r59716 r59720  
    6060  e2e-tests:
    6161    name: Run E2E tests
    62     runs-on: ubuntu-latest
     62    runs-on: ubuntu-24.04
    6363    permissions:
    6464      contents: read
  • trunk/.github/workflows/reusable-javascript-tests.yml

    r59716 r59720  
    2929  test-js:
    3030    name: Run QUnit tests
    31     runs-on: ubuntu-latest
     31    runs-on: ubuntu-24.04
    3232    permissions:
    3333      contents: read
  • trunk/.github/workflows/reusable-performance.yml

    r59716 r59720  
    116116  performance:
    117117    name: ${{ inputs.multisite && 'Multisite' || 'Single site' }} / ${{ inputs.memcached && 'Memcached' || 'Default' }}
    118     runs-on: ubuntu-latest
     118    runs-on: ubuntu-24.04
    119119    permissions:
    120120      contents: read
  • trunk/.github/workflows/reusable-php-compatibility.yml

    r59716 r59720  
    3434  php-compatibility:
    3535    name: Run compatibility checks
    36     runs-on: ubuntu-latest
     36    runs-on: ubuntu-24.04
    3737    permissions:
    3838      contents: read
  • trunk/.github/workflows/reusable-phpunit-tests-v1.yml

    r59716 r59720  
    1515        required: false
    1616        type: 'string'
    17         default: 'ubuntu-latest'
     17        default: 'ubuntu-24.04'
    1818      php:
    1919        description: 'The version of PHP to use, in the format of X.Y'
  • trunk/.github/workflows/reusable-phpunit-tests-v2.yml

    r59716 r59720  
    1515        required: false
    1616        type: 'string'
    17         default: 'ubuntu-latest'
     17        default: 'ubuntu-24.04'
    1818      php:
    1919        description: 'The version of PHP to use, in the format of X.Y'
  • trunk/.github/workflows/reusable-phpunit-tests-v3.yml

    r59717 r59720  
    1313        required: false
    1414        type: 'string'
    15         default: 'ubuntu-latest'
     15        default: 'ubuntu-24.04'
    1616      php:
    1717        description: 'The version of PHP to use, in the format of X.Y'
  • trunk/.github/workflows/reusable-support-json-reader-v1.yml

    r59679 r59720  
    4343    permissions:
    4444      contents: read
    45     runs-on: ubuntu-latest
     45    runs-on: ubuntu-24.04
    4646    timeout-minutes: 5
    4747    outputs:
     
    7979    permissions:
    8080      contents: read
    81     runs-on: ubuntu-latest
     81    runs-on: ubuntu-24.04
    8282    needs: [ major-wp-version ]
    8383    timeout-minutes: 5
     
    122122    permissions:
    123123      contents: read
    124     runs-on: ubuntu-latest
     124    runs-on: ubuntu-24.04
    125125    needs: [ major-wp-version ]
    126126    timeout-minutes: 5
  • trunk/.github/workflows/reusable-test-core-build-process.yml

    r59716 r59720  
    1111        required: false
    1212        type: 'string'
    13         default: 'ubuntu-latest'
     13        default: 'ubuntu-24.04'
    1414      directory:
    1515        description: 'Directory to run WordPress from. Valid values are `src` or `build`'
     
    9999
    100100      - name: Create ZIP of built files
    101         if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}
     101        if: ${{ inputs.directory == 'build' && 'ubuntu-24.04' == inputs.os }}
    102102        run: zip -r wordpress.zip build/.
    103103
  • trunk/.github/workflows/reusable-test-gutenberg-build-process.yml

    r59716 r59720  
    1111        required: false
    1212        type: 'string'
    13         default: 'ubuntu-latest'
     13        default: 'ubuntu-24.04'
    1414      directory:
    1515        description: 'Directory to run WordPress from. Valid values are `src` or `build`'
  • trunk/.github/workflows/reusable-test-local-docker-environment-v1.yml

    r59716 r59720  
    1313        required: false
    1414        type: 'string'
    15         default: 'ubuntu-latest'
     15        default: 'ubuntu-24.04'
    1616      php:
    1717        description: 'The version of PHP to use, in the format of X.Y'
  • trunk/.github/workflows/reusable-upgrade-testing.yml

    r59716 r59720  
    99        required: false
    1010        type: 'string'
    11         default: 'ubuntu-latest'
     11        default: 'ubuntu-24.04'
    1212      wp:
    1313        description: 'The version of WordPress to start with.'
  • trunk/.github/workflows/reusable-workflow-lint.yml

    r59679 r59720  
    1616  actionlint:
    1717    name: Run actionlint
    18     runs-on: ubuntu-latest
     18    runs-on: ubuntu-24.04
    1919    permissions:
    2020      contents: read
  • trunk/.github/workflows/slack-notifications.yml

    r59693 r59720  
    4848  prepare:
    4949    name: Prepare notifications
    50     runs-on: ubuntu-latest
     50    runs-on: ubuntu-24.04
    5151    permissions:
    5252      actions: read
     
    172172    name: Failure notifications
    173173    permissions: {}
    174     runs-on: ubuntu-latest
     174    runs-on: ubuntu-24.04
    175175    timeout-minutes: 10
    176176    needs: [ prepare ]
     
    189189    name: Fixed notifications
    190190    permissions: {}
    191     runs-on: ubuntu-latest
     191    runs-on: ubuntu-24.04
    192192    timeout-minutes: 10
    193193    needs: [ prepare ]
     
    206206    name: Success notifications
    207207    permissions: {}
    208     runs-on: ubuntu-latest
     208    runs-on: ubuntu-24.04
    209209    timeout-minutes: 10
    210210    needs: [ prepare ]
     
    223223    name: Cancelled notifications
    224224    permissions: {}
    225     runs-on: ubuntu-latest
     225    runs-on: ubuntu-24.04
    226226    timeout-minutes: 10
    227227    needs: [ prepare ]
  • trunk/.github/workflows/test-and-zip-default-themes.yml

    r59716 r59720  
    6060  check-for-empty-files:
    6161    name: ${{ matrix.theme }} empty file check
    62     runs-on: ubuntu-latest
     62    runs-on: ubuntu-24.04
    6363    permissions:
    6464      contents: read
     
    110110  test-build-scripts:
    111111    name: Test ${{ matrix.theme }} build script
    112     runs-on: ubuntu-latest
     112    runs-on: ubuntu-24.04
    113113    permissions:
    114114      contents: read
     
    159159  bundle-theme:
    160160    name: Create ${{ matrix.theme }} ZIP file
    161     runs-on: ubuntu-latest
     161    runs-on: ubuntu-24.04
    162162    permissions:
    163163      contents: read
     
    220220  failed-workflow:
    221221    name: Failed workflow tasks
    222     runs-on: ubuntu-latest
     222    runs-on: ubuntu-24.04
    223223    permissions:
    224224      actions: write
  • trunk/.github/workflows/test-build-processes.yml

    r59687 r59720  
    3939      fail-fast: false
    4040      matrix:
    41         os: [ ubuntu-latest, windows-latest ]
     41        os: [ ubuntu-24.04, windows-2022 ]
    4242        directory: [ 'src', 'build' ]
    4343        include:
    4444          # Only prepare artifacts for Playground once.
    45           - os: ubuntu-latest
     45          - os: ubuntu-24.04
    4646            directory: 'build'
    4747            save-build: true
     
    7171      fail-fast: false
    7272      matrix:
    73         os: [ macos-latest ]
     73        os: [ macos-14 ]
    7474        directory: [ 'src', 'build' ]
    7575    with:
     
    8787      fail-fast: false
    8888      matrix:
    89         os: [ ubuntu-latest, windows-latest ]
     89        os: [ ubuntu-24.04, windows-2022 ]
    9090        directory: [ 'src', 'build' ]
    9191    with:
     
    110110      fail-fast: false
    111111      matrix:
    112         os: [ macos-latest ]
     112        os: [ macos-14 ]
    113113        directory: [ 'src', 'build' ]
    114114    with:
     
    134134  failed-workflow:
    135135    name: Failed workflow tasks
    136     runs-on: ubuntu-latest
     136    runs-on: ubuntu-24.04
    137137    permissions:
    138138      actions: write
  • trunk/.github/workflows/test-coverage.yml

    r59687 r59720  
    8484  failed-workflow:
    8585    name: Failed workflow tasks
    86     runs-on: ubuntu-latest
     86    runs-on: ubuntu-24.04
    8787    permissions:
    8888      actions: write
  • trunk/.github/workflows/test-old-branches.yml

    r59673 r59720  
    3131  dispatch-workflows-for-old-branches:
    3232    name: ${{ matrix.workflow }} for ${{ matrix.branch }}
    33     runs-on: ubuntu-latest
     33    runs-on: ubuntu-24.04
    3434    permissions:
    3535      actions: write
  • trunk/.github/workflows/upgrade-testing.yml

    r59687 r59720  
    6363      fail-fast: false
    6464      matrix:
    65         os: [ 'ubuntu-latest' ]
     65        os: [ 'ubuntu-24.04' ]
    6666        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
    6767        db-type: [ 'mysql' ]
     
    9898      fail-fast: false
    9999      matrix:
    100         os: [ 'ubuntu-latest' ]
     100        os: [ 'ubuntu-24.04' ]
    101101        php: [ '7.2', '7.4', '8.0', '8.4' ]
    102102        db-type: [ 'mysql' ]
     
    126126      fail-fast: false
    127127      matrix:
    128         os: [ 'ubuntu-latest' ]
     128        os: [ 'ubuntu-24.04' ]
    129129        php: [ '7.2', '7.4' ]
    130130        db-type: [ 'mysql' ]
     
    158158      fail-fast: false
    159159      matrix:
    160         os: [ 'ubuntu-latest' ]
     160        os: [ 'ubuntu-24.04' ]
    161161        php: [ '8.0', '8.4' ]
    162162        db-type: [ 'mysql' ]
     
    183183      fail-fast: false
    184184      matrix:
    185         os: [ 'ubuntu-latest' ]
     185        os: [ 'ubuntu-24.04' ]
    186186        php: [ '7.2', '7.4' ]
    187187        db-type: [ 'mysql' ]
     
    217217      fail-fast: false
    218218      matrix:
    219         os: [ 'ubuntu-latest' ]
     219        os: [ 'ubuntu-24.04' ]
    220220        php: [ '8.0', '8.4' ]
    221221        db-type: [ 'mysql' ]
     
    241241      fail-fast: false
    242242      matrix:
    243         os: [ 'ubuntu-latest' ]
     243        os: [ 'ubuntu-24.04' ]
    244244        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
    245245        db-type: [ 'mysql' ]
     
    286286  failed-workflow:
    287287    name: Failed workflow tasks
    288     runs-on: ubuntu-latest
     288    runs-on: ubuntu-24.04
    289289    permissions:
    290290      actions: write
Note: See TracChangeset for help on using the changeset viewer.