From 1d1089c6b50d0303572d9aaa1695c7c55cf99d7a Mon Sep 17 00:00:00 2001
From: Rajin Sharwar <rajinsharwar@gmail.com>
Date: Fri, 21 Jul 2023 15:03:47 +0600
Subject: [PATCH] Update performance.yml

---
 .github/workflows/performance.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index 408f7ba9f5..2e825f10a8 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -79,6 +79,9 @@ jobs:
         run: |
           echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV
           echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
+          echo "WP_DEBUG=false" >> $GITHUB_ENV
+          echo "SCRIPT_DEBUG=false" >> $GITHUB_ENV
+          echo "WP_DEVELOPMENT_MODE=" >> $GITHUB_ENV
 
       - name: Checkout repository
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
-- 
2.39.2.windows.1

From 877accf3a4f557d684e92750ee782b5e0407e876 Mon Sep 17 00:00:00 2001
From: Rajin Sharwar <rajinsharwar@gmail.com>
Date: Fri, 21 Jul 2023 21:16:06 +0600
Subject: [PATCH] Update performance.yml - 2

---
 .github/workflows/performance.yml | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index 2e825f10a8..dff3cfabfd 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -30,6 +30,15 @@ concurrency:
 permissions: {}
 
 env:
+  # Environment variables for Docker and PHP-FPM configuration
+  PHP_FPM_UID: ${{ steps.get-php-fpm-uid.outputs.php-fpm-uid }}
+  PHP_FPM_GID: ${{ steps.get-php-fpm-gid.outputs.php-fpm-gid }}
+
+  # Environment variables for WordPress performance testing
+  WP_DEBUG: false
+  SCRIPT_DEBUG: false
+  WP_DEVELOPMENT_MODE: ''
+
   # This workflow takes two sets of measurements — one for the current commit,
   # and another against a consistent version that is used as a baseline measurement.
   # This is done to isolate variance in measurements caused by the GitHub runners
@@ -75,13 +84,12 @@ jobs:
     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
 
     steps:
-      - name: Configure environment variables
-        run: |
-          echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV
-          echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
-          echo "WP_DEBUG=false" >> $GITHUB_ENV
-          echo "SCRIPT_DEBUG=false" >> $GITHUB_ENV
-          echo "WP_DEVELOPMENT_MODE=" >> $GITHUB_ENV
+      - name: Get PHP-FPM UID and GID
+        id: get-php-fpm-uid
+        run: echo "::set-output name=php-fpm-uid::$(id -u)"
+      - name: Get PHP-FPM GID
+        id: get-php-fpm-gid
+        run: echo "::set-output name=php-fpm-gid::$(id -g)"
 
       - name: Checkout repository
         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
-- 
2.39.2.windows.1

From 5205b49ecf6e3b92f300a219177437653399becb Mon Sep 17 00:00:00 2001
From: Rajin Sharwar <rajinsharwar@gmail.com>
Date: Sat, 22 Jul 2023 15:56:09 +0600
Subject: [PATCH] Update performance.yml - 3

---
 .github/workflows/performance.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index dff3cfabfd..891d8fa5fd 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -34,7 +34,7 @@ env:
   PHP_FPM_UID: ${{ steps.get-php-fpm-uid.outputs.php-fpm-uid }}
   PHP_FPM_GID: ${{ steps.get-php-fpm-gid.outputs.php-fpm-gid }}
 
-  # Environment variables for WordPress performance testing
+  # Performance testing should be performed in an environment reflecting a standard production environment.
   WP_DEBUG: false
   SCRIPT_DEBUG: false
   WP_DEVELOPMENT_MODE: ''
@@ -82,7 +82,7 @@ jobs:
     permissions:
       contents: read
     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
-
+    
     steps:
       - name: Get PHP-FPM UID and GID
         id: get-php-fpm-uid
-- 
2.39.2.windows.1

