Skip to content

Commit 8884f81

Browse files
committed
Merge branch 'trunk' into task/22721-stats-traffic-improve-scrolling-performance
2 parents 2674401 + 1c05916 commit 8884f81

File tree

530 files changed

+31472
-22330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+31472
-22330
lines changed

.buildkite/pipeline.yml

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
# Nodes with values to reuse in the pipeline.
2-
common_params:
3-
# Common plugin settings to use with the `plugins` key.
4-
- &common_plugins
5-
- automattic/a8c-ci-toolkit#3.1.0
6-
# Common environment values to use with the `env` key.
7-
- &common_env
8-
# Be sure to also update the `.xcode-version` file when updating the Xcode image/version here
9-
IMAGE_ID: xcode-15.1
1+
env:
2+
IMAGE_ID: $IMAGE_ID
103

114
# This is the default pipeline – it will build and test the app
125
steps:
@@ -18,17 +11,15 @@ steps:
1811
steps:
1912
- label: "🛠 WordPress Prototype Build"
2013
command: ".buildkite/commands/prototype-build-wordpress.sh"
21-
env: *common_env
22-
plugins: *common_plugins
14+
plugins: [$CI_TOOLKIT_PLUGIN]
2315
if: "build.pull_request.id != null || build.pull_request.draft"
2416
notify:
2517
- github_commit_status:
2618
context: "WordPress Prototype Build"
2719

2820
- label: "🛠 Jetpack Prototype Build"
2921
command: ".buildkite/commands/prototype-build-jetpack.sh"
30-
env: *common_env
31-
plugins: *common_plugins
22+
plugins: [$CI_TOOLKIT_PLUGIN]
3223
if: "build.pull_request.id != null || build.pull_request.draft"
3324
notify:
3425
- github_commit_status:
@@ -42,17 +33,15 @@ steps:
4233
- label: "🛠 :wordpress: Build for Testing"
4334
key: "build_wordpress"
4435
command: ".buildkite/commands/build-for-testing.sh wordpress"
45-
env: *common_env
46-
plugins: *common_plugins
36+
plugins: [$CI_TOOLKIT_PLUGIN]
4737
notify:
4838
- github_commit_status:
4939
context: "WordPress Build for Testing"
5040

5141
- label: "🛠 :jetpack: Build for Testing"
5242
key: "build_jetpack"
5343
command: ".buildkite/commands/build-for-testing.sh jetpack"
54-
env: *common_env
55-
plugins: *common_plugins
44+
plugins: [$CI_TOOLKIT_PLUGIN]
5645
notify:
5746
- github_commit_status:
5847
context: "Jetpack Build for Testing"
@@ -63,8 +52,7 @@ steps:
6352
- label: "🔬 :wordpress: Unit Tests"
6453
command: ".buildkite/commands/run-unit-tests.sh"
6554
depends_on: "build_wordpress"
66-
env: *common_env
67-
plugins: *common_plugins
55+
plugins: [$CI_TOOLKIT_PLUGIN]
6856
artifact_paths:
6957
- "build/results/*"
7058
notify:
@@ -79,8 +67,7 @@ steps:
7967
- label: "🔬 :jetpack: UI Tests (iPhone)"
8068
command: .buildkite/commands/run-ui-tests.sh 'iPhone 15'
8169
depends_on: "build_jetpack"
82-
env: *common_env
83-
plugins: *common_plugins
70+
plugins: [$CI_TOOLKIT_PLUGIN]
8471
artifact_paths:
8572
- "build/results/*"
8673
- "build/results/crashes/*"
@@ -89,10 +76,9 @@ steps:
8976
context: "UI Tests (iPhone)"
9077

9178
- label: "🔬 :jetpack: UI Tests (iPad)"
92-
command: .buildkite/commands/run-ui-tests.sh 'iPad Pro (12.9-inch) (6th generation)'
79+
command: .buildkite/commands/run-ui-tests.sh 'iPad Pro 13-inch (M4)'
9380
depends_on: "build_jetpack"
94-
env: *common_env
95-
plugins: *common_plugins
81+
plugins: [$CI_TOOLKIT_PLUGIN]
9682
artifact_paths:
9783
- "build/results/*"
9884
- "build/results/crashes/*"
@@ -105,14 +91,23 @@ steps:
10591
#################
10692
- group: "Linters"
10793
steps:
94+
- label: "☢️ Danger - PR Check"
95+
command: danger
96+
key: danger
97+
if: "build.pull_request.id != null"
98+
retry:
99+
manual:
100+
permit_on_passed: true
101+
agents:
102+
queue: "linter"
103+
108104
- label: ":swift: SwiftLint"
109-
command: run_swiftlint --strict
110-
plugins: *common_plugins
105+
command: swiftlint
111106
notify:
112107
- github_commit_status:
113108
context: "SwiftLint"
114109
agents:
115-
queue: "default"
110+
queue: "linter"
116111

117112
- label: "🧹 Lint Translations"
118113
command: "gplint /workdir/WordPress/Resources/AppStoreStrings.po"
@@ -127,5 +122,4 @@ steps:
127122

128123
- label: ":sleuth_or_spy: Lint Localized Strings Format"
129124
command: .buildkite/commands/lint-localized-strings-format.sh
130-
plugins: *common_plugins
131-
env: *common_env
125+
plugins: [$CI_TOOLKIT_PLUGIN]

.buildkite/release-builds.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
# This pipeline is meant to be run via the Buildkite API, and is only used for release builds
22

3-
# Nodes with values to reuse in the pipeline.
4-
common_params:
5-
# Common plugin settings to use with the `plugins` key.
6-
- &common_plugins
7-
- automattic/a8c-ci-toolkit#3.1.0
8-
93
env:
10-
IMAGE_ID: xcode-15.1
4+
IMAGE_ID: $IMAGE_ID
115

126
steps:
137

148
- label: ":wordpress: :testflight: WordPress Release Build (App Store Connect)"
159
command: ".buildkite/commands/release-build-wordpress.sh $BETA_RELEASE"
16-
plugins: *common_plugins
10+
plugins: [$CI_TOOLKIT_PLUGIN]
1711
notify:
1812
- slack: "#build-and-ship"
1913

2014
- label: ":jetpack: :testflight: Jetpack Release Build (App Store Connect)"
2115
command: ".buildkite/commands/release-build-jetpack.sh"
22-
plugins: *common_plugins
16+
plugins: [$CI_TOOLKIT_PLUGIN]
2317
notify:
2418
- slack: "#build-and-ship"

.buildkite/release-pipelines/code-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- label: Code Freeze
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
4+
- $CI_TOOLKIT_PLUGIN
55
# The first client to implement releases in CI was Android so the automation works in that queue.
66
# We might want to move it to a leaner one in the future.
77
agents:
Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
common_params:
2-
# Common plugin settings to use with the `plugins` key.
3-
- &common_plugins
4-
- automattic/a8c-ci-toolkit#3.1.0
5-
# Common environment values to use with the `env` key.
6-
- &common_env
7-
# Be sure to also update the `.xcode-version` file when updating the Xcode image/version here
8-
IMAGE_ID: xcode-15.1
1+
env:
2+
IMAGE_ID: $IMAGE_ID
3+
4+
# The code freeze completion needs to run on macOS because it uses genstrings under the hood
5+
agents:
6+
queue: mac
97

108
steps:
119
- label: Complete Code Freeze
1210
key: complete_code_freeze
13-
plugins: *common_plugins
14-
env: *common_env
15-
# The code freeze completion needs to run on macOS because it uses genstrings under the hood
16-
agents:
17-
queue: mac
11+
plugins: [$CI_TOOLKIT_PLUGIN]
1812
command: ".buildkite/commands/complete-code-freeze.sh $RELEASE_VERSION"
1913

2014
- label: Log Outdated Pods
2115
depends_on: complete_code_freeze
22-
plugins: *common_plugins
23-
env: *common_env
24-
agents:
25-
queue: mac
16+
plugins: [$CI_TOOLKIT_PLUGIN]
2617
command: ".buildkite/commands/log-outdated-pods.sh $RELEASE_VERSION"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
steps:
22
- label: Finalize Release
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
4+
- $CI_TOOLKIT_PLUGIN
55
# The finalization needs to run on macOS because of localization linting
66
agents:
77
queue: mac
88
env:
9-
IMAGE_ID: xcode-15.1
9+
IMAGE_ID: $IMAGE_ID
1010
command: ".buildkite/commands/finalize-hotfix.sh $VERSION"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
steps:
22
- label: Finalize Release
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
4+
- $CI_TOOLKIT_PLUGIN
55
# The finalization needs to run on macOS because of localization linting
66
agents:
77
queue: mac
88
env:
9-
IMAGE_ID: xcode-15.1
9+
IMAGE_ID: $IMAGE_ID
1010
command: ".buildkite/commands/finalize-release.sh $RELEASE_VERSION"

.buildkite/release-pipelines/new-beta-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
steps:
22
- label: New Beta Deployment
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
4+
- $CI_TOOLKIT_PLUGIN
55
# The beta needs to run on macOS because it uses genstrings under the hood
66
agents:
77
queue: mac
88
env:
9-
IMAGE_ID: xcode-15.1
9+
IMAGE_ID: $IMAGE_ID
1010
command: |
1111
echo '--- :git: Configure Git for release management'
1212
.buildkite/commands/configure-git-for-release-management.sh

.buildkite/release-pipelines/new-hotfix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
steps:
22
- label: New Hotfix Deployment
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
5-
# The beta needs to run on macOS because it uses genstrings under the hood
4+
- $CI_TOOLKIT_PLUGIN
5+
# The hotfix needs to run on macOS because it uses genstrings under the hood
66
agents:
77
queue: mac
88
env:
9-
IMAGE_ID: xcode-15.1
9+
IMAGE_ID: $IMAGE_ID
1010
command: |
1111
echo '--- :git: Configure Git for release management'
1212
.buildkite/commands/configure-git-for-release-management.sh

.buildkite/release-pipelines/update-app-store-strings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- label: Update App Store Strings
33
plugins:
4-
- automattic/a8c-ci-toolkit#3.1.0
4+
- $CI_TOOLKIT_PLUGIN
55
# The first client to implement releases in CI was Android so the automation works in that queue.
66
# We might want to move it to a leaner one in the future.
77
agents:

.buildkite/shared-pipeline-vars

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
4+
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.
5+
6+
# The ~> modifier is not currently used, but we check for it just in case
7+
XCODE_VERSION=$(sed -E -n 's/^(~> )?(.*)/xcode-\2/p' .xcode-version)
8+
export IMAGE_ID="$XCODE_VERSION"
9+
10+
export CI_TOOLKIT_PLUGIN="automattic/a8c-ci-toolkit#3.3.0"

0 commit comments

Comments
 (0)