Skip to content

Allow Trace to accept a Future as its data source #211

Allow Trace to accept a Future as its data source

Allow Trace to accept a Future as its data source #211

Triggered via pull request July 25, 2024 17:16
Status Failure
Total duration 29s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
tests/Future.test.ts > Future > Trace (Directive) > when target is a Node > .toJSON: tests/Future.test.ts#L91
AssertionError: expected { type: 'trace', …(3) } to deeply equal { type: 'trace', …(2) } - Expected + Received Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "a", }, Object { "accessor": "item", "future_id": null, "key": 1, }, Object { "accessor": "attr", "future_id": "123", "key": null, }, Object { "accessor": "item", "future_id": "456", "key": null, }, ], + "origin_future_id": null, "origin_node_id": "NodeId", "type": "trace", } ❯ tests/Future.test.ts:91:28
tests/Node.test.ts > Node > .references: tests/Node.test.ts#L46
AssertionError: expected Set{ FutureAnyObject{ …(2) }, …(5) } to deeply equal Set{ FutureAnyObject{ …(2) }, …(2) } - Expected + Received Set { Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], - "origin_future_id": "future5_DI49yrXV", + "origin_future_id": "future9_Jpm5im8a", "origin_node_id": null, "type": "trace", }, - "id": "future6_1RCw71qb", + "id": "future10_GeIJrYQm", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "b", + "type": "trace", + }, + "id": "future9_Jpm5im8a", }, Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, - "key": "y", + "key": "x", }, ], - "origin_future_id": "future7_dmu4PLkF", + "origin_future_id": "future5_DI49yrXV", "origin_node_id": null, "type": "trace", }, - "id": "future8_6jZ773UP", + "id": "future6_1RCw71qb", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "a", + "type": "trace", + }, + "id": "future5_DI49yrXV", }, Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, - "key": "x", + "key": "y", }, ], - "origin_future_id": "future9_Jpm5im8a", + "origin_future_id": "future7_dmu4PLkF", "origin_node_id": null, "type": "trace", }, - "id": "future10_GeIJrYQm", + "id": "future8_6jZ773UP", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "a", + "type": "trace", + }, + "id": "future7_dmu4PLkF", }, } ❯ tests/Node.test.ts:46:21
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures: tests/Substrate.test.ts#L19
AssertionError: expected { …(4) } to deeply equal { edges: [], initial_args: {}, …(2) } - Expected + Received Object { "edges": Array [], "futures": Array [ Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], + "origin_future_id": "future1_d5aBIuLY", + "origin_node_id": null, + "type": "trace", + }, + "id": StringMatching /future/, + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, "origin_node_id": "a", "type": "trace", }, "id": StringMatching /future/, }, Object { "directive": Object { "items": Array [ Object { "future_id": null, "val": "x", }, Object { "future_id": null, "val": "y", }, ], "type": "string-concat", }, - "id": StringMatching /future/, + "id": "future3_C7GDifrd", }, ], "initial_args": Object {}, "nodes": Array [ Object { "_should_output_globally": true, "args": Object { "a": 123, }, "id": "a", "node": "FooNode", }, Object { "_should_output_globally": true, "args": Object { "b": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, "c": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, }, "id": "b", "node": "FooNode", }, ], } ❯ tests/Substrate.test.ts:19:22
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures, but we only supply the 'final' node: tests/Substrate.test.ts#L87
AssertionError: expected { nodes: [ { …(4) }, { …(4) } ], …(3) } to deeply equal { edges: [], initial_args: {}, …(2) } - Expected + Received Object { "edges": Array [], "futures": Array [ Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], + "origin_future_id": "future4_FTnrhJ5L", + "origin_node_id": null, + "type": "trace", + }, + "id": StringMatching /future/, + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, "origin_node_id": "node1_hq7rW0vm", "type": "trace", }, "id": StringMatching /future/, }, Object { "directive": Object { "items": Array [ Object { "future_id": null, "val": "x", }, Object { "future_id": null, "val": "y", }, ], "type": "string-concat", }, - "id": StringMatching /future/, + "id": "future6_HQQOK5Ze", }, ], "initial_args": Object {}, "nodes": Array [ Object { "_should_output_globally": true, "args": Object { "b": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, "c": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, }, "id": "node2_srudFf8D", "node": "FooNode", }, Object { "_should_output_globally": true, "args": Object { "a": 123, }, "id": "node1_hq7rW0vm", "node": "FooNode", }, ], } ❯ tests/Substrate.test.ts:87:22
build (18.17.1)
Process completed with exit code 2.
build (16.18.1)
The job was canceled because "_18_17_1" failed.
tests/Future.test.ts > Future > Trace (Directive) > when target is a Node > .toJSON: tests/Future.test.ts#L91
AssertionError: expected { type: 'trace', …(3) } to deeply equal { type: 'trace', …(2) } - Expected + Received Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "a", }, Object { "accessor": "item", "future_id": null, "key": 1, }, Object { "accessor": "attr", "future_id": "123", "key": null, }, Object { "accessor": "item", "future_id": "456", "key": null, }, ], + "origin_future_id": null, "origin_node_id": "NodeId", "type": "trace", } ❯ tests/Future.test.ts:91:28
tests/Node.test.ts > Node > .references: tests/Node.test.ts#L46
AssertionError: expected Set{ FutureAnyObject{ …(2) }, …(5) } to deeply equal Set{ FutureAnyObject{ …(2) }, …(2) } - Expected + Received Set { Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], - "origin_future_id": "future5_gaSC-sJq", + "origin_future_id": "future9_otIjMkky", "origin_node_id": null, "type": "trace", }, - "id": "future6_j2sThwAo", + "id": "future10_ErEFMfrz", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "b", + "type": "trace", + }, + "id": "future9_otIjMkky", }, Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, - "key": "y", + "key": "x", }, ], - "origin_future_id": "future7_B88oqOT6", + "origin_future_id": "future5_gaSC-sJq", "origin_node_id": null, "type": "trace", }, - "id": "future8_p1e2BdAw", + "id": "future6_j2sThwAo", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "a", + "type": "trace", + }, + "id": "future5_gaSC-sJq", }, Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, - "key": "x", + "key": "y", }, ], - "origin_future_id": "future9_otIjMkky", + "origin_future_id": "future7_B88oqOT6", "origin_node_id": null, "type": "trace", }, - "id": "future10_ErEFMfrz", + "id": "future8_p1e2BdAw", + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, + "origin_node_id": "a", + "type": "trace", + }, + "id": "future7_B88oqOT6", }, } ❯ tests/Node.test.ts:46:21
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures: tests/Substrate.test.ts#L19
AssertionError: expected { …(4) } to deeply equal { edges: [], initial_args: {}, …(2) } - Expected + Received Object { "edges": Array [], "futures": Array [ Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], + "origin_future_id": "future1_CSnOtQ19", + "origin_node_id": null, + "type": "trace", + }, + "id": StringMatching /future/, + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, "origin_node_id": "a", "type": "trace", }, "id": StringMatching /future/, }, Object { "directive": Object { "items": Array [ Object { "future_id": null, "val": "x", }, Object { "future_id": null, "val": "y", }, ], "type": "string-concat", }, - "id": StringMatching /future/, + "id": "future3_-40EyLmP", }, ], "initial_args": Object {}, "nodes": Array [ Object { "_should_output_globally": true, "args": Object { "a": 123, }, "id": "a", "node": "FooNode", }, Object { "_should_output_globally": true, "args": Object { "b": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, "c": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, }, "id": "b", "node": "FooNode", }, ], } ❯ tests/Substrate.test.ts:19:22
tests/Substrate.test.ts > Substrate > .serialize > when there are nodes and futures, but we only supply the 'final' node: tests/Substrate.test.ts#L87
AssertionError: expected { nodes: [ { …(4) }, { …(4) } ], …(3) } to deeply equal { edges: [], initial_args: {}, …(2) } - Expected + Received Object { "edges": Array [], "futures": Array [ Object { "directive": Object { "op_stack": Array [ Object { "accessor": "attr", "future_id": null, "key": "x", }, ], + "origin_future_id": "future4_GRG2lbhp", + "origin_node_id": null, + "type": "trace", + }, + "id": StringMatching /future/, + }, + Object { + "directive": Object { + "op_stack": Array [], + "origin_future_id": null, "origin_node_id": "node1_bH7Feue6", "type": "trace", }, "id": StringMatching /future/, }, Object { "directive": Object { "items": Array [ Object { "future_id": null, "val": "x", }, Object { "future_id": null, "val": "y", }, ], "type": "string-concat", }, - "id": StringMatching /future/, + "id": "future6_xjUtZYSq", }, ], "initial_args": Object {}, "nodes": Array [ Object { "_should_output_globally": true, "args": Object { "b": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, "c": Object { "__$$SB_GRAPH_OP_ID$$__": StringMatching /future/, }, }, "id": "node2_3uvwOPAQ", "node": "FooNode", }, Object { "_should_output_globally": true, "args": Object { "a": 123, }, "id": "node1_bH7Feue6", "node": "FooNode", }, ], } ❯ tests/Substrate.test.ts:87:22
build (16.18.1)
Process completed with exit code 2.
build (18.17.1)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/