From 269c8f1ed557875b65c41ef3aa06a7a923f08987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Tue, 8 Sep 2026 16:36:01 +0200 Subject: [PATCH 1/2] test(codegen): isolate the default feedback lane --- crates/perry-codegen/tests/typed_feedback.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/perry-codegen/tests/typed_feedback.rs b/crates/perry-codegen/tests/typed_feedback.rs index d4ded4521a..3ee8f733eb 100644 --- a/crates/perry-codegen/tests/typed_feedback.rs +++ b/crates/perry-codegen/tests/typed_feedback.rs @@ -1118,6 +1118,11 @@ fn synthetic_arguments_only_method_uses_shape_guarded_direct_call() { #[test] fn typed_feedback_guards_direct_closure_call_specialization() { + // This test asserts the non-recording lane. Join the env-mutating tests' + // lock and pin that lane, including when the parent enables profiling. + let _lock = env_lock(); + let _feedback = EnvVarGuard::set("PERRY_TYPED_FEEDBACK", None); + let _trace = EnvVarGuard::set("PERRY_TYPED_FEEDBACK_TRACE", None); let closure_ty = Type::Function(FunctionType { params: vec![("x".to_string(), Type::Number, false)], return_type: Box::new(Type::Number), From 14863a94bfc3eabaf4035fba183ee6d6b5d0772d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Tue, 8 Sep 2026 16:37:34 +0200 Subject: [PATCH 2/2] docs: add changelog for #9999 --- changelog.d/9999-typed-feedback-test-isolation.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog.d/9999-typed-feedback-test-isolation.md diff --git a/changelog.d/9999-typed-feedback-test-isolation.md b/changelog.d/9999-typed-feedback-test-isolation.md new file mode 100644 index 0000000000..471e7196b5 --- /dev/null +++ b/changelog.d/9999-typed-feedback-test-isolation.md @@ -0,0 +1,3 @@ +### Fixed + +- Isolate the default-lane closure-specialization regression from concurrent profiling environment changes and inherited profiling settings.