Make WordPress Core


Ignore:
Timestamp:
06/28/2024 06:40:36 PM (11 months ago)
Author:
desrosj
Message:

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

This updates the 5.8 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).
  • Run E2E tests with and without SCRIPT_DEBUG (#58661).
  • 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.
  • Move the Memcached container into the Docker Compose config (#55700).
  • Configure Xdebug modes in the local Docker environment (#56022).
  • Cache the results of PHP_CodeSniffer runs (#49783).

Merges [52179], [53895], [53552], [56113], [56114], [57918], [58157], [57124], [57125], [57249] to the 5.8 branch.

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

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/docker-compose.yml

    r55517 r58597  
    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  ##
     
    3940    environment:
    4041      - LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
     42      - XDEBUG_MODE=${LOCAL_PHP_XDEBUG_MODE-develop,debug}
    4143      - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
    4244      - PHP_FPM_UID=${PHP_FPM_UID-1000}
     
    4749      - ./:/var/www
    4850
    49     depends_on:
    50       - mysql
     51    # Copy or delete the Memcached dropin plugin file as appropriate.
     52    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"
     53
     54    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
     55    init: true
     56
     57    extra_hosts:
     58      - localhost:host-gateway
    5159
    5260  ##
     
    5462  ##
    5563  mysql:
    56     image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
     64    image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
     65    platform: linux/amd64
    5766
    5867    networks:
     
    7180    # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0.
    7281    command: --default-authentication-plugin=mysql_native_password
     82
     83    healthcheck:
     84      test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ]
     85      timeout: 5s
     86      interval: 5s
     87      retries: 10
    7388
    7489  ##
     
    92107    # The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
    93108    init: true
     109
     110    extra_hosts:
     111      - localhost:host-gateway
     112
     113    depends_on:
     114      php:
     115        condition: service_started
     116      mysql:
     117        condition: service_healthy
    94118
    95119  ##
     
    121145
    122146    depends_on:
    123       - mysql
     147      php:
     148        condition: service_started
     149      mysql:
     150        condition: service_healthy
     151
     152  ##
     153  # The Memcached container.
     154  ##
     155  memcached:
     156    image: memcached
     157
     158    networks:
     159      - wpdevnet
     160
     161    ports:
     162      - 11211:11211
     163
     164    depends_on:
     165      php:
     166        condition: service_started
    124167
    125168volumes:
Note: See TracChangeset for help on using the changeset viewer.