Skip to content

Enforce maximum payload size #1167

Enforce maximum payload size

Enforce maximum payload size #1167

Triggered via pull request October 24, 2024 06:28
Status Failure
Total duration 1m 2s
Artifacts

ci.yaml

on: pull_request
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 2 warnings
__tests__/serialize.test.ts ► serialize server to jsonschema > serialize entire service schema: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize server to jsonschema > serialize entire service schema 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize basic service: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize basic service 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize service with binary: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize service with binary 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize service with errors: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize service with errors 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize backwards compatible with v1: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize backwards compatible with v1 1` mismatched
build-and-test (ubuntu-latest)
Failed test were found and 'fail-on-error' option is set to true
__tests__/serialize.test.ts > serialize server to jsonschema > serialize entire service schema: __tests__/serialize.test.ts#L17
Error: Snapshot `serialize server to jsonschema > serialize entire service schema 1` mismatched - Expected + Received @@ -78,10 +78,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "n": { @@ -159,10 +175,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -247,10 +279,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -339,10 +387,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -441,10 +505,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string",
__tests__/serialize.test.ts > serialize service to jsonschema > serialize basic service: __tests__/serialize.test.ts#L23
Error: Snapshot `serialize service to jsonschema > serialize basic service 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "n": { @@ -146,10 +162,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -234,10 +266,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -326,10 +374,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -428,10 +492,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -559,10 +639,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "
__tests__/serialize.test.ts > serialize service to jsonschema > serialize service with binary: __tests__/serialize.test.ts#L27
Error: Snapshot `serialize service to jsonschema > serialize service with binary 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "file": { ❯ __tests__/serialize.test.ts:27:49
__tests__/serialize.test.ts > serialize service to jsonschema > serialize service with errors: __tests__/serialize.test.ts#L31
Error: Snapshot `serialize service to jsonschema > serialize service with errors 1` mismatched - Expected + Received @@ -109,10 +109,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "a": { @@ -222,10 +238,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": {}, "type": "object", ❯ __tests__/serialize.test.ts:31:47
__tests__/serialize.test.ts > serialize service to jsonschema > serialize backwards compatible with v1: __tests__/serialize.test.ts#L35
Error: Snapshot `serialize service to jsonschema > serialize backwards compatible with v1 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "input": { "properties": { "n": { @@ -146,10 +162,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -234,10 +266,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -326,10 +374,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -428,10 +492,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -559,10 +639,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { +
build-and-test (ubuntu-latest)
Process completed with exit code 1.
__tests__/serialize.test.ts ► serialize server to jsonschema > serialize entire service schema: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize server to jsonschema > serialize entire service schema 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize basic service: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize basic service 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize service with binary: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize service with binary 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize service with errors: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize service with errors 1` mismatched
__tests__/serialize.test.ts ► serialize service to jsonschema > serialize backwards compatible with v1: ./test-results.xml#L0
Failed test found in: ./test-results.xml Error: Error: Snapshot `serialize service to jsonschema > serialize backwards compatible with v1 1` mismatched
build-and-test (macos-latest)
Failed test were found and 'fail-on-error' option is set to true
__tests__/serialize.test.ts > serialize server to jsonschema > serialize entire service schema: __tests__/serialize.test.ts#L17
Error: Snapshot `serialize server to jsonschema > serialize entire service schema 1` mismatched - Expected + Received @@ -78,10 +78,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "n": { @@ -159,10 +175,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -247,10 +279,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -339,10 +387,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -441,10 +505,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string",
__tests__/serialize.test.ts > serialize service to jsonschema > serialize basic service: __tests__/serialize.test.ts#L23
Error: Snapshot `serialize service to jsonschema > serialize basic service 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "n": { @@ -146,10 +162,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -234,10 +266,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -326,10 +374,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -428,10 +492,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -559,10 +639,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "
__tests__/serialize.test.ts > serialize service to jsonschema > serialize service with binary: __tests__/serialize.test.ts#L27
Error: Snapshot `serialize service to jsonschema > serialize service with binary 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "file": { ❯ __tests__/serialize.test.ts:27:49
__tests__/serialize.test.ts > serialize service to jsonschema > serialize service with errors: __tests__/serialize.test.ts#L31
Error: Snapshot `serialize service to jsonschema > serialize service with errors 1` mismatched - Expected + Received @@ -109,10 +109,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": { "a": { @@ -222,10 +238,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "init": { "properties": {}, "type": "object", ❯ __tests__/serialize.test.ts:31:47
__tests__/serialize.test.ts > serialize service to jsonschema > serialize backwards compatible with v1: __tests__/serialize.test.ts#L35
Error: Snapshot `serialize service to jsonschema > serialize backwards compatible with v1 1` mismatched - Expected + Received @@ -65,10 +65,26 @@ "code", "message", ], "type": "object", }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, ], }, "input": { "properties": { "n": { @@ -146,10 +162,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -234,10 +266,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -326,10 +374,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -428,10 +492,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { + "code": { + "const": "MAX_PAYLOAD_SIZE_EXCEEDED", "type": "string", }, "message": { "type": "string", }, @@ -559,10 +639,26 @@ }, { "properties": { "code": { "const": "CANCEL", + "type": "string", + }, + "message": { + "type": "string", + }, + }, + "required": [ + "code", + "message", + ], + "type": "object", + }, + { + "properties": { +
build-and-test (macos-latest)
Process completed with exit code 1.
build-and-test (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-and-test (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/