Skip to content

Conversation

@lena-kashtelyan
Copy link
Contributor

Summary:
When gen_single_trial does not call gen, we have a few problems, in order of importance:

  1. Forgetting to specify pending_observations to gen_single_trial will result in no pending_observations use. This is different from the behavior in the main gen, so it's a huge gotcha and could already be causing silent bugs.
  2. Unnecessary bifurcation, meaning that more behaviors like 1) could encroach in the future.
  3. Repeated operations.

Differential Revision:
D80174582

Privacy Context Container: L1307644

Summary:
When `gen_single_trial` does not call `gen`, we have a few problems, in order of importance:

1. Forgetting to specify `pending_observations` to `gen_single_trial` will result in no `pending_observations` use. This is different from the behavior in the main `gen`, so it's a huge gotcha and could already be causing silent bugs.
2. Unnecessary bifurcation, meaning that more behaviors like 1) could encroach in the future.
3. Repeated operations.

Differential Revision:
D80174582

Privacy Context Container: L1307644
@meta-codesync
Copy link

meta-codesync bot commented Dec 25, 2025

@lena-kashtelyan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D80174582.

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 25, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.69%. Comparing base (d1d20a4) to head (ce594b0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4701   +/-   ##
=======================================
  Coverage   96.69%   96.69%           
=======================================
  Files         580      580           
  Lines       60714    60741   +27     
=======================================
+ Hits        58708    58736   +28     
+ Misses       2006     2005    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants