Skip to content

CI is red on master: notes on the 13 failing jobs #786

Done

Description

@SwayamBorateIIT

@jpsamaroo mentioned in #784 that the CI flakiness hasn't been cleaned up yet, so
here's what I found while reading the logs. Most of it isn't PR-specific - master
is red on its own. Latest run on master
(41501130127,
d74b4c53) is 34 pass / 13 fail.

The one I think is an actual bug is test/thunk.jl:320:

remote spawn: Error During Test at test/thunk.jl:320
  Expression: dynamic_fib(10) == 55
  DTaskFailedException:
    Root Exception Type: ConcurrencyViolationError
  On worker 2: ... On worker 4: ... On worker 2: ...

It nests several workers deep. It's also flaky rather than consistent - 1.10 and
1.11 - ubuntu fail on it, but the multithreaded variants of those same versions
pass in the same run, which I don't have an explanation for.

The cheapest one to fix is probably test/allocations.jl:173:

MethodError: no method matching wait(::Vector{Float64})

That one's deterministic and only hits nightly and pre, but between those and
MPI CPU - pre it's 6 of the 13 failures. Looks like the test is calling a wait
method that doesn't exist on those versions any more, so a test-side fix.

The rest, more briefly:

  • DaggerWebDash - lib/DaggerWebDash/test/runtests.jl:7 fails with
    failed process: Process(`curl -s localhost:8080/index.html`, ProcessExited(7)).
    Exit 7 is "couldn't connect", so the server isn't up yet when the test fetches
    from it.
  • macos-26 (arm64) (multithreaded) - log fills with Error in eager scheduler:
    / InterruptException out of src/sch/eager.jl:51 -> src/sch/Sch.jl:451, then
    just stops partway through the Thunk testset. Failing step is
    Run tests (multithreaded, no extra workers). I couldn't tell from the log
    whether it timed out or died; something seems to be cancelling the scheduler task.
  • 1.11 (Finch) - matmul_finch.jl:46,
    MethodError: no method matching length(::Tensor{SparseCOOLevel{2, ...}}). Finch
    API drift, not Dagger.
  • MPI CPU - Julia 1.10 / 4 ranks - fails on master but passed on DArray: Add tril and triu #784, so flaky
    too. Didn't dig into this one.

On the benchmark jobs: one trips its threshold every run, but a different metric
each time - MPI+Threads linalg on this master run, syrk (A'*A) allocations on
#784, matmul (A*A) time +126.8% on #783. The #783 one was a one-line
any(isempty, ...) guard, which can't have affected matmul, and #784's table had
solve (A\b via lu) 61.9% faster in the same run it reported a regression. So I
think these are just noisy rather than meaningful.

I'd be happy to pick these off one at a time if that's useful - allocations.jl
first since it's small and clears six jobs, then have a proper go at the
thunk.jl one. Tell me if some of these are already known, or if you'd rather
have them as separate issues.

Activity

  1. changed the title [-]CI: catalogue of the jobs currently failing on `master`[/-] [+]CI is red on master: notes on the 13 failing jobs[/+] on Nov 4, 2026
  2. SwayamBorateIIT commented on Nov 22, 2026

    @SwayamBorateIIT
    ContributorAuthor

    A few things I left out or didn't have when I wrote this.

    custom_actions isn't in the list above because it only runs on pull
    requests (on: pull_request in CustomCommands.yml), so master never shows
    it. It fails in about 7s at the julia-actions/setup-julia step, which
    installs Julia 1.9 (1.9.4 here):

    ERROR: Unable to load dependent library .../julia/1.9.4/x64/bin/../lib/julia/libopenlibm.so
    Message: ...: cannot enable executable stack as shared object requires: Invalid argument
    

    It passed on #784 (24 Oct) and fails on #777, #782 and #787, so I think that
    Julia build has stopped loading on the current runners rather than anything in
    those PRs. The "Run provided commands" step is skipped after it, so the
    /run-actions commands can't run either.

    Buildkite. I built the list above from the GitHub Actions run, so I never
    looked at the buildkite statuses. On master (d74b4c53) metal, oneapi,
    oneapi-mpi, rocm and rocm-mpi are failing and cuda / cuda-mpi pass.
    I haven't looked at why. Separately, Julia 1.11 (OpenCL) was cancelled in that
    Actions run, so I can't say how it does on master.

    thunk.jl:320. The 1.10 and 1.11 jobs on master show the root exception
    message, which I didn't include above: ConcurrencyViolationError("lock must be held"). That reads like a lock being released or asserted by a task that
    doesn't own it. I haven't found which one.

    After #787. #787 fixes the allocations.jl:173 failure. With it, nightly
    and pre both get past allocations and stop at the next file,
    test/array/allocation.jl:134: getindex(::SparseMatrixCSC, ::ArrayDomain) is
    ambiguous between SparseArrays' getindex(A::AbstractSparseMatrixCSC{Tv,Ti}, I...)
    and src/array/darray.jl:35. It reproduces in two lines, fine on 1.13 and
    failing on nightly 1.15.0-DEV:

    using Dagger, SparseArrays
    distribute(sprand(16, 16, 0.3), Blocks(4, 4))

    Happy to take that one as well.

  3. jpsamaroo commented on Nov 26, 2026

    @jpsamaroo
    Member

    Thanks so much for the analysis and PRs! If you'd like to tackle further fixes, please do! I've merged #780 which I put together a few weeks ago for the same purpose as well - hopefully it fixes a number of the found issues.

  4. SwayamBorateIIT commented on Nov 30, 2026

    @SwayamBorateIIT
    ContributorAuthor

    Thanks! I rechecked everything against master's latest CI run (933a4df3, run 46346856608): 50 jobs pass, 1 fails, 1 is cancelled.

    Fixed by #780 (each is a commit in it, and the job is green now):

    Gone since #780, cause not pinned down: the thunk.jl:320 ConcurrencyViolationError hasn't appeared on 1.10/1.11 since #780 moved those jobs to DistributedNext. macOS multithreaded and MPI CPU 1.10 are green too.

    Gone without a Dagger change: the nightly QR failure (output array must not be aliased with an input array in qr.jl). It appears 84 times in the log on nightly 1.15.0-DEV.1036 and not at all on 1.15.0-DEV.1070, and nothing in Dagger's QR changed in between. LinearAlgebra.jl merged a set of aliasing-check fixes on 24 Nov, which is presumably what did it. nightly and pre are now fully green.

    Still failing:

    • Julia 1.11 - ubuntu: worker 4 died during test/array/linalg/svd.jl:138 (ProcessExitedException(4)). This one is inside DistributedNext, the transport Fix CI correctness defects and excessive stencil compilation #780 switched 1.10/1.11 to, not in the SVD code: a remote-reference finalizer waits on a lock, and Julia doesn't allow a task switch inside a GC finalizer.
      error in running finalizer: ErrorException("task switch not allowed from inside gc finalizer")
      lock            at DistributedNext/src/DistributedNext.jl:122
      worker_from_id  at DistributedNext/src/cluster.jl:1461
      process_worker  at DistributedNext/src/remotecall.jl:306
      send_del_client_no_lock at DistributedNext/src/remotecall.jl:293
      finalize_ref    at DistributedNext/src/remotecall.jl:93
      
      The same job passed on bd7c8f43, so it looks timing-dependent. I couldn't find it reported on DistributedNext.
    • custom_actions still fails on PRs (Remove dynamic dispatch from the submit and Datadeps planning paths #799, Datadeps: free copies of identity-less arguments again, and give each its own slot #833): Julia 1.9.4 doesn't load on the current runners.
    • Buildkite on 933a4df3: cuda, metal, oneapi and oneapi-mpi fail, cuda-mpi passes, and no rocm status was reported. I haven't looked at those logs.
    • Not visible in CI, because no test covers it: distributing a sparse vector is still ambiguous on nightly. 428a54f added the AbstractSparseMatrixCSC method; the vector one is missing. On 933a4df3 with 1.15.0-DEV.1070:
      julia> distribute(sprand(100, 0.1), Blocks(10))
      MethodError: getindex(::SparseVector{Float64, Int64}, ::ArrayDomain{1, Tuple{UnitRange{Int64}}}) is ambiguous.
      

    I'll open a PR for the sparse-vector case next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions