Skip to content

Commit fdec267

Browse files
committed
Test: Run database upgrades between performance test steps.
Prevents pending upgrades from blocking tests when checking out previous builds. Props mukesh27. See #59647. git-svn-id: https://develop.svn.wordpress.org/trunk@57143 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 96339bd commit fdec267

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/performance.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ jobs:
7373
# - Check out target commit (target branch or previous commit).
7474
# - Install npm dependencies.
7575
# - Build WordPress.
76+
# - Run any database upgrades.
7677
# - Run performance tests (previous/target commit).
7778
# - Print target performance tests results.
7879
# - Reset to original commit.
7980
# - Install npm dependencies.
8081
# - Set the environment to the baseline version.
82+
# - Run any database upgrades.
8183
# - Run baseline performance tests.
8284
# - Print baseline performance tests results.
8385
# - Compare results with base.
@@ -194,6 +196,9 @@ jobs:
194196
- name: Build WordPress
195197
run: npm run build
196198

199+
- name: Run any database upgrades
200+
run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
201+
197202
- name: Run target performance tests (base/previous commit)
198203
env:
199204
TEST_RESULTS_PREFIX: before
@@ -215,6 +220,9 @@ jobs:
215220
npm run env:cli -- core update --version=${{ env.BASE_TAG }} --force --path=/var/www/${{ env.LOCAL_DIR }}
216221
npm run env:cli -- core version --path=/var/www/${{ env.LOCAL_DIR }}
217222
223+
- name: Run any database upgrades
224+
run: npm run env:cli -- core update-db --path=/var/www/${{ env.LOCAL_DIR }}
225+
218226
- name: Run baseline performance tests
219227
env:
220228
TEST_RESULTS_PREFIX: base

0 commit comments

Comments
 (0)