Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add selective.resolveTree task to help debug selective execution misbehaviors #4349

Merged
merged 24 commits into from
Jan 17, 2025
Prev Previous commit
Next Next commit
wip
  • Loading branch information
lihaoyi committed Jan 17, 2025
commit 0f6837d561cc6b1e38d6095e216e0053a50fca03
7 changes: 4 additions & 3 deletions main/src/mill/main/SelectiveExecution.scala
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,11 @@ private[mill] object SelectiveExecution {

val reverseInterGroupDeps = SpanningForest.reverseEdges(interGroupDeps)

val indexEdges: Array[Array[Int]] = indexToTerminal.map(t =>
reverseInterGroupDeps.getOrElse(t, Nil).flatMap(terminalToIndex.get(_)).toArray
)
SpanningForest.writeJson(
indexEdges = indexToTerminal.map(t =>
reverseInterGroupDeps.getOrElse(t, Nil).flatMap(terminalToIndex.get(_)).toArray
),
indexEdges = indexEdges,
interestingIndices = indexToTerminal.indices.toSet,
render = indexToTerminal(_).render
)
Expand Down