Skip to content

Commit

Permalink
Merge branch 'trunk' into add/licensing-protect-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Sep 3, 2024
2 parents 7c3db0a + 6e2517d commit 163d85c
Show file tree
Hide file tree
Showing 756 changed files with 11,751 additions and 6,996 deletions.
2 changes: 1 addition & 1 deletion .github/actions/tool-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ runs:
- name: Setup pnpm
if: steps.versions.outputs.node-version != 'false'
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4.0.0
with:
version: ${{ steps.versions.outputs.pnpm-version }}
- name: Setup Node
Expand Down
6 changes: 3 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
// These aren't a monorepo, but we may as well do them all together anyway.
{
groupName: 'GitHub API packages',
matchPackagePatterns: [ '^@actions/', '^@octokit/' ],
matchPackageNames: [ '@actions/**', '@octokit/**' ],
},
{
groupName: 'GitHub actions upload/download artifact',
Expand All @@ -76,12 +76,12 @@
{
groupName: 'Codeception packages',
matchDatasources: [ 'packagist' ],
matchPackagePrefixes: [ 'codeception/' ],
matchPackageNames: [ 'codeception/**' ],
},
{
groupName: 'Docker actions',
matchDepTypes: [ 'action' ],
matchPackagePrefixes: [ 'docker/' ],
matchPackageNames: [ 'docker/**' ],
},

// 🤷
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/block-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Jetpack block performance
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:

env:
# Work around a bug in node 18.18.0. See https://github.com/webpack-contrib/thread-loader/issues/191 for details.
Expand All @@ -18,27 +19,27 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- uses: actions/checkout@v4
with:
repository: 'WordPress/gutenberg'
path: 'gutenberg'

- name: Build Gutenberg
working-directory: gutenberg
run: |
npm ci
npx playwright install chromium --with-deps
npm run build:packages
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('gutenberg/**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build Gutenberg
working-directory: gutenberg
run: |
npm ci
npx playwright install chromium --with-deps
npm run build:packages
- name: Setup tools for J
uses: ./.github/actions/tool-setup

Expand Down Expand Up @@ -87,6 +88,7 @@ jobs:
with:
name: test-output-block-perf
path: tools/e2e-commons/results
include-hidden-files: true

test-reports:
name: "Trigger test report workflow"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
org.opencontainers.image.documentation=${{ github.server_url }}/${{ github.repository }}/blob/trunk/tools/docker/README.md
- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: tools/docker
platforms: linux/amd64,linux/arm64
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ jobs:
with:
name: test-output-${{ matrix.project }}
path: ${{ matrix.path }}/output
include-hidden-files: true

test-report:
name: "Test report"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
configurationFile: /tmp/monorepo/.github/renovate-config.js
token: ${{ secrets.RENOVATE_TOKEN }}
mount-docker-socket: true
renovate-version: 37.246.1
renovate-version: 38.57.3
env:
LOG_LEVEL: ${{ github.event.inputs.logLevel || 'debug' }}
RENOVATE_DRY_RUN: ${{ github.event.inputs.dryRun == 'no' && 'null' || github.event.inputs.dryRun || 'null' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ jobs:
with:
name: ${{ matrix.artifact }}
path: artifacts
include-hidden-files: true
retention-days: 7

storybook-test:
Expand Down
15 changes: 13 additions & 2 deletions .phan/stubs/wpcom-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* `bin/teamcity-builds/jetpack-stubs/stub-defs.php` and regenerate the stubs
* by triggering the Jetpack Staging → Update WPCOM Stubs job in TeamCity.
*
* Stubs automatically generated from WordPress.com commit 120a8ddd2199a9845d257ab30d4185c38465a9d5.
* Stubs automatically generated from WordPress.com commit 02203431cbf90f588596be49598db6819cd93427.
*/

namespace {
Expand Down Expand Up @@ -103,7 +103,7 @@ function __construct()
* @param bool $check_feature
* @return array|false|WP_Error
*/
public function republicize_post($post_id, $message, $skip_connections, $check_feature = \false)
public function republicize_post($post_id, $message, $skip_connections, $check_feature = \false, $sync = \true)
{
}
}
Expand Down Expand Up @@ -1421,6 +1421,17 @@ function get_blog_subscriptions_aggregate_count(int $blog_id = null, $post_term_
{
}
}
namespace WPCOM\Jetpack_AI {
class Feature_Control
{
/**
* @return array
*/
public static function get_features(): array
{
}
}
}
namespace WPCOM\Jetpack_AI\Usage {
class Helper
{
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 163d85c

Please sign in to comment.