Skip to content

Conversation

@rascani
Copy link
Contributor

@rascani rascani commented Feb 11, 2026

Summary

Replace empty string matchers with descriptive patterns that document the expected failure:

  • operator_registry_test: "registration failed"
  • operator_impl_example_test: "Unhandled dtype"
  • scalar_type_util_test: "Unknown ScalarType"
  • memory_manager_test: "cannot be the same"
  • method_test: "[0-9]+ >= [0-9]+"
  • tensor_util_test: "stride of the.*dimension shall"
  • etdump_test: "before any events are added"
  • aten_bridge_test: "Strides don't match dim order"

Also add et_pal_init() to ET_EXPECT_DEATH macro to initialize PAL in the forked subprocess.

Authored with Claude.

Test plan

./test/run_oss_cpp_tests.sh

Replace empty string matchers with descriptive patterns that document
the expected failure:
- operator_registry_test: "registration failed"
- operator_impl_example_test: "Unhandled dtype"
- scalar_type_util_test: "Unknown ScalarType"
- memory_manager_test: "cannot be the same"
- method_test: "[0-9]+ >= [0-9]+"
- tensor_util_test: "stride of the.*dimension shall"
- etdump_test: "before any events are added"
- aten_bridge_test: "Strides don't match dim order"

Also add et_pal_init() to ET_EXPECT_DEATH macro to initialize PAL in
the forked subprocess.

Authored with Claude.
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 11, 2026

🔗 Helpful Links

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

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

❌ 3 New Failures, 1 Unrelated Failure

As of commit 739d0a8 with merge base b4fc4d3 (image):

NEW FAILURES - The following jobs have failed:

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

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 Feb 11, 2026
@rascani rascani added release notes: none Do not include this in the release notes ciflow/trunk and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Feb 11, 2026
@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 Feb 11, 2026
EXPECT_DEATH_IF_SUPPORTED(_statement, _matcher)
EXPECT_DEATH_IF_SUPPORTED( \
{ \
et_pal_init(); \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like adding this broke the executor_pal_death_test that was testing to make sure other PAL functions failed if this hadn't been called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a EXPECT_DEATH_NO_PAL_INIT variation.

The ET_EXPECT_DEATH macro now calls et_pal_init() in the subprocess,
which defeats the purpose of executor_pal_death_test that specifically
tests behavior when PAL is NOT initialized. Add a variant that skips
PAL initialization for this use case.

Co-authored-by: Claude <noreply@anthropic.com>
@rascani rascani merged commit 634ecc9 into pytorch:main Feb 12, 2026
305 of 309 checks passed
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. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants