Skip to content

Commit

Permalink
Add back link.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 4, 2023
1 parent 78e3ef8 commit 7cc3a59
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 29 deletions.
46 changes: 38 additions & 8 deletions nextgen/action-graph/tests/action_graph_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SyncProject {
project: Id::raw("bar"),
ActionNode::SetupTool {
runtime: create_node_runtime()
},
ActionNode::SetupTool {
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: create_node_runtime()
},
ActionNode::InstallDeps {
Expand Down Expand Up @@ -296,11 +296,11 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SyncProject {
project: Id::raw("bar"),
ActionNode::SetupTool {
runtime: create_node_runtime()
},
ActionNode::SetupTool {
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: create_node_runtime()
},
ActionNode::InstallDeps {
Expand Down Expand Up @@ -381,13 +381,16 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SyncProject {
project: Id::raw("bar"),
ActionNode::SetupTool {
runtime: create_node_runtime()
},
ActionNode::SetupTool {
runtime: create_rust_runtime()
},
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: create_node_runtime()
},
ActionNode::InstallDeps {
runtime: create_rust_runtime()
},
Expand Down Expand Up @@ -555,6 +558,9 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: Runtime::system()
},
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: Runtime::system()
Expand All @@ -578,6 +584,9 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: Runtime::system()
},
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: Runtime::system()
Expand Down Expand Up @@ -611,6 +620,9 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: Runtime::system()
},
ActionNode::SyncProject {
project: Id::raw("qux"),
runtime: Runtime::system()
Expand Down Expand Up @@ -644,6 +656,9 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: Runtime::system()
},
ActionNode::SyncProject {
project: Id::raw("bar"),
runtime: Runtime::system()
Expand Down Expand Up @@ -675,6 +690,12 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: create_rust_runtime()
},
ActionNode::SetupTool {
runtime: create_node_runtime()
},
ActionNode::SyncProject {
project: Id::raw("qux"),
runtime: create_rust_runtime()
Expand Down Expand Up @@ -706,6 +727,15 @@ mod action_graph {
topo(graph),
vec![
ActionNode::SyncWorkspace,
ActionNode::SetupTool {
runtime: Runtime::new_override(
PlatformType::Node,
RuntimeReq::with_version(Version::new(18, 0, 0))
)
},
ActionNode::SetupTool {
runtime: create_node_runtime()
},
ActionNode::SyncProject {
project: Id::raw("baz"),
runtime: Runtime::new_override(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ digraph {
4 [ label="RunTask(bar:build)" ]
1 -> 0 [ ]
2 -> 1 [ ]
3 -> 0 [ ]
3 -> 1 [ ]
4 -> 2 [ ]
4 -> 3 [ ]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SetupRustTool(1.70.0)" ]
2 [ label="InstallRustDeps(1.70.0)" ]
3 [ label="SyncNodeProject(bar)" ]
4 [ label="RunTask(bar:build)" ]
3 [ label="SetupNodeTool(20.0.0)" ]
4 [ label="SyncNodeProject(bar)" ]
5 [ label="RunTask(bar:build)" ]
1 -> 0 [ ]
2 -> 1 [ ]
3 -> 0 [ ]
4 -> 2 [ ]
4 -> 3 [ ]
5 -> 2 [ ]
5 -> 4 [ ]
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ expression: graph.to_dot()
---
digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SyncSystemProject(foo)" ]
2 [ label="SyncSystemProject(bar)" ]
3 [ label="SyncSystemProject(qux)" ]
2 -> 0 [ ]
1 [ label="SetupSystemTool" ]
2 [ label="SyncSystemProject(foo)" ]
3 [ label="SyncSystemProject(bar)" ]
4 [ label="SyncSystemProject(qux)" ]
1 -> 0 [ ]
1 -> 2 [ ]
3 -> 0 [ ]
3 -> 1 [ ]
2 -> 1 [ ]
2 -> 3 [ ]
4 -> 1 [ ]
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ expression: graph.to_dot()
---
digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SyncSystemProject(bar)" ]
1 [ label="SetupSystemTool" ]
2 [ label="SyncSystemProject(bar)" ]
1 -> 0 [ ]
2 -> 1 [ ]
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ expression: graph.to_dot()
---
digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SyncSystemProject(foo)" ]
2 [ label="SyncSystemProject(bar)" ]
2 -> 0 [ ]
1 [ label="SetupSystemTool" ]
2 [ label="SyncSystemProject(foo)" ]
3 [ label="SyncSystemProject(bar)" ]
1 -> 0 [ ]
1 -> 2 [ ]
3 -> 1 [ ]
2 -> 1 [ ]
2 -> 3 [ ]
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ expression: graph.to_dot()
---
digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SyncNodeProject(bar)" ]
2 [ label="SyncRustProject(qux)" ]
1 [ label="SetupNodeTool(20.0.0)" ]
2 [ label="SyncNodeProject(bar)" ]
3 [ label="SetupRustTool(1.70.0)" ]
4 [ label="SyncRustProject(qux)" ]
1 -> 0 [ ]
2 -> 0 [ ]
2 -> 1 [ ]
3 -> 0 [ ]
4 -> 3 [ ]
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ expression: graph.to_dot()
---
digraph {
0 [ label="SyncWorkspace" ]
1 [ label="SyncNodeProject(bar)" ]
2 [ label="SyncNodeProject(baz)" ]
1 [ label="SetupNodeTool(20.0.0)" ]
2 [ label="SyncNodeProject(bar)" ]
3 [ label="SetupNodeTool(18.0.0)" ]
4 [ label="SyncNodeProject(baz)" ]
1 -> 0 [ ]
2 -> 0 [ ]
2 -> 1 [ ]
3 -> 0 [ ]
4 -> 3 [ ]
}

0 comments on commit 7cc3a59

Please sign in to comment.