Skip to content

Conversation

@fingolfin
Copy link
Member

@fingolfin fingolfin commented Dec 29, 2025

unpack_platform might return nothing in case of an error.

Together with PR #60506 and my previous changes, when applied to release-1.12, the JET report for GAP.jl is now free of reports. Well, if I filter out certain "unavoidable issues":

using Revise, JET, AbstractAlgebra, GAP

struct AnyFrameMethod <: ReportMatcher
    m::Union{Function,Method,Symbol}
end


function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
    # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
    m = matcher.m
    if m isa Symbol
        return any(vf -> vf.linfo.def.name === m, report.vst)
    elseif m isa Method
        return any(vf -> vf.linfo.def === m, report.vst)
    else # if m isa Function
        return any(vf -> vf.linfo.def in methods(m), report.vst)
    end
end

report_package(GAP; ignored_modules=[AnyFrameMethod(:is_loaded_directly)])

CC @lgoettgens

unpack_platform might return nothing in case of an error.
@fingolfin fingolfin requested a review from aviatesk December 29, 2025 14:27
@fingolfin fingolfin added backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Dec 29, 2025
@topolarity topolarity added the merge me PR is reviewed. Merge when all tests are passing label Dec 29, 2025
@aviatesk aviatesk merged commit 8123a5c into master Dec 29, 2025
13 checks passed
@aviatesk aviatesk deleted the mh/JET-artifact_meta branch December 29, 2025 18:11
@inkydragon inkydragon removed the merge me PR is reviewed. Merge when all tests are passing label Dec 31, 2025
KristofferC pushed a commit that referenced this pull request Jan 7, 2026
`unpack_platform` might return nothing in case of an error.

Together with PR #60506 and my previous changes, when applied to
release-1.12, the JET report for GAP.jl is now free of reports. Well, if
I filter out certain "unavoidable issues":
```julia
using Revise, JET, AbstractAlgebra, GAP

struct AnyFrameMethod <: ReportMatcher
    m::Union{Function,Method,Symbol}
end

function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
    # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
    m = matcher.m
    if m isa Symbol
        return any(vf -> vf.linfo.def.name === m, report.vst)
    elseif m isa Method
        return any(vf -> vf.linfo.def === m, report.vst)
    else # if m isa Function
        return any(vf -> vf.linfo.def in methods(m), report.vst)
    end
end

report_package(GAP; ignored_modules=[AnyFrameMethod(:is_loaded_directly)])
```

(cherry picked from commit 8123a5c)
KristofferC pushed a commit that referenced this pull request Jan 8, 2026
`unpack_platform` might return nothing in case of an error.

Together with PR #60506 and my previous changes, when applied to
release-1.12, the JET report for GAP.jl is now free of reports. Well, if
I filter out certain "unavoidable issues":
```julia
using Revise, JET, AbstractAlgebra, GAP

struct AnyFrameMethod <: ReportMatcher
    m::Union{Function,Method,Symbol}
end

function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
    # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
    m = matcher.m
    if m isa Symbol
        return any(vf -> vf.linfo.def.name === m, report.vst)
    elseif m isa Method
        return any(vf -> vf.linfo.def === m, report.vst)
    else # if m isa Function
        return any(vf -> vf.linfo.def in methods(m), report.vst)
    end
end

report_package(GAP; ignored_modules=[AnyFrameMethod(:is_loaded_directly)])
```

(cherry picked from commit 8123a5c)
KristofferC pushed a commit that referenced this pull request Jan 9, 2026
`unpack_platform` might return nothing in case of an error.

Together with PR #60506 and my previous changes, when applied to
release-1.12, the JET report for GAP.jl is now free of reports. Well, if
I filter out certain "unavoidable issues":
```julia
using Revise, JET, AbstractAlgebra, GAP

struct AnyFrameMethod <: ReportMatcher
    m::Union{Function,Method,Symbol}
end

function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
    # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
    m = matcher.m
    if m isa Symbol
        return any(vf -> vf.linfo.def.name === m, report.vst)
    elseif m isa Method
        return any(vf -> vf.linfo.def === m, report.vst)
    else # if m isa Function
        return any(vf -> vf.linfo.def in methods(m), report.vst)
    end
end

report_package(GAP; ignored_modules=[AnyFrameMethod(:is_loaded_directly)])
```

(cherry picked from commit 8123a5c)
@KristofferC KristofferC mentioned this pull request Jan 9, 2026
40 tasks
@KristofferC KristofferC removed the backport 1.13 Change should be backported to release-1.13 label Jan 9, 2026
DilumAluthge pushed a commit that referenced this pull request Jan 9, 2026
`unpack_platform` might return nothing in case of an error.

Together with PR #60506 and my previous changes, when applied to
release-1.12, the JET report for GAP.jl is now free of reports. Well, if
I filter out certain "unavoidable issues":
```julia
using Revise, JET, AbstractAlgebra, GAP

struct AnyFrameMethod <: ReportMatcher
    m::Union{Function,Method,Symbol}
end

function JET.match_report(matcher::AnyFrameMethod, @nospecialize(report::JET.InferenceErrorReport))
    # check all VirtualFrames in the VirtualStackTrace for a match to the specified method
    m = matcher.m
    if m isa Symbol
        return any(vf -> vf.linfo.def.name === m, report.vst)
    elseif m isa Method
        return any(vf -> vf.linfo.def === m, report.vst)
    else # if m isa Function
        return any(vf -> vf.linfo.def in methods(m), report.vst)
    end
end

report_package(GAP; ignored_modules=[AnyFrameMethod(:is_loaded_directly)])
```

(cherry picked from commit 8123a5c)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants