Skip to content

Conversation

@sunnyshen321
Copy link

Summary:
f1028514505 failed bc we weren't able to attach data as data indices were str type. This is because

  1. At Load: pd.read_json(StringIO(data_sqa.data_json), dtype=False) -- no type enforcement https://fburl.com/code/2emkm30n
  2. At data construction, although we have trial_index=row.trial_index and RowData have int type hint for trial_index, it is not enforced at run time.

Putting up a diff to explicitly cast trial index to int

{F1985100756}

Reviewed By: mpolson64

Differential Revision: D91949517

Summary:
f1028514505 failed bc we weren't able to attach data as data indices were `str` type. This is because

1. At Load: pd.read_json(StringIO(data_sqa.data_json), dtype=False) -- no type enforcement https://fburl.com/code/2emkm30n
2. At data construction, although we have `trial_index=row.trial_index` and RowData have int type hint for trial_index, it is not enforced at run time.

Putting up a diff to explicitly cast trial index to int

{F1985100756}

Reviewed By: mpolson64

Differential Revision: D91949517
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 2, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 2, 2026

@sunnyshen321 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91949517.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.74%. Comparing base (0d801f4) to head (c0eb364).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4846   +/-   ##
=======================================
  Coverage   96.74%   96.74%           
=======================================
  Files         590      590           
  Lines       61704    61706    +2     
=======================================
+ Hits        59698    59700    +2     
  Misses       2006     2006           

☔ 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.

@meta-codesync meta-codesync bot closed this in 67b2179 Feb 2, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 2, 2026

This pull request has been merged in 67b2179.

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 Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants