⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@rascani
Copy link
Contributor

@rascani rascani commented Jan 12, 2026

Summary

Added message matchers to death tests in 2 test files to verify
tests fail with the expected error messages, not just that they fail.

evalue_test.cpp (18 matchers):

  • Type checks: "EValue is not an int", "EValue is not a"
  • Null pointer checks: "Pointer is null", "pointer cannot be null"
  • List pointer checks: "string/int/bool/double/tensor list pointer is null"
  • BoxedEvalueList checks: "wrapped_vals/unwrapped_vals cannot be null"

tensor_util_test.cpp (29 matchers):

  • Shape/dtype mismatches: "Tensors do not match"
  • Dimension validation: "Ending/Starting dimension.*should be in the range"
  • Empty matchers for stride checks (Windows regex limitations)

Note: Matchers use only cross-platform compatible regex features
(no brackets, unions, or grouping which fail on Windows).

Test plan

./test/run_oss_cpp_tests.sh

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 12, 2026

🔗 Helpful Links

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

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

❌ 6 New Failures, 1 Unrelated Failure

As of commit e09d1c1 with merge base 9cbe754 (image):

NEW FAILURES - The following jobs have failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness 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 Jan 12, 2026
@rascani rascani added ciflow/trunk release notes: none Do not include this in the release notes labels Jan 12, 2026
Added message matchers to death tests in 2 test files to verify
tests fail with the expected error messages, not just that they fail.

evalue_test.cpp (18 matchers):
- Type checks: "EValue is not an int", "EValue is not a"
- Null pointer checks: "Pointer is null", "pointer cannot be null"
- List pointer checks: "string/int/bool/double/tensor list pointer is null"
- BoxedEvalueList checks: "wrapped_vals/unwrapped_vals cannot be null"

tensor_util_test.cpp (29 matchers):
- Shape/dtype mismatches: "Tensors do not match"
- Dimension validation: "Ending/Starting dimension.*should be in the range"
- Empty matchers for stride checks (Windows regex limitations)

Note: Matchers use only cross-platform compatible regex features
(no brackets, unions, or grouping which fail on Windows).
@rascani rascani force-pushed the add_death_message_checks branch from 3030c94 to e09d1c1 Compare January 14, 2026 23:39
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.

1 participant