-
Notifications
You must be signed in to change notification settings - Fork 73
Upload nightly full installers and wire up fastlane tests #3626
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
Merged
mokagio
merged 6 commits into
trunk
from
ainfra-2434-nightly-cdn-links-for-wordpress-studio-trunk-builds
May 27, 2026
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
17cf3a2
Add Apps CDN visibility helper
mokagio 4345e69
Upload nightly full installers to Apps CDN
mokagio 21233ae
Run fastlane helper tests in CI
mokagio 5793b43
Include CI script in fastlane patters driving CI execution
mokagio f07e158
s/Fastlane/fastlane/
mokagio 6113477
Remove noisy comment
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 hidden or 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,13 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| if .buildkite/commands/should-skip-job.sh --job-type fastlane; then | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo '--- :ruby: Run Fastlane Helper Tests' | ||
| # Tests use stdlib minitest and don't require bundler — see fastlane/test/*. | ||
|
mokagio marked this conversation as resolved.
Outdated
|
||
| for test_file in fastlane/test/*_test.rb; do | ||
| ruby "$test_file" | ||
| done | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module StudioAppsCdnUpload | ||
| # Returns the Apps CDN visibility (`'internal'` or `'external'`) for a build. | ||
| # | ||
| # Nightly full installers are restricted to logged-in Automatticians via the | ||
| # Apps CDN visibility filter, so the `/nightly` link only resolves for | ||
| # internal users. Update binaries stay external — the in-app auto-updater is | ||
| # unauthenticated and would otherwise stop seeing nightly updates. Beta and | ||
| # Production stay external across the board. | ||
| def self.visibility_for(build_type:, install_type:) | ||
| return 'internal' if build_type == 'Nightly' && install_type == 'Full Install' | ||
|
|
||
| 'external' | ||
| end | ||
| end |
This file contains hidden or 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,35 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # Sanity checks for fastlane/lib/studio_apps_cdn_upload.rb. | ||
| # | ||
| # Run with: `ruby fastlane/test/studio_apps_cdn_upload_test.rb` | ||
| # (No bundle / fastlane required — minitest ships with stdlib Ruby.) | ||
|
|
||
| require 'minitest/autorun' | ||
| require_relative '../lib/studio_apps_cdn_upload' | ||
|
|
||
| class StudioAppsCdnUploadTest < Minitest::Test | ||
| def test_nightly_full_install_is_internal | ||
| assert_equal 'internal', StudioAppsCdnUpload.visibility_for(build_type: 'Nightly', install_type: 'Full Install') | ||
| end | ||
|
|
||
| def test_nightly_update_is_external | ||
| assert_equal 'external', StudioAppsCdnUpload.visibility_for(build_type: 'Nightly', install_type: 'Update') | ||
| end | ||
|
|
||
| def test_beta_full_install_is_external | ||
| assert_equal 'external', StudioAppsCdnUpload.visibility_for(build_type: 'Beta', install_type: 'Full Install') | ||
| end | ||
|
|
||
| def test_beta_update_is_external | ||
| assert_equal 'external', StudioAppsCdnUpload.visibility_for(build_type: 'Beta', install_type: 'Update') | ||
| end | ||
|
|
||
| def test_production_full_install_is_external | ||
| assert_equal 'external', StudioAppsCdnUpload.visibility_for(build_type: 'Production', install_type: 'Full Install') | ||
| end | ||
|
|
||
| def test_production_update_is_external | ||
| assert_equal 'external', StudioAppsCdnUpload.visibility_for(build_type: 'Production', install_type: 'Update') | ||
| end | ||
| end |
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.
Uh oh!
There was an error while loading. Please reload this page.