Skip to content

Clamp narrow map-key parameter ranges (#5279) - #5279

Closed
saitcakmak wants to merge 1 commit into
facebook:mainfrom
saitcakmak:export-D116546189
Closed

Clamp narrow map-key parameter ranges (#5279)#5279
saitcakmak wants to merge 1 commit into
facebook:mainfrom
saitcakmak:export-D116546189

Conversation

@saitcakmak

@saitcakmak saitcakmak commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary:

Prevent MapKeyToFloat from failing model initialization when distinct progression values span less than the minimum width supported by RangeParameter. Preserve the upper bound and expand the lower bound downward to the next representable valid value. Share the minimum-width constant with RangeParameter and cover inferred and configured bounds at and below the threshold.

Reviewed By: rpanchal1996

Differential Revision: D116546189

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 19, 2026
@meta-codesync

meta-codesync Bot commented Aug 19, 2026

Copy link
Copy Markdown

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

Summary:

Prevent `MapKeyToFloat` from failing model initialization when distinct progression values span less than the minimum width supported by `RangeParameter`. Preserve the upper bound and expand the lower bound downward to the next representable valid value. Share the minimum-width constant with `RangeParameter` and cover inferred and configured bounds at and below the threshold.

Reviewed By: rpanchal1996

Differential Revision: D116546189
@meta-codesync meta-codesync Bot changed the title Clamp narrow map-key parameter ranges Clamp narrow map-key parameter ranges (#5279) Aug 19, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.59%. Comparing base (87321d6) to head (4304825).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5279   +/-   ##
=======================================
  Coverage   96.58%   96.59%           
=======================================
  Files         621      621           
  Lines       70867    70890   +23     
=======================================
+ Hits        68449    68477   +28     
+ Misses       2418     2413    -5     

☔ View full report in Codecov by Harness.
📢 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 6e711c8 Aug 19, 2026
@meta-codesync meta-codesync Bot added the Merged label Aug 19, 2026
@meta-codesync

meta-codesync Bot commented Aug 19, 2026

Copy link
Copy Markdown

This pull request has been merged in 6e711c8.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants