Skip to content

Add import smoke tests to PR CI (#19091)#19091

Open
abhinaykukkadapu wants to merge 1 commit intopytorch:mainfrom
abhinaykukkadapu:export-D102218906
Open

Add import smoke tests to PR CI (#19091)#19091
abhinaykukkadapu wants to merge 1 commit intopytorch:mainfrom
abhinaykukkadapu:export-D102218906

Conversation

@abhinaykukkadapu
Copy link
Copy Markdown
Contributor

@abhinaykukkadapu abhinaykukkadapu commented Apr 23, 2026

Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints.

This test has already pointed out some stale imports, fixing them in the same pr.

Differential Revision: D102218906

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 23, 2026

🔗 Helpful Links

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

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:

❌ 1 Cancelled Job, 7 Unrelated Failures

As of commit dc00b11 with merge base cb94506 (image):

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

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

BROKEN TRUNK - The following jobs failed but were 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 Apr 23, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Apr 23, 2026

@abhinaykukkadapu has exported this pull request. If you are a Meta employee, you can view the originating Diff in D102218906.

@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.

@meta-codesync meta-codesync Bot changed the title Add import smoke tests to PR CI Add import smoke tests to PR CI (#19091) Apr 23, 2026
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Apr 23, 2026
Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints. Also fix the stale `ExecutorchBackendConfig` import in the QAIHub stable diffusion example so the new check passes.

Differential Revision: D102218906
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Apr 23, 2026
Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints. Also fix the stale `ExecutorchBackendConfig` import in the QAIHub stable diffusion example so the new check passes.

Differential Revision: D102218906
Copy link
Copy Markdown
Collaborator

@winskuo-quic winskuo-quic left a comment

Choose a reason for hiding this comment

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

Thanks for adding these checks to make QNN flow more reliable.
Please have a look at the comments.

raise RuntimeError("Cannot set both compile_only and pre_gen_pte as true")

skip_node_id_set, skip_node_op_set = parse_skip_delegation_node(args)
skip_node_id_set, skip_node_op_set = parse_skip_delegation_args(args)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix over here.
I actually had a PR addressing this issue. I believe this is caused by depth_anything and python api refactor PR merged around the same time.
Could you take a look at this PR and see if this fix your isue?
#19058
Thanks

Copy link
Copy Markdown
Contributor Author

@abhinaykukkadapu abhinaykukkadapu Apr 24, 2026

Choose a reason for hiding this comment

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

Thanks for the fix, yeah, my goal is to catch these drifts on CI. Not just specific to this file, it just happened to fail so i put up a fix in the same PR. I will rebase to your changes.

Comment thread .github/workflows/pull.yml Outdated
pip install -r requirements-examples.txt

# Validate QNN backend Python imports resolve.
# Catches missing deps (lm_eval, openpyxl, etc.) early with a clear error.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe the comment for lm_eval should be placed on top of test_qnn_example_imports.py and not test_qnn_imports.py right? Since we only use lm_eval under example folder

Copy link
Copy Markdown
Contributor Author

@abhinaykukkadapu abhinaykukkadapu Apr 24, 2026

Choose a reason for hiding this comment

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

Will modify. Also made this generic so this can be used by other backends.

abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Apr 24, 2026
Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints.

This test has already pointed out some stale imports, fixing them in the safe pr.

Differential Revision: D102218906
abhinaykukkadapu added a commit to abhinaykukkadapu/executorch that referenced this pull request Apr 24, 2026
Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints.

This test has already pointed out some stale imports, fixing them in the safe pr.

Differential Revision: D102218906
Summary:

Add a PR QNN import job that validates backend module imports and statically checks internal imports for runnable Qualcomm example entrypoints.

This test has already pointed out some stale imports, fixing them in the safe pr.

Differential Revision: D102218906
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants