Skip to content

Split neutron backend test based on executor dependency #11934

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
Jul 9, 2025

Conversation

JakeStevens
Copy link
Contributor

Summary:
The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751

Copy link

pytorch-bot bot commented Jun 24, 2025

🔗 Helpful Links

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

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

❌ 2 Cancelled Jobs, 1 Unrelated Failure

As of commit 9df4df7 with merge base f9a3ca8 (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following job 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.

@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 Jun 24, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

@JakeStevens
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Jun 26, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

JakeStevens added a commit to JakeStevens/executorch that referenced this pull request Jun 26, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
@skywall
Copy link
Collaborator

skywall commented Jun 30, 2025

In general looks good to me. How do you plan to execute tests only in particular files? I believe pytest will fail to run anything if there's at least single file with problematic import. Only working solutions how to execute this are imho 1) single file's tests execution 2) predefined list of "files with supported tests".

Please rebase to main to include nxp-unittest workflow.

@JakeStevens
Copy link
Contributor Author

In general looks good to me. How do you plan to execute tests only in particular files? I believe pytest will fail to run anything if there's at least single file with problematic import. Only working solutions how to execute this are imho 1) single file's tests execution 2) predefined list of "files with supported tests".

Please rebase to main to include nxp-unittest workflow.

This is an issue specific to our internal workflow, which does not use the OSS flow but uses BUCK entirely. So, you just only include the files you want in your BUCK target, very easy (basically a special form of your #2 suggestion).

Will rebase

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

JakeStevens added a commit to JakeStevens/executorch that referenced this pull request Jun 30, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

JakeStevens added a commit to JakeStevens/executorch that referenced this pull request Jul 1, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
JakeStevens pushed a commit to JakeStevens/executorch that referenced this pull request Jul 3, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

JakeStevens added a commit to JakeStevens/executorch that referenced this pull request Jul 3, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

JakeStevens added a commit to JakeStevens/executorch that referenced this pull request Jul 7, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
JakeStevens pushed a commit to JakeStevens/executorch that referenced this pull request Jul 7, 2025
Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
@robert-kalmar
Copy link
Collaborator

LGTM,
executed the trunk CI to invoke the nxp-unittests too to verify the change.

Summary:
Pull Request resolved: pytorch#11934

The current test_neutron_backend has a hard requirement on tflite due to the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Reviewed By: digantdesai

Differential Revision: D77248751
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77248751

@JakeStevens JakeStevens merged commit 3295e8b into pytorch:main Jul 9, 2025
265 of 273 checks passed
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
Summary:
The current test_neutron_backend has a hard requirement on tflite due to
the Executor comparing the output.

Not all systems have tflite, but we would like to have a sanity check on
the backend still.

To achieve this, this PR splits the existing test into two files

test_neutron_backend contains the tests that do not use any Executor
logic (ie, no end to end comparison of outputs)
test_neutron_backend_executor contains the rest of the tests.

Differential Revision: D77248751
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. fb-exported release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants