Make test hook setup safe across repeated runs - #23376
Conversation
Summary: Repeated GTest invocations and the XCTest bridge retain the process-global hook registry, so unconditional test-provider registration fails on subsequent suite setup. Register once per process while retaining the assertion that the initial registration succeeded. Add a regression for repeated setup without changing the production one-provider contract or duplicate-provider rejection coverage. Leave the disabled Xcode-staging configuration unchanged. Differential Revision: D123082075
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/23376
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 6e64ee2 with merge base 305638c ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@metascroy has exported this pull request. If you are a Meta employee, you can view the originating Diff in D123082075. |
This PR needs a
|
Summary:
Repeated GTest invocations and the XCTest bridge retain the process-global hook registry, so unconditional test-provider registration fails on subsequent suite setup. Register once per process while retaining the assertion that the initial registration succeeded. Add a regression for repeated setup without changing the production one-provider contract or duplicate-provider rejection coverage.
Leave the disabled Xcode-staging configuration unchanged.
Differential Revision: D123082075