ensure checks are reported before executed (#32925)

This commit is contained in:
Liam Cervante 2023-03-28 15:20:54 +02:00 committed by GitHub
parent 9d93415d4c
commit 5f97f88025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,10 @@ func (t *checkTransformer) transform(g *Graph, cfg *configs.Config, allNodes []d
}
g.Add(report)
// Make sure we report our checks before we start executing the
// actual checks.
g.Connect(dag.BasicEdge(expand, report))
// This part ensures we report our checks before our nested data
// block executes and attempts to report on a check.
for _, other := range allNodes {