Skip to content

Commit ffe3677

Browse files
authored
Merge branch 'Automattic:main' into main
2 parents 29e8808 + e261af0 commit ffe3677

File tree

798 files changed

+50008
-27130
lines changed

Some content is hidden

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

798 files changed

+50008
-27130
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash -eu
2+
3+
"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh"
4+
5+
echo "--- :rubygems: Setting up Gems"
6+
install_gems
7+
8+
echo "--- :closed_lock_with_key: Installing Secrets"
9+
bundle exec fastlane run configure_apply
10+
11+
echo "--- :hammer_and_wrench: Building"
12+
bundle exec fastlane build_and_upload_prototype_build_fad

.buildkite/pipeline.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ steps:
2727

2828
- label: 'Lint'
2929
command: ".buildkite/commands/lint.sh"
30-
plugins: [$CI_TOOLKIT]
30+
plugins: [ $CI_TOOLKIT ]
3131
artifact_paths:
3232
- "**/build/reports/lint-results*.*"
3333

3434
- label: 'Unit tests'
3535
command: ".buildkite/commands/run-unit-tests.sh"
36-
plugins: [$CI_TOOLKIT]
36+
plugins: [ $CI_TOOLKIT ]
3737

3838
- group: "Diff Reports"
3939
steps:
4040
- label: 'Dependency diff'
4141
if: build.pull_request.id != null
4242
command: comment_with_dependency_diff 'app' 'releaseRuntimeClasspath'
43-
plugins: [$CI_TOOLKIT]
43+
plugins: [ $CI_TOOLKIT ]
4444
artifact_paths:
4545
- "**/build/reports/diff/*"
4646

4747
- label: "Merged Manifest Diff"
4848
command: ".buildkite/commands/diff-merged-manifest.sh release"
4949
if: build.pull_request.id != null
50-
plugins: [$CI_TOOLKIT]
50+
plugins: [ $CI_TOOLKIT ]
5151
artifact_paths:
5252
- "**/build/reports/diff_manifest/**/**/*"
5353

@@ -59,11 +59,11 @@ steps:
5959
6060
echo "--- 🔎 Checking formatting with Spotless"
6161
./gradlew spotlessCheck
62-
plugins: [$CI_TOOLKIT]
62+
plugins: [ $CI_TOOLKIT ]
6363

6464
- label: "Instrumented tests"
6565
command: ".buildkite/commands/run-instrumented-tests.sh"
66-
plugins: [$CI_TOOLKIT]
66+
plugins: [ $CI_TOOLKIT ]
6767
artifact_paths:
6868
- "**/build/instrumented-tests/**/*"
6969

@@ -87,10 +87,36 @@ steps:
8787
artifact_paths:
8888
- "**/build/outputs/apk/**/*"
8989

90-
- label: "Prototype Builds"
90+
##########
91+
# Optional Prototype Builds for PR branches, distributed via S3
92+
##########
93+
- group: Prototype Builds
9194
if: "build.pull_request.id != null"
92-
command: |
93-
".buildkite/commands/prototype-build.sh"
94-
plugins: [ $CI_TOOLKIT ]
95-
artifact_paths:
96-
- "**/build/outputs/apk/**/*"
95+
steps:
96+
- input: "🚀 Generate Prototype Builds?"
97+
prompt: Generate Prototype Builds on the PR?
98+
key: prototype_builds_triggered
99+
- label: ":github: Prototype Builds"
100+
depends_on: prototype_builds_triggered
101+
command: |
102+
".buildkite/commands/prototype-build.sh"
103+
plugins: [ $CI_TOOLKIT ]
104+
artifact_paths:
105+
- "**/build/outputs/apk/**/*"
106+
107+
##########
108+
# Optional Prototype Builds for main branch, distributed via FAD
109+
##########
110+
- group: Prototype Builds (FAD)
111+
if: "build.branch == 'main'"
112+
steps:
113+
- input: ":rocket: Generate Prototype Builds (FAD)?"
114+
prompt: Generate Prototype Builds via Firebase App Distribution (FAD)?
115+
key: prototype_builds_fad_triggered
116+
- label: ":firebase: Prototype Builds (FAD)"
117+
depends_on: prototype_builds_fad_triggered
118+
command: |
119+
".buildkite/commands/prototype-build-fad.sh"
120+
plugins: [ $CI_TOOLKIT ]
121+
artifact_paths:
122+
- "app/build/outputs/apk/**/*"

.buildkite/release-builds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ steps:
2424
plugins: [$CI_TOOLKIT]
2525
artifact_paths:
2626
- "**/build/reports/lint-results*.*"
27+
- "artifacts/**"
2728
notify:
2829
- slack: "#build-and-ship"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
bundle exec fastlane run configure_apply
1717
1818
echo '--- ❄️ Code Freeze'
19-
bundle exec fastlane code_freeze skip_confirm:true
19+
bundle exec fastlane code_freeze version:"${RELEASE_VERSION}" skip_confirm:true
2020
plugins: [$CI_TOOLKIT]
2121
agents:
2222
queue: "tumblr-metal"

.buildkite/release-pipelines/publish-release.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.buildkite/release-pipelines/update-rollouts.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
steps:
99
- label: "🚂 Update Rollouts"
1010
command: |
11-
echo '--- 🤖 Use bot for Git operations'
12-
source use-bot-for-git
13-
1411
echo '--- :ruby: Setup Ruby Tools'
1512
install_gems
1613
@@ -26,3 +23,23 @@ steps:
2623
manual:
2724
allowed: false
2825
reason: "Always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite"
26+
27+
- label: ":github: Publish Draft GitHub Release"
28+
if: build.env("PUBLISH_DRAFT_GITHUB_RELEASE") == "true"
29+
command: |
30+
echo '--- 🤖 Use bot for Git operations'
31+
# Needed because if `track:production` then the publish_gh_release lane will also delete the release branch
32+
source use-bot-for-git
33+
34+
echo '--- :ruby: Setup Ruby Tools'
35+
install_gems
36+
37+
echo '--- 🚀 Publish Draft GitHub Release'
38+
bundle exec fastlane publish_gh_release skip_confirm:true track:"$TRACK"
39+
plugins: [$CI_TOOLKIT]
40+
agents:
41+
queue: "tumblr-metal"
42+
retry:
43+
manual:
44+
allowed: false
45+
reason: "Always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite"

.configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"project_name": "pocketcasts-android",
33
"branch": "trunk",
4-
"pinned_hash": "3c106f58829564e7c402598cf4b6e97407fec5bb",
4+
"pinned_hash": "c548b505ffe4342e31be28edc92c5a058fbf1410",
55
"files_to_copy": [
66
{
77
"file": "android/pocket-casts/secret.properties",
64 Bytes
Binary file not shown.

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ jobs:
66
name: "Validation"
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: gradle/actions/wrapper-validation@v4
9+
- uses: actions/checkout@v5
10+
- uses: gradle/actions/wrapper-validation@v5

.github/workflows/high-prio-issue-notify-slack.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
steps:
1313
- name: Check for "[Priority] High" Label
1414
id: check_label
15+
env:
16+
issue_or_pr_title: "${{ github.event.issue.title || github.event.pull_request.title }}"
17+
issue_or_pr_author: "${{ github.event.issue.user.login || github.event.pull_request.user.login }}"
1518
run: |
1619
if [[ "${{ github.event.label.name }}" == "[Priority] High" ]]; then
1720
echo "SEND_SLACK=true" >> $GITHUB_ENV
1821
echo "TYPE=${{ github.event_name == 'issues' && 'Issue' || 'Pull Request' }}" >> $GITHUB_ENV
19-
echo "LINK=<${{ github.event.issue.html_url || github.event.pull_request.html_url }}|${{ github.event.issue.title || github.event.pull_request.title }}>" >> $GITHUB_ENV
20-
echo "AUTHOR=${{ github.event.issue.user.login || github.event.pull_request.user.login }}" >> $GITHUB_ENV
22+
echo "LINK=<${{ github.event.issue.html_url || github.event.pull_request.html_url }}|$issue_or_pr_title>" >> $GITHUB_ENV
23+
echo "AUTHOR=$issue_or_pr_author" >> $GITHUB_ENV
2124
echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> $GITHUB_ENV
2225
else
2326
echo "SEND_SLACK=false" >> $GITHUB_ENV

0 commit comments

Comments
 (0)