Ensure session data is always returned #4781
tests.yml
on: pull_request
Formatting
38s
Tests
1m 29s
Verify Init
46s
End-to-End Linter
1m 39s
Matrix: End-to-End Tests
Annotations
11 errors, 34 warnings, and 3 notices
End-to-End Tests (ubuntu-latest, e2e-svelte):
node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts#L39
Cannot find module 'csstype'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
|
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts > kit route processor > route with +page.gql query:
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts#L544
Error: Snapshot `kit route processor > route with +page.gql query 4` mismatched
- Expected
+ Received
export async function load(event) {
- const __houdini__vite__plugin__return__value__ = {};
-
return {
...event.data,
- ...__houdini__vite__plugin__return__value__
+ ...{}
};
}
β― packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts:544:31
|
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts > kit route processor > route with +layout.gql query:
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts#L583
Error: Snapshot `kit route processor > route with +layout.gql query 4` mismatched
- Expected
+ Received
import { load_TestLayoutQuery } from "$houdini/plugins/houdini-svelte/stores/TestLayoutQuery";
import { getCurrentConfig } from "$houdini/runtime/lib/config";
import { RequestContext } from "$houdini/plugins/houdini-svelte/runtime/session";
export async function load(context) {
- const houdini_context = new RequestContext(context);
- const houdiniConfig = getCurrentConfig();
- const promises = [];
- const inputs = {};
- inputs["TestLayoutQuery"] = {};
+ const houdini_context = new RequestContext(context);
+ const houdiniConfig = getCurrentConfig();
+ const promises = [];
+ const inputs = {};
+ inputs["TestLayoutQuery"] = {};
- promises.push(load_TestLayoutQuery({
- "variables": inputs["TestLayoutQuery"],
- "event": context,
- "blocking": undefined
- }));
+ promises.push(load_TestLayoutQuery({
+ "variables": inputs["TestLayoutQuery"],
+ "event": context,
+ "blocking": undefined
+ }));
- let result = {};
+ let result = {};
- try {
- result = Object.assign({}, ...(await Promise.all(promises)));
- } catch (err) {
- throw err;
- }
+ try {
+ result = Object.assign({}, ...(await Promise.all(promises)));
+ } catch (err) {
+ throw err;
+ }
- const __houdini__vite__plugin__return__value__ = {
- ...houdini_context.returnValue,
- ...result
- };
+ return {
+ ...context.data,
- return {
- ...context.data,
- ...__houdini__vite__plugin__return__value__
- };
+ ...{
+ ...houdini_context.returnValue,
+ ...result
+ }
+ };
}
β― packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts:583:31
|
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts > layout loads:
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts#L1123
Error: Snapshot `layout loads 1` mismatched
- Expected
+ Received
@@ -10,55 +10,54 @@
const store2 = new MyQuery2Store();
export function _MyQuery2Variables() {}
export const _houdini_load = [store1, store2];
async function __houdini___MyQuery2Variables(config, event) {
- const result = {};
+ const result = {};
- Object.assign(result, marshalInputs({
- config: config,
- input: await _MyQuery2Variables(event),
- artifact: _MyQuery2Artifact
- }));
+ Object.assign(result, marshalInputs({
+ config: config,
+ input: await _MyQuery2Variables(event),
+ artifact: _MyQuery2Artifact
+ }));
- return result;
+ return result;
}
export async function load(context) {
- const houdini_context = new RequestContext(context);
- const houdiniConfig = getCurrentConfig();
- const promises = [];
- const inputs = {};
- inputs["MyQuery1"] = {};
+ const houdini_context = new RequestContext(context);
+ const houdiniConfig = getCurrentConfig();
+ const promises = [];
+ const inputs = {};
+ inputs["MyQuery1"] = {};
- promises.push(load_MyQuery1({
- "variables": inputs["MyQuery1"],
- "event": context,
- "blocking": undefined
- }));
+ promises.push(load_MyQuery1({
+ "variables": inputs["MyQuery1"],
+ "event": context,
+ "blocking": undefined
+ }));
- inputs["MyQuery2"] = await __houdini___MyQuery2Variables(houdiniConfig, context);
+ inputs["MyQuery2"] = await __houdini___MyQuery2Variables(houdiniConfig, context);
- promises.push(load_MyQuery2({
- "variables": inputs["MyQuery2"],
- "event": context,
- "blocking": undefined
- }));
+ promises.push(load_MyQuery2({
+ "variables": inputs["MyQuery2"],
+ "event": context,
+ "blocking": undefined
+ }));
- let result = {};
+ let result = {};
- try {
- result = Object.assign({}, ...(await Promise.all(promises)));
- } catch (err) {
- throw err;
- }
+ try {
+ result = Object.assign({}, ...(await Promise.all(promises)));
+ } catch (err) {
+ throw err;
+ }
- const __houdini__vite__plugin__return__value__ = {
- ...houdini_context.returnValue,
- ...result
- };
+ return {
+ ...context.data,
- return {
- ...context.data,
- ...__houdini__vite__plugin__return__value__
- };
+ ...{
+ ...houdini_context.returnValue,
+ ...result
+ }
+ };
}
β― packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts:1123:30
|
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts > layout inline query:
packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts#L1235
Error: Snapshot `layout inline query 2` mismatched
- Expected
+ Received
@@ -2,35 +2,34 @@
import { getCurrentConfig } from "$houdini/runtime/lib/config";
import { RequestContext } from "$houdini/plugins/houdini-svelte/runtime/session";
import _TestQueryArtifact from "$houdini/artifacts/TestQuery";
export async function load(context) {
- const houdini_context = new RequestContext(context);
- const houdiniConfig = getCurrentConfig();
- const promises = [];
- const inputs = {};
- inputs["TestQuery"] = {};
+ const houdini_context = new RequestContext(context);
+ const houdiniConfig = getCurrentConfig();
+ const promises = [];
+ const inputs = {};
+ inputs["TestQuery"] = {};
- promises.push(load_TestQuery({
- "variables": inputs["TestQuery"],
- "event": context,
- "blocking": undefined
- }));
+ promises.push(load_TestQuery({
+ "variables": inputs["TestQuery"],
+ "event": context,
+ "blocking": undefined
+ }));
- let result = {};
+ let result = {};
- try {
- result = Object.assign({}, ...(await Promise.all(promises)));
- } catch (err) {
- throw err;
- }
+ try {
+ result = Object.assign({}, ...(await Promise.all(promises)));
+ } catch (err) {
+ throw err;
+ }
- const __houdini__vite__plugin__return__value__ = {
- ...houdini_context.returnValue,
- ...result
- };
+ return {
+ ...context.data,
- return {
- ...context.data,
- ...__houdini__vite__plugin__return__value__
- };
+ ...{
+ ...houdini_context.returnValue,
+ ...result
+ }
+ };
}
β― packages/houdini-svelte/src/plugin/transforms/kit/load.test.ts:1235:30
|
Tests
Process completed with exit code 1.
|
src/routes/handle/test.ts:6:1 βΊ handle fetch remembers server-side variables:
e2e/react/src/routes/handle/test.ts#L21
1) src/routes/handle/test.ts:6:1 βΊ handle fetch remembers server-side variables ββββββββββββββββββ
TimeoutError: page.waitForSelector: Timeout 1000ms exceeded.
Call log:
- waiting for locator('[data-size="51"]') to be visible
19 | // load the larger image and wait for it to resolve
20 | await page.click('#larger')
> 21 | await page.waitForSelector('[data-size="51"]', {
| ^
22 | timeout: 1000,
23 | })
24 |
at /home/runner/work/houdini/houdini/e2e/react/src/routes/handle/test.ts:21:13
|
src/routes/optimistic-keys/test.ts:6:1 βΊ @optimisticKey:
e2e/react/src/routes/optimistic-keys/test.ts#L19
2) src/routes/optimistic-keys/test.ts:6:1 βΊ @optimisticKey βββββββββββββββββββββββββββββββββββββββ
Error: expect(received).toBe(expected) // Object.is equality
Expected: "optimistic value 1"
Received: "https://variety.com/wp-content/uploads/2022/03/Bruce-Willis.jpg?w=1000&h=562&crop=1"
17 |
18 | // the value in the last row should be 'optimistic value 1'
> 19 | expect(await getValue()).toBe('optimistic value 1')
| ^
20 |
21 | // click on the last list in the row
22 | await page.click('[data-test-action="update"]')
at /home/runner/work/houdini/houdini/e2e/react/src/routes/optimistic-keys/test.ts:19:27
|
End-to-End Tests (ubuntu-latest, e2e-react):
node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts#L39
Cannot find module 'csstype'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
|
End-to-End Linter:
node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts#L39
Cannot find module 'csstype'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
|
End-to-End Tests (ubuntu-latest, e2e-kit):
node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts#L39
Cannot find module 'csstype'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
|
Formatting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Formatting
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Formatting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Formatting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Verify Init
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Verify Init
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Verify Init
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Verify Init
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Verify Init
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-svelte)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
End-to-End Tests (ubuntu-latest, e2e-svelte)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-svelte)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-svelte)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-svelte)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-react)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
End-to-End Tests (ubuntu-latest, e2e-react)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-react)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-react)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-react)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Linter
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
End-to-End Linter
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Linter
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Linter
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Linter
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-kit)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
End-to-End Tests (ubuntu-latest, e2e-kit)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-kit)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-kit)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
End-to-End Tests (ubuntu-latest, e2e-kit)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
π Playwright Run Summary
1 passed (5.5s)
|
π Playwright Run Summary
2 flaky
src/routes/handle/test.ts:6:1 βΊ handle fetch remembers server-side variables βββββββββββββββββββ
src/routes/optimistic-keys/test.ts:6:1 βΊ @optimisticKey ββββββββββββββββββββββββββββββββββββββββ
17 passed (16.4s)
|
π Playwright Run Summary
122 passed (1.1m)
|