Make WordPress Core


Ignore:
Timestamp:
07/01/2024 06:48:38 PM (12 months ago)
Author:
desrosj
Message:

Build/Test Tools: Make use of new reusable workflows for 5.5.

This updates the 5.5 branch to utilize the new reusable workflows in trunk introduced in [58165].

This also includes backports for a some additional improvements and bug fixes that are necessary for the local development environment to continue working long term:

  • The image and platform properties for the mysql container have been updated to always prefer amd64 containers (#60822).
  • macos-13 is now pinned for MacOS jobs instead of macos-latest (#61340).
  • Migrating to Docker Compose V2 (#60901).
  • Removing the version property from docker-compose.yml (#59416).
  • Improvements to how artifacts and comments for Playground testing are generated.
  • Removing SVN related commands causing failures (#61216).
  • Updating the actions/github-scripts action to the latest version.
  • Cache the results of PHP_CodeSniffer runs (#49783).
  • Move the Memcached container into the Docker Compose config (#55700).
  • Improvements to the healthcheck command for the mysql container (#58867).
  • A fix to grunt clean to prevent script-loader-packages.php from being deleted (#53606).
  • Skip some tests when not in the primary branch (#50401).

Merges [49264], [51355], [51673], [52179], [53552], [53895], [56464], [57918], [58157], [57124], [57125], [57249] to the 5.5 branch.

Props johnbillion, joemcgill, swissspidy, thelovekesh, narenin, mukesh27, JeffPaul, peterwilsoncc, zieladam, ockham, SergeyBiryukov, jorbin, Clorith, afragen, jrf.
See #49783, #58867, #61340, #60822, #61216, #60901, #61101, #59416, #59805, #61213, #53606.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/docker-compose.yml

    r55520 r58610  
    1 version: '3.7'
    2 
    31services:
    42
     
    2624
    2725    depends_on:
    28       - php
     26      php:
     27        condition: service_started
     28      mysql:
     29        condition: service_healthy
    2930
    3031  ##
     
    3839
    3940    environment:
    40       LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
    41       LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
    42       PHP_FPM_UID: ${PHP_FPM_UID-1000}
    43       PHP_FPM_GID: ${PHP_FPM_GID-1000}
     41      - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
     42      - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
     43      - PHP_FPM_UID=${PHP_FPM_UID-1000}
     44      - PHP_FPM_GID=${PHP_FPM_GID-1000}
     45      - GITHUB_REF=${GITHUB_REF-false}
     46      - GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false}
    4447
    4548    volumes:
     
    4750      - ./:/var/www
    4851
    49     depends_on:
    50       - mysql
     52    # Copy or delete the Memcached dropin plugin file as appropriate.
     53    command: /bin/sh -c "if [ $LOCAL_PHP_MEMCACHED = true ]; then cp -n /var/www/tests/phpunit/includes/object-cache.php /var/www/src/wp-content/object-cache.php; else rm -f /var/www/src/wp-content/object-cache.php; fi && exec php-fpm"
     54
     55    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
     56    init: true
     57
     58    extra_hosts:
     59      - localhost:host-gateway
    5160
    5261  ##
     
    5463  ##
    5564  mysql:
    56     image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
     65    image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
     66    platform: linux/amd64
    5767
    5868    networks:
     
    7282    command: --default-authentication-plugin=mysql_native_password
    7383
     84    healthcheck:
     85      test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ]
     86      timeout: 5s
     87      interval: 5s
     88      retries: 10
     89
    7490  ##
    7591  # The WP CLI container.
    7692  ##
    7793  cli:
    78     image: wordpressdevelop/cli:${LOCAL_PHP-latest}
     94    image: wordpressdevelop/cli:${LOCAL_PHP-7.4-fpm}
    7995
    8096    networks:
     
    8298
    8399    environment:
    84       LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
    85       LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
    86       PHP_FPM_UID: ${PHP_FPM_UID-1000}
    87       PHP_FPM_GID: ${PHP_FPM_GID-1000}
     100      - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
     101      - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
     102      - PHP_FPM_UID=${PHP_FPM_UID-1000}
     103      - PHP_FPM_GID=${PHP_FPM_GID-1000}
    88104
    89105    volumes:
     
    92108    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
    93109    init: true
     110
     111    extra_hosts:
     112      - localhost:host-gateway
     113
     114    depends_on:
     115      php:
     116        condition: service_started
     117      mysql:
     118        condition: service_healthy
    94119
    95120  ##
     
    103128
    104129    environment:
    105       LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
    106       LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
    107       LOCAL_DIR: ${LOCAL_DIR-src}
    108       WP_MULTISITE: ${WP_MULTISITE-false}
    109       PHP_FPM_UID: ${PHP_FPM_UID-1000}
    110       PHP_FPM_GID: ${PHP_FPM_GID-1000}
    111       TRAVIS_BRANCH: ${TRAVIS_BRANCH-false}
    112       TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST-false}
     130      - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
     131      - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
     132      - PHP_FPM_UID=${PHP_FPM_UID-1000}
     133      - PHP_FPM_GID=${PHP_FPM_GID-1000}
     134      - LOCAL_DIR=${LOCAL_DIR-src}
     135      - WP_MULTISITE=${WP_MULTISITE-false}
     136      - GITHUB_REF=${GITHUB_REF-false}
     137      - GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false}
    113138
    114139    volumes:
     
    121146
    122147    depends_on:
    123       - mysql
     148      php:
     149        condition: service_started
     150      mysql:
     151        condition: service_healthy
     152
     153  ##
     154  # The Memcached container.
     155  ##
     156  memcached:
     157    image: memcached
     158
     159    networks:
     160      - wpdevnet
     161
     162    ports:
     163      - 11211:11211
     164
     165    depends_on:
     166      php:
     167        condition: service_started
    124168
    125169volumes:
Note: See TracChangeset for help on using the changeset viewer.