Skip to content

Revert "Arm backend: Add a repro command when VGF model-converter fails"#20477

Merged
zingo merged 1 commit into
mainfrom
revert-20443-vgf_repro
Jun 24, 2026
Merged

Revert "Arm backend: Add a repro command when VGF model-converter fails"#20477
zingo merged 1 commit into
mainfrom
revert-20443-vgf_repro

Conversation

@zingo

@zingo zingo commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings June 24, 2026 07:38
@zingo zingo requested a review from digantdesai as a code owner June 24, 2026 07:38
@pytorch-bot pytorch-bot Bot added the ci-no-td label Jun 24, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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:

⏳ 17 Pending, 5 Unrelated Failures

As of commit 82bd3a0 with merge base 1621fa2 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@meta-cla meta-cla 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 Jun 24, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jun 24, 2026
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk and removed ciflow/trunk module: arm Issues related to arm backend labels Jun 24, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts the prior Arm VGF backend change that added a shell-safe “repro command” and failure-artifact preservation when model-converter fails, returning the backend and its tests to the earlier behavior.

Changes:

  • Removes helper utilities for formatting repro commands and copying failing TOSA inputs on converter errors.
  • Simplifies vgf_compile error handling to raise a basic RuntimeError including stdout/stderr.
  • Deletes the unit tests that covered the removed repro/artifact behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
backends/arm/vgf/backend.py Removes repro/artifact helpers and reverts converter failure handling to a simpler error message.
backends/arm/test/misc/test_vgf_backend.py Removes tests that validated repro-command formatting and failure-artifact copying.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +302 to +306
conversion_command_str = " ".join(conversion_command)
raise RuntimeError(
"Vgf compiler failed.\n"
f"Repro command:\n {_format_repro_command(repro_command)}\n"
f"Stderr:\n{process_error.stderr.decode()}\n"
f"Stdout:\n{process_error.stdout.decode()}"
f"Vgf compiler ('{conversion_command_str}') failed with error:\n \
{process_error.stderr.decode()}\n \
Stdout:\n{process_error.stdout.decode()}"
@zingo

zingo commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

Fails are unrelated

@zingo zingo merged commit 51d30d4 into main Jun 24, 2026
507 of 528 checks passed
@zingo zingo deleted the revert-20443-vgf_repro branch June 24, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants