You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config: global: robust to drop order in test overrides (meta-pytorch#1457)
Summary:
Pull Request resolved: meta-pytorch#1457
`override_key` now pushes frames onto a per-key stack with unique tokens, allowing out-of-order drops and deterministic restoration. `ConfigValueGuard::drop` pops the active frame, restores the previous or default value, and updates the mirrored env var only when the top changes. `ensure_test_override_layer_mut` removed as redundant. `Key::name` moved to an unconstrained impl to relax the `Named` bound.
adds tests verifying LIFO restoration and stability under out-of-order drops, covering both attrs and env behavior.
Reviewed By: mariusae
Differential Revision: D84085259
fbshipit-source-id: 5a80b875b0c019bd34fbf1f31cad3a13ac1759fe
0 commit comments