← Back to Pull requests

codegen: Keep the recorded file names in JIT debug info #63780

Closed
unknown closed this pull request without merging on Oct 15, 2026 00:58 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 05:43 UTC
Author

Fixes a regression from #63645: code_llvm/code_native with debuginfo=:source print only the debug info's file name, which #63645 reduced to a basename.

| | 1.13 | master | this PR |
|---|---|---|---|
| Base | @ strings/search.jl:173 | @ search.jl:178 | @ strings/search.jl:178 |
| user file | @ /path/to/uf.jl:1 | @ uf.jl:1 | @ /path/to/uf.jl:1 |
| stdlib | @ <build>/.../Dates/src/accessors.jl:131 | @ accessors.jl:138 | @ <install>/.../Dates/src/accessors.jl:138 |
| Compiler | @ ../usr/share/julia/Compiler/src/typelattice.jl | @ typelattice.jl | @ Compiler/src/typelattice.jl |

The DIFile now keeps the recorded name: a relative name keeps its part after the matched prefix, with the installed base (or share/julia) as directory, and an absolute name stays whole with its parent as directory. LLVM only splits a file name when the directory is empty, so the line table keeps these as they are and no printer changes are needed. Debuggers and stack traces still get the full path.

It also removes the file system access from the rewrite: the first rewrite whose prefix matches applies, whether or not the resulting file exists, so the emitted debug info only depends on the recorded name and the rewrites registered by Base. The specific rewrites come before the fallback for relative names, so real source files end up in the same place as before.

#63779 and #62803 touch the same function and will need a small rebase after this.

Assisted by: Opus 5.5, Sol 6.1

Diff: 188 lines (+141 / -47) across 2 files Reviewer: maleadt Review duration: 2595m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 188 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.314
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #63780"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.8% (MEDIUM) · Higher = larger blast radius
35.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.2% · Lower = rushed or shallow review
60.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.2% · Safe to merge
14.2%