Federated queries are not correctly resolved if one of subgraphs is unavailable #1438
Annotations
3 errors and 15 warnings
error: expect(received).toMatchObject(expected):
packages/federation/tests/unavailable-subgraph/yoga.gateway.test.ts#L185
{
testNestedField: {
subgraph1_Nullable: {
testSuccessQuery: {
email: "[email protected]",
id: "user1",
sub1: true,
},
},
+ subgraph2_Nullable: {
+ testErrorQuery: null,
+ },
- subgraph2_Nullable: null,
},
}
- Expected - 1
+ Received + 3
at /home/runner/work/gateway/gateway/packages/federation/tests/unavailable-subgraph/yoga.gateway.test.ts:185:29
|
Unit / Bun
Process completed with exit code 1.
|
e2e/apq-subgraphs/apq-subgraphs.e2e.ts > APQ to the upstream > works:
e2e/apq-subgraphs/apq-subgraphs.e2e.ts#L62
AssertionError: expected '\u0001\u0000\u0000\u0000\u0000\u0000\…' to contain 'fetch 3 {"extensions":{"persistedQuer…'
- Expected
+ Received
- fetch 3 {"extensions":{"persistedQuery":{"version":1,"sha256Hash":"aa8cf9695d3eeee3df8a53e402954afe8424c381afe79f262435c3889f5a0f08"}}}
+ �a[2024-12-14T15:51:32.185Z] INFO Found default config file /gateway/gateway.config.ts
+ �:[2024-12-14T15:51:33.107Z] INFO Loaded config
+ ��[2024-12-14T15:51:33.109Z] WARN :5:166m If you want to enable hot reloading when /gateway/hnr86aejt.graphql changes, make sure "@parcel/watcher" is available
+ ��[2024-12-14T15:51:33.107Z] INFO Found schema path or URL: hnr86aejt.graphql
+ [2024-12-14T15:51:33.109Z] INFO Reading supergraph from /gateway/hnr86aejt.graphql
+ �e[2024-12-14T15:51:33.132Z] INFO Serving local supergraph from /gateway/hnr86aejt.graphql
+ �O[2024-12-14T15:51:33.142Z] INFO Listening on http://0.0.0.0:42411/
+ ��fetch 1 {"extensions":{"persistedQuery":{"version":1,"sha256Hash":"aa8cf9695d3eeee3df8a53e402954afe8424c381afe79f262435c3889f5a0f08"}}}
+ ��fetch 2 {"query":"{__typename hello}","extensions":{"persistedQuery":{"version":1,"sha256Hash":"aa8cf9695d3eeee3df8a53e402954afe8424c381afe79f262435c3889f5a0f08"}}}
+
❯ e2e/apq-subgraphs/apq-subgraphs.e2e.ts:62:31
|
Unit / Bun
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit / Node v20
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit / Node v22
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit / Node v18
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Node 20 on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Node 18 on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Bun on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Node 22 on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Leaks / Node v22
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Leaks / Node v20
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Node Binary on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Node Docker on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Leaks / Node v18
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Bun Docker on Ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E / Bun Docker on Ubuntu
Attempt 1 failed. Reason: Child_process exited with error code 1
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
graphql-hive~gateway~0VU9EK+1.dockerbuild
|
55.6 KB |
|
graphql-hive~gateway~OYQBR2+1.dockerbuild
|
70.2 KB |
|