Skip to content

Arm backend: Fix output_folder not created issue in scripts #9269

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 2 commits into from
Mar 18, 2025

Conversation

YufengShi-dudu
Copy link
Collaborator

@YufengShi-dudu YufengShi-dudu commented Mar 14, 2025

In files build_executorch_runner.sh and examples/arm/run.sh, realpath command is called on output_folder before checking whether the directory already exists. This will trigger the error like "realpath: ${output_folder}: No such file or directory."

Fix it by moving mkdir forward.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

@YufengShi-dudu YufengShi-dudu added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing labels Mar 14, 2025
Copy link

pytorch-bot bot commented Mar 14, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job

As of commit 92b9bea with merge base 5a5fab7 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

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 Mar 14, 2025
@YufengShi-dudu YufengShi-dudu requested a review from zingo March 14, 2025 13:56
@shoumikhin
Copy link
Contributor

@GregoryComer, @digantdesai, @swolchok can you take a look please?

Copy link
Contributor

@swolchok swolchok left a comment

Choose a reason for hiding this comment

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

LGTM

@zingo
Copy link
Collaborator

zingo commented Mar 17, 2025

@YufengShi-dudu This unfortunately needs a rebase.

In files build_executorch_runner.sh and examples/arm/run.sh,
realpath command is called on output_folder before checking
whether the directory already exists. This will trigger the
error like "realpath: ${output_folder}: No such file or
directory."

Fix it by moving mkdir forward.

Change-Id: Ic8d673510a15f654ca4da72c4bc01dc0e5e20bbc
Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
@YufengShi-dudu YufengShi-dudu force-pushed the fix-output_folder-issue branch from 9427b7e to a2887ed Compare March 18, 2025 11:48
@YufengShi-dudu
Copy link
Collaborator Author

Hi all,

I have rebased my patch and made a minor change to it. Please review it again.

Thank you

@zingo
Copy link
Collaborator

zingo commented Mar 18, 2025

MacOS fails unrelated

@zingo zingo merged commit 31890cb into pytorch:main Mar 18, 2025
162 of 163 checks passed
oscarandersson8218 pushed a commit to oscarandersson8218/executorch that referenced this pull request Mar 21, 2025
…9269)

In files build_executorch_runner.sh and examples/arm/run.sh, realpath
command is called on output_folder before checking whether the directory
already exists. This will trigger the error like "realpath:
${output_folder}: No such file or directory."

Fix it by moving mkdir forward.

Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
DannyYuyang-quic pushed a commit to CodeLinaro/executorch that referenced this pull request Apr 2, 2025
…9269)

In files build_executorch_runner.sh and examples/arm/run.sh, realpath
command is called on output_folder before checking whether the directory
already exists. This will trigger the error like "realpath:
${output_folder}: No such file or directory."

Fix it by moving mkdir forward.

Signed-off-by: Yufeng Shi <yufeng.shi@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants