Skip to content

Conversation

@gdalle
Copy link
Contributor

@gdalle gdalle commented Oct 14, 2025

Fixes #58367

@tecosaur
Copy link
Member

I'm afraid I can't offer a full review, but I do want to say that I love module Hinterland in the tests 😆

@DilumAluthge
Copy link
Member

@vtjnash Could you review this?

@DilumAluthge DilumAluthge assigned DilumAluthge and unassigned vtjnash Oct 15, 2025
@DilumAluthge DilumAluthge added the error messages Better, more actionable error messages label Oct 15, 2025
@DilumAluthge DilumAluthge requested a review from timholy October 15, 2025 16:26
@DilumAluthge
Copy link
Member

And maybe also @timholy?

@DilumAluthge DilumAluthge requested a review from vtjnash October 15, 2025 16:26
@gdalle
Copy link
Contributor Author

gdalle commented Oct 15, 2025

Crap, I struggled with the master build on my Mac so I didn't test locally but judging by CI it seems that

UndefVarError: `supertypes` not defined in `Base.Experimental`

which makes sense since supertypes comes from the InteractiveUtils stdlib. Is this approach doomed to fail?

@tecosaur
Copy link
Member

which makes sense since supertypes comes from the InteractiveUtils stdlib. Is this approach doomed to fail?

Not at all, you can still use supertype in a while loop.

gdalle and others added 2 commits October 16, 2025 18:56
@DilumAluthge DilumAluthge requested a review from vtjnash October 17, 2025 18:06
@DilumAluthge
Copy link
Member

@vtjnash Can you do another review?

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Oct 17, 2025
@DilumAluthge
Copy link
Member

@gdalle I think the CI failures are related to this PR. Are you able to build this PR branch locally?

rror during bootstrap:
LoadError("sysimg.jl", 3, LoadError("Base.jl", 251, LoadError("experimental.jl", 303, UndefVarError(:TypeName, 0x0000000000006487, Base.Experimental))))
ijl_undefined_var_error at [buildroot]/src/rtutils.c:167

@DilumAluthge DilumAluthge added failing CI is failing. Needs attention. No need to re-run CI. and removed merge me PR is reviewed. Merge when all tests are passing labels Oct 17, 2025
@vtjnash vtjnash removed the failing CI is failing. Needs attention. No need to re-run CI. label Oct 17, 2025
@DilumAluthge DilumAluthge added failing CI is failing. Needs attention. No need to re-run CI. and removed merge me PR is reviewed. Merge when all tests are passing labels Oct 19, 2025
@DilumAluthge
Copy link
Member

The Build jobs are hanging on CI, reproducible after a retry. Master is green, so this seems related to the PR.

@DilumAluthge
Copy link
Member

Last time I tried the Julia build showed errors on my Mac M3, which is why I didn't test locally. Not sure if this is expected or not with the current master

Hmmm, we generally expect that you can build master locally. What's the error you get? We may need to open a new issue.

@gdalle Try building master first, before you try building this PR.

I just confirmed that I can successfully build master (c1353ac) locally on an M2 MacBook.

@DilumAluthge
Copy link
Member

@vtjnash Any idea why this PR would cause a hang when building Julia?

@gdalle
Copy link
Contributor Author

gdalle commented Oct 19, 2025

I'll try building tomorrow and report back. Hope we can sneak this into 1.13

@gdalle
Copy link
Contributor Author

gdalle commented Oct 20, 2025

I tried to build locally, master works but this PR fails. It runs for really long and then crashes my console. I don't know how to see the error on the buildkite logs, where should I look?

@tecosaur
Copy link
Member

I just took a look at the builtkite logs

image

Seems like the builds are failing because they're timing out.

@gdalle
Copy link
Contributor Author

gdalle commented Oct 20, 2025

Could it be an infinite while loop here?

while ex_supertype != Any

That seems unlikely but it is the only reason I can think of for a timeout

@abraemer
Copy link

Seems unlikely but also easy to check: You could keep track of types you have already seen and then abort the loop once supertype gives you a type you saw already. That would cover any sorts of strange loops.

Perhaps simpler for debugging: Keep track of the number of iterations and if it exceeds e.g. 20 or so then you log the type and abort the loop.

@gdalle
Copy link
Contributor Author

gdalle commented Oct 20, 2025

I figured it out: the shortcut isnothing(hinters) && continue did not replace ex_supertype with its supertype, so it did not make any progress towards Any. That's what was triggering the infinite loop

@vtjnash vtjnash added merge me PR is reviewed. Merge when all tests are passing and removed failing CI is failing. Needs attention. No need to re-run CI. labels Oct 20, 2025
@DilumAluthge
Copy link
Member

Error in testset errorshow:
Error During Test at /cache/build/tester-amdci4-8/julialang/julia-master/julia-8cb1702aa9/share/julia/test/testdefs.jl:25

@DilumAluthge DilumAluthge added failing CI is failing. Needs attention. No need to re-run CI. and removed merge me PR is reviewed. Merge when all tests are passing labels Oct 20, 2025
@gdalle
Copy link
Contributor Author

gdalle commented Oct 20, 2025

Oh right, the test suite is doing some weird popping so that the length doesn't stay even. I'll fix it tomorrow

@gdalle
Copy link
Contributor Author

gdalle commented Oct 21, 2025

Now my new test is passing but some older tests are failing, partly because the error prints more than it used to 🤔

@vtjnash vtjnash removed the failing CI is failing. Needs attention. No need to re-run CI. label Oct 21, 2025
@vtjnash vtjnash merged commit 0cad721 into JuliaLang:master Oct 21, 2025
6 of 8 checks passed
@gdalle
Copy link
Contributor Author

gdalle commented Oct 21, 2025

Why was this merged despite breaking CI?

@vtjnash
Copy link
Member

vtjnash commented Oct 21, 2025

CI said it passed

@gdalle
Copy link
Contributor Author

gdalle commented Oct 21, 2025

Okay, it seems that the buildkite failure is unrelated then

@gdalle gdalle deleted the gd/hints branch October 21, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error messages Better, more actionable error messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define error hints for abstract exception types

5 participants