Skip to content

Filter death + DynamicShapeUnbound gtests on Android (#19503)#19503

Merged
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
psiddh:export-D104784946
May 12, 2026
Merged

Filter death + DynamicShapeUnbound gtests on Android (#19503)#19503
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
psiddh:export-D104784946

Conversation

@psiddh
Copy link
Copy Markdown
Contributor

@psiddh psiddh commented May 12, 2026

Summary:

~250+ ExecuTorch *_testAndroid GTests have been perpetually reported as
failing in TestInfra because they are auto-skipped on every run. Death
tests (*Dies) require fork(), which Android's test sandbox does not
support, so gtest skips them automatically. *DynamicShapeUnbound tests
hit GTEST_SKIP() at runtime because the Android-specific feature flag
is unset. The result is alert fatigue for the executorch oncall and
distorted CI signal.

Filter these tests out at discovery time on Android only via a
GTEST_FILTER env var on the shared op_test() macro. The filter is
scoped through select() to ovr_config//os:android, so death tests
continue to run and pass on Linux, macOS, iOS, and fbcode targets.


overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Reviewed By: GregoryComer

Differential Revision: D104784946

Copilot AI review requested due to automatic review settings May 12, 2026 07:02
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 12, 2026

🔗 Helpful Links

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

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, 117 Pending

As of commit c2d3baa with merge base 8020fe0 (image):
💚 Looks good so far! There are no failures yet. 💚

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 May 12, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 12, 2026

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

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces noisy/low-signal Android GTest results by filtering out tests that are known to be auto-skipped at runtime on Android (death tests due to missing fork(), and *DynamicShapeUnbound tests that currently skip via GTEST_SKIP()), using an Android-scoped GTEST_FILTER applied by the shared op_test() macro.

Changes:

  • Add an Android-only env setting to op_test() that sets GTEST_FILTER to exclude *Dies and *DynamicShapeUnbound tests at discovery time.

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

Comment thread shim_et/xplat/executorch/kernels/test/util.bzl
@psiddh psiddh requested a review from Gasoonjia May 12, 2026 07:13
@meta-codesync meta-codesync Bot changed the title Filter death + DynamicShapeUnbound gtests on Android Filter death + DynamicShapeUnbound gtests on Android (#19503) May 12, 2026
psiddh added a commit to psiddh/executorch that referenced this pull request May 12, 2026
Summary:

~250+ ExecuTorch *_testAndroid GTests have been perpetually reported as
failing in TestInfra because they are auto-skipped on every run. Death
tests (*Dies) require fork(), which Android's test sandbox does not
support, so gtest skips them automatically. *DynamicShapeUnbound tests
hit GTEST_SKIP() at runtime because the Android-specific feature flag
is unset. The result is alert fatigue for the executorch oncall and
distorted CI signal.

Filter these tests out at discovery time on Android only via a
GTEST_FILTER env var on the shared op_test() macro. The filter is
scoped through select() to ovr_config//os:android, so death tests
continue to run and pass on Linux, macOS, iOS, and fbcode targets.

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Differential Revision: D104784946
@psiddh psiddh force-pushed the export-D104784946 branch from b83a947 to 6411cde Compare May 12, 2026 07:13
psiddh added a commit to psiddh/executorch that referenced this pull request May 12, 2026
Summary:

~250+ ExecuTorch *_testAndroid GTests have been perpetually reported as
failing in TestInfra because they are auto-skipped on every run. Death
tests (*Dies) require fork(), which Android's test sandbox does not
support, so gtest skips them automatically. *DynamicShapeUnbound tests
hit GTEST_SKIP() at runtime because the Android-specific feature flag
is unset. The result is alert fatigue for the executorch oncall and
distorted CI signal.

Filter these tests out at discovery time on Android only via a
GTEST_FILTER env var on the shared op_test() macro. The filter is
scoped through select() to ovr_config//os:android, so death tests
continue to run and pass on Linux, macOS, iOS, and fbcode targets.

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Differential Revision: D104784946
@psiddh psiddh force-pushed the export-D104784946 branch from 6411cde to ab4d71f Compare May 12, 2026 14:32
psiddh added a commit to psiddh/executorch that referenced this pull request May 12, 2026
Summary:

~250+ ExecuTorch *_testAndroid GTests have been perpetually reported as
failing in TestInfra because they are auto-skipped on every run. Death
tests (*Dies) require fork(), which Android's test sandbox does not
support, so gtest skips them automatically. *DynamicShapeUnbound tests
hit GTEST_SKIP() at runtime because the Android-specific feature flag
is unset. The result is alert fatigue for the executorch oncall and
distorted CI signal.

Filter these tests out at discovery time on Android only via a
GTEST_FILTER env var on the shared op_test() macro. The filter is
scoped through select() to ovr_config//os:android, so death tests
continue to run and pass on Linux, macOS, iOS, and fbcode targets.

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Differential Revision: D104784946
@psiddh psiddh force-pushed the export-D104784946 branch from ab4d71f to 17859db Compare May 12, 2026 14:38
Summary:

~250+ ExecuTorch *_testAndroid GTests have been perpetually reported as
failing in TestInfra because they are auto-skipped on every run. Death
tests (*Dies) require fork(), which Android's test sandbox does not
support, so gtest skips them automatically. *DynamicShapeUnbound tests
hit GTEST_SKIP() at runtime because the Android-specific feature flag
is unset. The result is alert fatigue for the executorch oncall and
distorted CI signal.

Filter these tests out at discovery time on Android only via a
GTEST_FILTER env var on the shared op_test() macro. The filter is
scoped through select() to ovr_config//os:android, so death tests
continue to run and pass on Linux, macOS, iOS, and fbcode targets.

___

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: ai_infra_mobile_platform

Reviewed By: GregoryComer

Differential Revision: D104784946
Copilot AI review requested due to automatic review settings May 12, 2026 17:56
@psiddh psiddh force-pushed the export-D104784946 branch from 17859db to c2d3baa Compare May 12, 2026 17:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment on lines +45 to +47
# For portable/optimized kernels, *DynamicShapeUnbound tests are also
# filtered because output_resize=false for those kernels, so they
# GTEST_SKIP() at runtime today. For the ATen kernel, output_resize=true
@meta-codesync meta-codesync Bot merged commit aa0d465 into pytorch:main May 12, 2026
174 of 180 checks passed
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.

3 participants