Skip to content

Conversation

@mgarrard
Copy link
Contributor

Summary:
Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The trial_indices property returns set[np.int64] from .unique() on
numpy-backed dataframes, but experiment.trials.keys() returns Python int.
Set operations fail because np.int64 and int are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 22, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 22, 2026

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

mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.70%. Comparing base (0586ce0) to head (599b383).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4796      +/-   ##
==========================================
- Coverage   96.70%   96.70%   -0.01%     
==========================================
  Files         587      587              
  Lines       61294    61302       +8     
==========================================
+ Hits        59277    59282       +5     
- Misses       2017     2020       +3     

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

mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 22, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 23, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 23, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 23, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
mgarrard added a commit to mgarrard/Ax that referenced this pull request Jan 23, 2026
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

The `trial_indices` property returns `set[np.int64]` from `.unique()` on
numpy-backed dataframes, but `experiment.trials.keys()` returns Python `int`.
Set operations fail because `np.int64` and `int` are treated as different
types in set comparisons.

Convert numpy types to Python int using set comprehension.

Differential Revision: D91185468
Summary:

Prompted after some failures in exports not related to my changes: https://github.com/facebook/Ax/actions/runs/21225324302/job/61070638075?fbclid=IwY2xjawPeXMFleHRuA2FlbQIxMQBicmlkETFRTkR6WlE4NHVrd3IyQXNlc3J0YwZhcHBfaWQBMAABHjTAiZi71n24w95hvzEewrKNPKOGzJisgR7t4qJ3APRMYlusgFC-gu7RLiSb_aem_Zk3pmTDonCFsJvZCTkpeMA

There was an upgrade to panadas wed where pandas 3.0 was released, this is causing 3.12 tests to fail on GH exports. This diff resolves this.

Three main things we handle here:
1. dtypes for string columns are now infered as StringDtype, so we should be expecting this instead of legacy object dtype
2. Numpy arrarys are read-only by default now, in order to write to them we need to explicitly copy() the
3. int in dfs became int64, reconverted to python int for set operations

Differential Revision: D91185468
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