Include NodePath in artifact graph mermaid charts as comments (#6884)

* Display NodePath in artifact graph mermaid charts

* Update output

* Change node path display to be only comments

* Update output

* Update output after rebase
This commit is contained in:
Jonathan Tran
2025-05-14 01:31:58 -04:00
committed by GitHub
parent 811ef3e72d
commit 1e487ef3bd
161 changed files with 2339 additions and 1160 deletions

View File

@ -280,11 +280,11 @@ fn assert_common_snapshots(
let result1 = catch_unwind(AssertUnwindSafe(|| {
assert_snapshot(test, "Operations executed", || {
insta::assert_json_snapshot!("ops", operations, {
"[].unlabeledArg.*.value.**[].from[]" => rounded_redaction(4),
"[].unlabeledArg.*.value.**[].to[]" => rounded_redaction(4),
"[].*.unlabeledArg.value.value" => rounded_redaction(4),
"[].labeledArgs.*.value.**[].from[]" => rounded_redaction(4),
"[].labeledArgs.*.value.**[].to[]" => rounded_redaction(4),
"[].*.unlabeledArg.*.value.**[].from[]" => rounded_redaction(4),
"[].*.unlabeledArg.*.value.**[].to[]" => rounded_redaction(4),
"[].**.value.value" => rounded_redaction(4),
"[].*.labeledArgs.*.value.**[].from[]" => rounded_redaction(4),
"[].*.labeledArgs.*.value.**[].to[]" => rounded_redaction(4),
".**.sourceRange" => Vec::new(),
".**.functionSourceRange" => Vec::new(),
".**.moduleId" => 0,
@ -294,9 +294,10 @@ fn assert_common_snapshots(
let result2 = catch_unwind(AssertUnwindSafe(|| {
assert_snapshot(test, "Artifact commands", || {
insta::assert_json_snapshot!("artifact_commands", artifact_commands, {
"[].command.segment.*.x" => rounded_redaction(4),
"[].command.segment.*.y" => rounded_redaction(4),
"[].command.segment.*.z" => rounded_redaction(4),
"[].command.**.value" => rounded_redaction(4),
"[].command.**.x" => rounded_redaction(4),
"[].command.**.y" => rounded_redaction(4),
"[].command.**.z" => rounded_redaction(4),
".**.range" => Vec::new(),
});
})