[Backport 0.18] fix(hgraph): tune from available fp32 codes#2476
Conversation
Select raw, precise FP32, or base FP32 codes as the Tune rebuild source, while allowing no-rebuild transitions without a source. Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
Require Tune sources to cover the current internal ID range and rebuild precise codes whose serialized payload was omitted. Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
|
/label S-ready-to-merge |
|
Automated pull request review completed. Review effort: Submitted 1 inline comment. |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Require linked issue for feature/bug PRs
|
There was a problem hiding this comment.
Code Review
This pull request refactors the HGraph::Tune method to optimize how source vector data is selected and decoded during tuning, introducing helper lambdas and checking for active IDs. It also moves updates to create_param_ptr_ inside the global_mutex_ lock and adds comprehensive unit tests for various tuning scenarios. The reviewer identified two critical concurrency issues: a potential data race when reading immutable_ under add_mutex_ while it is modified under global_mutex_, and another data race when modifying create_param_ptr_ fields while concurrent readers like ExportModel and Fork access them without locking.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
vsag-bot
left a comment
There was a problem hiding this comment.
Automated inline review completed.
Review effort: medium (185 changed lines across 2 files).
No actionable inline findings were found.
Reviewed commit 89f854f.
Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
vsag-bot
left a comment
There was a problem hiding this comment.
Automated inline review completed.
Review effort: medium (186 changed lines across 2 files).
No actionable inline findings were found.
Reviewed commit 504828c.
Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
vsag-bot
left a comment
There was a problem hiding this comment.
Automated inline review completed.
Review effort: medium (186 changed lines across 2 files).
No actionable inline findings were found.
Reviewed commit f7ef7b9.
Signed-off-by: jac0626 <jac0626@users.noreply.github.com> Assisted-by: Codex:gpt-5
vsag-bot
left a comment
There was a problem hiding this comment.
Automated inline review completed.
Review effort: medium (186 changed lines across 2 files).
Submitted 1 inline comment.
Reviewed commit 130f284.
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## 0.18 #2476 +/- ##
==========================================
+ Coverage 91.29% 91.33% +0.03%
==========================================
Files 330 330
Lines 19657 19678 +21
==========================================
+ Hits 17946 17972 +26
+ Misses 1711 1706 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Summary
Backport #2466 to the
0.18branch.or base FP32 codes instead of relying only on
store_raw_vector.ignore_reorderserialization.coverage.
Fixes: #2465
Backport adaptation
0.18single-file HGraph layout.reorder_sourcehandling because that API does not exist in0.18.RemoveMode::FORCE_REMOVEis not available in0.18.Validation
The
0.18test binary was not run locally: its legacy build configuration is incompatible withthe current macOS toolchain before reaching the changed code. CI is expected to provide the
target-platform validation.
Compatibility