-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tooling] Release-on-CI automation improvements #23585
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0f820b1
Use release-toolkit backmerge PR action
iangmaia 734e218
Annotate builds with triggered builds
iangmaia 844c4d4
Move PRs to next milestone during code freeze
iangmaia d7c868e
Improve lanes error handling
iangmaia 4d4e64c
Ensure release branch does not already exist at code freeze
iangmaia 87f0e5d
Prevent manual re-trigger of release pipelines
iangmaia e41f2b7
Fix Rubocop violations
iangmaia d9201bd
Update release-toolkit / Dangermattic
iangmaia 7b031df
Add release publishing lane
iangmaia 1f1e5c2
Fix Rubocop violation
iangmaia 6c72417
Add publish-release.yml pipeline
iangmaia 80c9069
Fix typo
iangmaia 355c3d5
Update release-toolkit
iangmaia e77b97b
[Tooling] Automate Release Publishing (#23592)
iangmaia b318b70
Apply suggestions from code review
iangmaia 536b1c0
Address a trailing whitespace via `bundle exec rubocop -a`
mokagio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,18 @@ steps: | |
command: ".buildkite/commands/release-build-wordpress.sh $BETA_RELEASE" | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
notify: | ||
- slack: "#build-and-ship" | ||
- slack: "#build-and-ship" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
retry: | ||
manual: | ||
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite | ||
allowed: false | ||
|
||
- label: ":jetpack: :testflight: Jetpack Release Build (App Store Connect)" | ||
command: ".buildkite/commands/release-build-jetpack.sh" | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
notify: | ||
- slack: "#build-and-ship" | ||
- slack: "#build-and-ship" | ||
retry: | ||
manual: | ||
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite | ||
allowed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json | ||
--- | ||
|
||
agents: | ||
queue: mac | ||
|
||
env: | ||
IMAGE_ID: $IMAGE_ID | ||
|
||
steps: | ||
- label: Publish Release | ||
plugins: [$CI_TOOLKIT_PLUGIN] | ||
command: | | ||
echo '--- :git: Configure Git for release management' | ||
.buildkite/commands/configure-git-for-release-management.sh | ||
echo '--- :git: Checkout release branch' | ||
.buildkite/commands/checkout-release-branch.sh $RELEASE_VERSION | ||
echo '--- :ruby: Setup Ruby tools' | ||
install_gems | ||
echo '--- :closed_lock_with_key: Access secrets' | ||
bundle exec fastlane run configure_apply | ||
echo '--- :package: Publish Release' | ||
bundle exec fastlane publish_release skip_confirm:true | ||
retry: | ||
manual: | ||
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite | ||
allowed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On seeing this I wondered "How has it worked all this time?!" but it turns out YAML (or at least the Ruby parser and Buildkite's parser) are flexible on array indentation:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I was also surprised 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was surprised as well 😅
💡 Tip of the day: If you want to test how
buildkite-agent
itself would interpret your YAML (and thus be sure to rely on its implementation of YAML parser), you can usebuildkite-agent pipeline upload --dry-run
to print its interpretation of the pipeline. It prints the interpreted pipeline to stdout—in JSON by default, but you can use--format=yaml
if you prefer YAML output that would be closer to the input file you provided.For example, using a pipe to pass the YML to parse:
Or if you want to pass it a file path to parse: