Skip to content

[AOTI] windows package load dev#158671

Closed
xuhancn wants to merge 5 commits intopytorch:mainfrom
xuhancn:xu_windows_package_load_dev
Closed

[AOTI] windows package load dev#158671
xuhancn wants to merge 5 commits intopytorch:mainfrom
xuhancn:xu_windows_package_load_dev

Conversation

@xuhancn
Copy link
Collaborator

@xuhancn xuhancn commented Jul 18, 2025

changes:

  1. add extract file fail handler for Windows develop.
  2. normalize more file paths.

cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10

@xuhancn xuhancn requested a review from angelayi July 18, 2025 20:09
@xuhancn xuhancn added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Jul 18, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 18, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 660372e with merge base 4060f30 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@xuhancn xuhancn added module: windows Windows support for PyTorch intel This tag is for PR from Intel labels Jul 18, 2025
@xuhancn
Copy link
Collaborator Author

xuhancn commented Jul 18, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@xuhancn xuhancn deleted the xu_windows_package_load_dev branch July 19, 2025 08:42
@ZainRizvi
Copy link
Contributor

@pytorchbot revert -c ghfirst -m "Sorry but this is breaking internally. @angelayi can you please help them validate the fixes internally? You can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts"

Relevant failure:

Error message:
Stderr:
.../torch/csrc/inductor/aoti_package/model_package_loader.cpp:439:15: error: use of undeclared identifier 'normalize_path_separator'
439 | temp_dir_ = normalize_path_separator(create_temp_dir());
| ^
.../torch/csrc/inductor/aoti_package/model_package_loader.cpp:472:25: error: use of undeclared identifier 'normalize_path_separator'
472 | output_path_str = normalize_path_separator(output_path_str);
| ^
2 errors generated.

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

Reverting PR 158671 failed

Reason: Command git -C /home/runner/work/pytorch/pytorch revert --no-edit d42c40976727fed4c9908d4194f26917d0a3da66 returned non-zero exit code 1

Auto-merging torch/csrc/inductor/aoti_package/model_package_loader.cpp
CONFLICT (content): Merge conflict in torch/csrc/inductor/aoti_package/model_package_loader.cpp
error: could not revert d42c4097672... [AOTI] windows package load dev (#158671)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git revert --continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

pytorchmergebot added a commit that referenced this pull request Jul 21, 2025
…)"

This reverts commit 8ed5e18.

Reverted #158687 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert #158671 ([comment](#158687 (comment)))
pytorchmergebot referenced this pull request Jul 21, 2025
Attempts to fix a memory leak reported in #158614 by wrapping manually managed MiniZ C-structs in an RAII container. I have been unable to reproduce the reported leak, but this seems like the most likely candidate.

Fixes #158614 (hopefully)
Pull Request resolved: #158687
Approved by: https://github.com/desertfire
pytorchmergebot added a commit that referenced this pull request Jul 21, 2025
This reverts commit ff0da08.

Reverted #158705 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert #158671 ([comment](#158705 (comment)))
pytorchmergebot referenced this pull request Jul 21, 2025
Continued to #158702 , split `zip_filename_str` and real file path.

Pull Request resolved: #158705
Approved by: https://github.com/desertfire
pytorchmergebot added a commit that referenced this pull request Jul 21, 2025
This reverts commit 7cc1a95.

Reverted #158702 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert #158671 ([comment](#158702 (comment)))
@pytorchmergebot
Copy link
Collaborator

@xuhancn your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Jul 21, 2025
@xuhancn xuhancn restored the xu_windows_package_load_dev branch July 22, 2025 00:22
@xuhancn xuhancn reopened this Jul 22, 2025
@xuhancn xuhancn force-pushed the xu_windows_package_load_dev branch from 65f9d1f to 8ff97b6 Compare July 22, 2025 00:29
@xuhancn
Copy link
Collaborator Author

xuhancn commented Jul 22, 2025

@desertfire could you please help on import this PR to fbcode? I guess the failure is caused by fbcode not synced.

@xuhancn xuhancn requested a review from desertfire July 22, 2025 07:53
@facebook-github-bot
Copy link
Contributor

@angelayi has imported this pull request. If you are a Meta employee, you can view this in D78742921.

@xuhancn
Copy link
Collaborator Author

xuhancn commented Jul 22, 2025

Hi @angelayi the code is confilict due to the PR: #158687 , so I did the rebase. Is that need to import again?

@facebook-github-bot
Copy link
Contributor

@angelayi has imported this pull request. If you are a Meta employee, you can view this in D78742921.

@angelayi
Copy link
Contributor

Internal seems to be doing fine, so feel free to merge whenever CI finishes!

@xuhancn
Copy link
Collaborator Author

xuhancn commented Jul 22, 2025

Internal seems to be doing fine, so feel free to merge whenever CI finishes!

Cool, could you please trigger merge? @angelayi

@xuhancn
Copy link
Collaborator Author

xuhancn commented Jul 22, 2025

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@xuhancn xuhancn deleted the xu_windows_package_load_dev branch July 22, 2025 21:38
saienduri pushed a commit to saienduri/pytorch that referenced this pull request Jul 22, 2025
…ch#158687)"

This reverts commit 8ed5e18.

Reverted pytorch#158687 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert pytorch#158671 ([comment](pytorch#158687 (comment)))
saienduri pushed a commit to saienduri/pytorch that referenced this pull request Jul 22, 2025
This reverts commit ff0da08.

Reverted pytorch#158705 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert pytorch#158671 ([comment](pytorch#158705 (comment)))
saienduri pushed a commit to saienduri/pytorch that referenced this pull request Jul 22, 2025
This reverts commit 7cc1a95.

Reverted pytorch#158702 on behalf of https://github.com/ZainRizvi due to Sorry but I had to revert this PR in order to revert pytorch#158671 ([comment](pytorch#158702 (comment)))
saienduri pushed a commit to saienduri/pytorch that referenced this pull request Jul 22, 2025
This reverts commit d42c409.

Reverted pytorch#158671 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally. @angelayi can you please help them validate the fixes internally? You can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](pytorch#158671 (comment)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request intel This tag is for PR from Intel Merged module: windows Windows support for PyTorch open source release notes: inductor (aoti) Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants