Skip to content

Commit

Permalink
Revert "build: Move "Test plugin upgrades" to a post-build workflow (#…
Browse files Browse the repository at this point in the history
…25892)"

This reverts commit 4883758.

It looks like GitHub has a fairly critical bug (which they've apparently
not cared about for 2 years[1]) where the check run created from Actions
gets assigned to a random suite. If that random suite happens to be one
of the Gardening runs, it can get lost when the next Gardening run
happens.

[1]: https://github.com/orgs/community/discussions/24616
  • Loading branch information
anomiex committed Aug 29, 2022
1 parent 84be43c commit 86cf8a7
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 278 deletions.
71 changes: 0 additions & 71 deletions .github/actions/check-run/action.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,56 @@ jobs:
comment_id: +COMMENT_ID,
} );
upgrade_test:
name: Test plugin upgrades
runs-on: ubuntu-latest
needs: build
if: needs.build.outputs.any_plugins == 'true'
timeout-minutes: 10 # 2022-03-04: Successful runs seem to take about 3 minutes, but give some extra time for the downloads.
services:
db:
image: mariadb:latest
env:
MARIADB_ROOT_PASSWORD: wordpress
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
container:
image: ghcr.io/automattic/jetpack-wordpress-dev:latest
env:
WP_DOMAIN: localhost
WP_ADMIN_USER: wordpress
WP_ADMIN_EMAIL: wordpress@example.com
WP_ADMIN_PASSWORD: wordpress
WP_TITLE: Hello World
MYSQL_HOST: db:3306
MYSQL_DATABASE: wordpress
MYSQL_USER: root
MYSQL_PASSWORD: wordpress
HOST_PORT: 80
ports:
- 80:80
steps:
- uses: actions/checkout@v3
with:
path: monorepo

- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: jetpack-build
- name: Extract build archive
run: tar --xz -xvvf build.tar.xz

- name: Setup WordPress
run: monorepo/.github/files/test-plugin-update/setup.sh

- name: Prepare plugin zips
run: monorepo/.github/files/test-plugin-update/prepare-zips.sh

- name: Test upgrades
run: monorepo/.github/files/test-plugin-update/test.sh

jetpack_beta:
name: Create artifact for Jetpack Beta plugin
runs-on: ubuntu-latest
Expand Down
206 changes: 0 additions & 206 deletions .github/workflows/post-build.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/slack-workflow-failed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- Build Docker
- Tests
- Gardening
- Post-Build
- PR is up-to-date
branches: [ 'trunk', '*/branch-*' ]

Expand Down

0 comments on commit 86cf8a7

Please sign in to comment.