Skip to content

Add imports required to compile Keystone for testing #24537

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented May 12, 2025

Description

This PR adds a number of import statement that seem necessary to build Keystone for testing. Without them, on my machine, the build fails.

I landed on this PR via two different streams of work:

  • The idea of renaming WordPressUnitTests.xctestplan to KeystoneTests.xctestplan for clarity (not yet open as a PR)
  • The work to remove the workspace (Remove workspace file #24534) which required building and running tests for each framework target to identify issues in the migration

With both, I wanted to build Keystone for testing (Shift Cmd U), and got compilation failures. Many iterations later, all the required imports are in place.

The reason we never noticed despite having a CI step to run Keystone tests is that the scheme was not (never was? 🤔 ) configured to run tests

image

This has now been rectified.

Testing instructions

@dangermattic
Copy link
Collaborator

dangermattic commented May 12, 2025

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented May 12, 2025

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 Number27710
VersionPR #24537
Bundle IDcom.jetpack.alpha
Commit60fc321
Installation URL62t5b2qpg74ko
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented May 12, 2025

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 Number27710
VersionPR #24537
Bundle IDorg.wordpress.alpha
Commit60fc321
Installation URL1rfs4po5dnqh0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@mokagio mokagio added this to the 26.1 milestone May 13, 2025
@mokagio mokagio self-assigned this May 13, 2025
@mokagio mokagio added the Tooling Build, Release, and Validation Tools label May 13, 2025
@mokagio mokagio force-pushed the mokagio/add-imports-keystone branch 2 times, most recently from 9b8a25d to d86c65e Compare May 13, 2025 22:22
@mokagio mokagio force-pushed the mokagio/add-imports-keystone branch from d86c65e to 60fc321 Compare May 15, 2025 21:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Tooling Build, Release, and Validation Tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants