Skip to content

Remove dead internal app-icon versioning task#25806

Merged
jkmassel merged 1 commit into
trunkfrom
jkmassel/appicon-internal-cp-error
Jul 21, 2026
Merged

Remove dead internal app-icon versioning task#25806
jkmassel merged 1 commit into
trunkfrom
jkmassel/appicon-internal-cp-error

Conversation

@jkmassel

Copy link
Copy Markdown
Contributor

Summary

  • Removes the orphaned assets:check Rake task that generated a version-stamped "internal" app icon.
  • Fixes the spurious cp: .../AppIcon.appiconset: No such file or directory error printed during every rake dependencies.

Root Cause

assets:check — wired into the top-level dependencies task — did three things, all now pointing at deleted paths:

  1. Skip guard: next unless Dir['WordPress/Resources/AppImages.xcassets/AppIcon-Internal.appiconset/*.png'].empty?. That directory no longer exists, so the glob is always empty and the task body always ran.
  2. Generate: ran ./Scripts/BuildPhases/AddVersionToIcons.sh, which was deleted. Its non-zero exit was swallowed by >/dev/null 2>&1.
  3. Fallback: cp'd WordPress/Resources/AppImages.xcassets/AppIcon.appiconset/*.png into the internal appiconset. That source was removed in Update resources #24410 when the app icons moved to Sources/*/Resources/Assets.xcassets/AppIconLegacy.appiconset — hence the cp error.

configure_apply succeeds independently; the error was purely this trailing dead step running afterward.

Changes

  • Rakefile: Remove the namespace :assets block and drop assets:check from the dependencies task list.
  • .gitignore: Remove the three now-stale ignore entries for the generated internal-icon paths (two AppIcon-Internal.appiconset paths and Icons-Internal).

What this deliberately leaves alone

ImageMagick, Ghostscript, and the rmagick gem stay — they aren't icon-overlay dependencies. They back the promo-screenshots lane (fastlane/lanes/screenshots.rbpromo_screenshots). The brew install imagemagick/ghostscript in shared-set-up-distribution.sh may now be unused by distribution builds — it predates and outlived the icon overlay — but confirming that needs a separate pass through the build lanes, so it's left out of scope here.

Test plan

  • ruby -c RakefileSyntax OK
  • rake dependencies completes without the cp error
  • App builds and shows the correct icon (unchanged — targets use AppIconLegacy)

The `assets:check` Rake task generated a version-stamped internal app icon
via `Scripts/BuildPhases/AddVersionToIcons.sh`, falling back to copying
`AppIcon.appiconset` into `AppIcon-Internal.appiconset` when the script
failed. All three are already gone — the script was deleted and the app
icons moved to `Sources/*/Resources/Assets.xcassets/` (targets use
`AppIconLegacy`) — so the task's skip-guard globbed a path that no longer
exists, ran on every `rake dependencies`, and printed a spurious `cp`
error when the deleted source appiconset wasn't found.

Remove the task, unwire it from `dependencies`, and drop the stale
`.gitignore` entries for the generated internal-icon paths.

ImageMagick, Ghostscript, and RMagick are left in place — they back the
promo-screenshots lane, not this task.
@jkmassel
jkmassel requested a review from mokagio July 20, 2026 17:56
@jkmassel jkmassel self-assigned this Jul 20, 2026
@jkmassel jkmassel added the Tooling Build, Release, and Validation Tools label Jul 20, 2026
@jkmassel jkmassel added this to the 27.1 milestone Jul 20, 2026
@jkmassel
jkmassel marked this pull request as ready for review July 20, 2026 17:57
@jkmassel jkmassel modified the milestones: 27.1, 27.2 Jul 20, 2026
@jkmassel
jkmassel enabled auto-merge July 20, 2026 17:58
@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33269
VersionPR #25806
Bundle IDorg.wordpress.alpha
Commite5471ef
Installation URL4tmpf7jneflt0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33269
VersionPR #25806
Bundle IDcom.jetpack.alpha
Commite5471ef
Installation URL10p9hhs8mt8j8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@mokagio mokagio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from a welcome cleanup, I love seeing Rakefile shrinking! So confusing to have it and Fastfile.

@jkmassel
jkmassel added this pull request to the merge queue Jul 20, 2026
Merged via the queue into trunk with commit 98e73cd Jul 21, 2026
33 checks passed
@jkmassel
jkmassel deleted the jkmassel/appicon-internal-cp-error branch July 21, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tooling Build, Release, and Validation Tools [Type] Tech Debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants