Make WordPress Core


Ignore:
Timestamp:
06/03/2024 05:00:05 PM (19 months ago)
Author:
desrosj
Message:

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

This updates the 6.3 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).
  • Removes the performance testing workflow. This workflow was overhauled in 6.4 to use Playwright. Continuing to support Puppeteer-based performance testing in 6.1-6.3 (which was historically very flaky) in a reusable workflow outweighs the benefit.
  • 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.

Merges [57918], [58157], [57124], [57125], [57249] to the 6.3 branch.

Props johnbillion, joemcgill, swissspidy, thelovekesh, narenin, mukesh27, JeffPaul, peterwilsoncc, zieladam, ockham, SergeyBiryukov, jorbin.
Fixes #61340, #60822. See #61216, #60901, #61101, #59416, #59805, #61213.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/.github/workflows/end-to-end-tests.yml

    r56539 r58300  
    3636jobs:
    3737  # Runs the end-to-end test suite.
    38   #
    39   # Performs the following steps:
    40   # - Sets environment variables.
    41   # - Checks out the repository.
    42   # - Sets up Node.js.
    43   # - Logs debug information about the GitHub Action runner.
    44   # - Installs npm dependencies.
    45   # - Builds WordPress to run from the `build` directory.
    46   # - Starts the WordPress Docker container.
    47   # - Logs the running Docker containers.
    48   # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container).
    49   # - Install WordPress within the Docker container.
    50   # - Run the E2E tests.
    51   # - Ensures version-controlled files are not modified or deleted.
    5238  e2e-tests:
    53     name: E2E Tests with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}
    54     runs-on: ubuntu-latest
     39    name: Test with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}
     40    uses: WordPress/wordpress-develop/.github/workflows/reusable-end-to-end-tests.yml@trunk
    5541    permissions:
    5642      contents: read
    57     timeout-minutes: 20
    5843    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    5944    strategy:
     
    6146      matrix:
    6247        LOCAL_SCRIPT_DEBUG: [ true, false ]
    63 
    64     steps:
    65       - name: Configure environment variables
    66         run: |
    67           echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV
    68           echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
    69 
    70       - name: Checkout repository
    71         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    72 
    73       - name: Set up Node.js
    74         uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    75         with:
    76           node-version-file: '.nvmrc'
    77           cache: npm
    78 
    79       - name: Log debug information
    80         run: |
    81           npm --version
    82           node --version
    83           curl --version
    84           git --version
    85           svn --version
    86           locale -a
    87 
    88       - name: Install npm Dependencies
    89         run: npm ci
    90 
    91       - name: Build WordPress
    92         run: npm run build
    93 
    94       - name: Start Docker environment
    95         run: |
    96           npm run env:start
    97 
    98       - name: Log running Docker containers
    99         run: docker ps -a
    100 
    101       - name: Docker debug information
    102         run: |
    103           docker -v
    104           docker-compose -v
    105           docker-compose run --rm mysql mysql --version
    106           docker-compose run --rm php php --version
    107           docker-compose run --rm php php -m
    108           docker-compose run --rm php php -i
    109           docker-compose run --rm php locale -a
    110 
    111       - name: Install WordPress
    112         env:
    113           LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }}
    114         run: npm run env:install
    115 
    116       - name: Run E2E tests
    117         run: npm run test:e2e
    118 
    119       - name: Archive debug artifacts (screenshots, HTML snapshots)
    120         uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
    121         if: always()
    122         with:
    123             name: failures-artifacts
    124             path: artifacts
    125             if-no-files-found: ignore
    126 
    127       - name: Ensure version-controlled files are not modified or deleted
    128         run: git diff --exit-code
     48    with:
     49      LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }}
     50      install-gutenberg: false
    12951
    13052  failed-workflow:
     
    14466    steps:
    14567      - name: Dispatch workflow run
    146         uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     68        uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
    14769        with:
    14870          retries: 2
Note: See TracChangeset for help on using the changeset viewer.