Skip to content

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Aug 18, 2025

This adds a test that will run in CI as part of unittest jobs to make sure that we don't install private headers.

I fixed the existing places where we were installing private headers; reviewers, please confirm that we are OK with this technical break of source-level backward compatibility.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
swolchok added a commit that referenced this pull request Aug 19, 2025
This adds a test that will run in CI to make sure that we don't install private headers.

I fixed the existing places where we were installing private headers; reviewers, please confirm that we are OK with this technical break of source-level backward compatibility.

ghstack-source-id: ca0dbcd
ghstack-comment-id: 3198151825
Pull-Request: #13485
Base automatically changed from gh/swolchok/550/head to main August 19, 2025 22:37
@swolchok swolchok requested a review from lucylq as a code owner August 19, 2025 22:37
[ghstack-poisoned]
[ghstack-poisoned]
swolchok added a commit that referenced this pull request Aug 19, 2025
This adds a test that will run in CI to make sure that we don't install private headers.

I fixed the existing places where we were installing private headers; reviewers, please confirm that we are OK with this technical break of source-level backward compatibility.

ghstack-source-id: 733e1e5
ghstack-comment-id: 3198151825
Pull-Request: #13485
@swolchok swolchok changed the base branch from main to gh/swolchok/553/head August 19, 2025 22:38
@swolchok swolchok requested a review from shoumikhin August 19, 2025 22:47
@swolchok swolchok added the release notes: none Do not include this in the release notes label Aug 19, 2025
Base automatically changed from gh/swolchok/553/head to main August 20, 2025 16:07
@swolchok
Copy link
Contributor Author

noting CI looks good

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Aug 20, 2025
…ripts/build_apple_frameworks.sh

This removes the need to use Buck in this script. The previous PR (#13485) adds enforcement that we don't install non-public headers from CMake.

I built the frameworks before and after. Here is a diff of all headers
present in the frameworks:
https://gist.github.com/swolchok/70647b551da7827a9cbdb083fad1e209

Generally, we now include more headers than before. The only header we
used to include that we no longer include is
schema/extended_header.h. It looks like we are not including the rest
of the headers for the PTE schema anyway, so I propose that we fix
installation of the schema headers separately.


ghstack-source-id: 626397b
ghstack-comment-id: 3207551649
Pull-Request: #13559
[ghstack-poisoned]
)
install(
DIRECTORY runtime/executor/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/executorch/runtime/executor
FILES_MATCHING
PATTERN "*.h"
PATTERN "test" EXCLUDE
PATTERN "platform_memory_allocator.h" EXCLUDE
Copy link
Contributor

Choose a reason for hiding this comment

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

I need to follow up with Greg on what this even is used for.

Copy link
Contributor

@JacobSzwejbka JacobSzwejbka left a comment

Choose a reason for hiding this comment

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

Only one that is maybe used would be testing_util but I really hope no one would be using that lol. The rest seem totally fine bc breaks.

@swolchok swolchok merged commit 90c16ef into main Aug 25, 2025
226 of 230 checks passed
@swolchok swolchok deleted the gh/swolchok/551/head branch August 25, 2025 17:49
agrima1304 pushed a commit to agrima1304/executorch that referenced this pull request Aug 26, 2025
This adds a test that will run in CI as part of unittest jobs to make
sure that we don't install private headers.

I fixed the existing places where we were installing private headers;
reviewers, please confirm that we are OK with this technical break of
source-level backward compatibility.
jackzhxng added a commit that referenced this pull request Aug 26, 2025
GregoryComer added a commit that referenced this pull request Aug 26, 2025
The Windows CI build job was disabled in
#13669 due to a new Windows
build failure in #13485. Since
that diff was reverted in
#13685, we can re-enable the
job.

I started fixing the issue in
#13672, but dropped it due to
the revert. It's a simple change, so it can likely be bundled when the
affected PR is re-landed.

Test Plan:
The Build Preset / Windows job is passing on this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants