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
feat(expr-eval): Fix flaky adaptiveCpuSamplingPerFunctionRates test (facebookincubator#17002)
Summary:
Previous diff (facebookincubator#16646) had a flaky test because the test asserted that slow_add must be in kAlwaysTrack state and plus must be in kSampling state. Replaced absolute state assertions with a relative comparison: slow_add sampling rate must be ≤ plus sampling rate. This is robust because both functions share the same timerOverheadNanos_ per ExprSet, so measurement noise affects both equally and cannot flip the relative ordering.
Reviewed By: pedroerp
Differential Revision: D99126870
0 commit comments