Skip to content

Unbreak build-benchmark-app #8388

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
merged 1 commit into from
Feb 12, 2025
Merged

Unbreak build-benchmark-app #8388

merged 1 commit into from
Feb 12, 2025

Conversation

swolchok
Copy link
Contributor

We delete the headers after symlinking them into frameworks. whoops!

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Feb 11, 2025

Stack from ghstack (oldest at bottom):

Copy link

pytorch-bot bot commented Feb 11, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8388

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 4 Pending

As of commit 3a1600b with merge base d92a763 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 11, 2025
swolchok added a commit that referenced this pull request Feb 11, 2025
We delete the headers after symlinking them into frameworks. whoops!

ghstack-source-id: e85c87d
ghstack-comment-id: 2652250988
Pull Request resolved: #8388
@swolchok swolchok requested a review from shoumikhin February 11, 2025 23:05
@@ -211,7 +211,7 @@ sed -i '' '1i\
sed -i '' '1i\
#define C10_USING_CUSTOM_GENERATED_MACROS
' $HEADERS_PATH/executorch/runtime/core/portable_type/c10/macros/Export.h
ln -s $HEADERS_PATH/executorch/runtime/core/portable_type/c10 "$HEADERS_PATH/"
Copy link
Contributor

Choose a reason for hiding this comment

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

iirc, here's what worked for me:
ln -s executorch/runtime/core/portable_type/c10 "$HEADERS_PATH/c10"

Copy link
Contributor Author

@swolchok swolchok Feb 11, 2025

Choose a reason for hiding this comment

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

I would expect that we are likely to accidentally produce a framework containing a broken symbolic link. I would like to retreat to safety given the amount of breakage we are seeing currently. I don't expect saving disk I/O for a couple dozen text files to be a significant win in 2025.

@shoumikhin
Copy link
Contributor

Happy to unblock, but curious what the root cause is?
Symlinks merely point to some location, and we do have all the headers inside .xcframework, so I'd guess it's all about composing the symlink to point to the eventual headers location?

@swolchok
Copy link
Contributor Author

the root cause

I agree that we could get it working with a symlink, I just don't think it is an impactful thing to spend time on.

@swolchok swolchok merged commit 4e3a8bd into main Feb 12, 2025
52 of 55 checks passed
@swolchok swolchok deleted the gh/swolchok/249/head branch February 12, 2025 00:11
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. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants