Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
name: Run performance tests
runs-on: ubuntu-latest
permissions:
contents: read
contents: read
if: ${{ github.repository == 'WordPress/gutenberg' }}
env:
WP_ARTIFACTS_PATH: ${{ github.workspace }}/artifacts
Expand Down Expand Up @@ -76,13 +76,14 @@ jobs:
- name: Compare performance with base branch
if: github.event_name == 'push'
# The base hash used here need to be a commit that is compatible with the current WP version
# The current one is c7722262e65a3f4d0f1a2d1ad29eccb2069509e4 and it needs to be updated every WP major release.
# The current one is 177c166a5eada898ad015f5efaf1c6fefa7042c4 and it needs to be updated every WP major release.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need to use a different SHA; this doesn't work as expected, and I don't see new commits in CodeVitals.

# It is used as a base comparison point to avoid fluctuation in the performance metrics.
# See: https://developer.wordpress.org/block-editor/explanations/architecture/performance/#update-the-reference-commit.
run: |
WP_VERSION="$(awk -F ': ' '/^Tested up to/{print $2}' readme.txt)"
IFS=. read -ra WP_VERSION_ARRAY <<< "$WP_VERSION"
WP_MAJOR="${WP_VERSION_ARRAY[0]}.${WP_VERSION_ARRAY[1]}"
./bin/plugin/cli.js perf "$GITHUB_SHA" c7722262e65a3f4d0f1a2d1ad29eccb2069509e4 --tests-branch "$GITHUB_SHA" --wp-version "$WP_MAJOR"
./bin/plugin/cli.js perf "$GITHUB_SHA" 177c166a5eada898ad015f5efaf1c6fefa7042c4 --tests-branch "$GITHUB_SHA" --wp-version "$WP_MAJOR"

- name: Compare performance with custom branches
if: github.event_name == 'workflow_dispatch'
Expand Down
4 changes: 2 additions & 2 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Gutenberg
* Plugin URI: https://github.com/WordPress/gutenberg
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
* Requires at least: 6.6
* Requires at least: 6.7
* Requires PHP: 7.2
* Version: 20.7.0
* Author: Gutenberg Team
Expand All @@ -15,7 +15,7 @@
### BEGIN AUTO-GENERATED DEFINES
defined( 'GUTENBERG_DEVELOPMENT_MODE' ) or define( 'GUTENBERG_DEVELOPMENT_MODE', true );
### END AUTO-GENERATED DEFINES
defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.6' );
defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.7' );


gutenberg_pre_init();
Expand Down
82 changes: 0 additions & 82 deletions lib/compat/wordpress-6.7/block-bindings.php

This file was deleted.

84 changes: 0 additions & 84 deletions lib/compat/wordpress-6.7/block-templates.php

This file was deleted.

139 changes: 0 additions & 139 deletions lib/compat/wordpress-6.7/blocks.php

This file was deleted.

Loading
Loading