Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions runtime/conformance-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
"state": "supported",
"proven_by": [
"framing-datagram3/request",
"framing-datagram3/request-two-byte-protocol",
"framing-datagram3/request-two-byte-numbers",
"framing-datagram3/request-large-ids",
"framing-datagram3/request-params-msgpack",
Expand Down Expand Up @@ -405,6 +406,24 @@
"name-hash/com.acme.custom-format"
]
},
"sizes-json": {
"state": "unsupported",
"note": "no exact encoded size or upper bound yet: the encoder doesn't report how many bytes a value takes",
"tracking": "comline-typescript#162",
"proven_by": []
},
"sizes-msgpack": {
"state": "unsupported",
"note": "no exact encoded size yet, and msgpack@1 itself doesn't ship",
"tracking": "comline-typescript#162",
"proven_by": []
},
"sizes-packed": {
"state": "unsupported",
"note": "no exact encoded size yet: the encoders don't report how many bytes a value takes",
"tracking": "comline-typescript#162",
"proven_by": []
},
"stream": {
"state": "unsupported",
"note": "no length-prefixed framing or frame limit yet: the transports are message-oriented",
Expand Down
17 changes: 16 additions & 1 deletion runtime/conformance-support.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@
"failing": ["format-json/decode-unknown-variant", "format-json/decode-wider-integer-overflow"]
},
"format-msgpack": { "state": "unsupported", "note": "JSON and packed@1 ship" },
"format-packed": { "state": "supported" }
"format-packed": { "state": "supported" },
"sizes-packed": {
"state": "unsupported",
"note": "no exact encoded size yet: the encoders don't report how many bytes a value takes",
"tracking": "comline-typescript#162"
},
"sizes-msgpack": {
"state": "unsupported",
"note": "no exact encoded size yet, and msgpack@1 itself doesn't ship",
"tracking": "comline-typescript#162"
},
"sizes-json": {
"state": "unsupported",
"note": "no exact encoded size or upper bound yet: the encoder doesn't report how many bytes a value takes",
"tracking": "comline-typescript#162"
}
}
}
2 changes: 1 addition & 1 deletion runtime/core/CORE_REV
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0dffa7a81504df6c6913f8f427f29e4a8a441239
8f8c0cb6fb0bc3a734aafbdbbf187fb9da73e00d
2 changes: 1 addition & 1 deletion runtime/core/SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
10f05e39296578eb32fc345e6e97e94dff30f00dd48b41f5c83757375da10208 comline_runtime_ffi.wasm
f66b1b675e498295bdd198fff1b1c0eafc2d8d01333562cfb6e7d32df5b98521 comline_runtime_ffi.wasm
db8f8870b5a3e05da2c24378379346dd1629de6c459a5ccfaf5dfdda377ee819 comline.mjs
f08ea7adc65102f2d9e9dab5ea82cef6d168373bc088f3886017a40c368315cb comline.d.mts
Binary file modified runtime/core/comline_runtime_ffi.wasm
Binary file not shown.
3 changes: 3 additions & 0 deletions runtime/test/conformance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ const readJson = <T>(url: URL): T => JSON.parse(readFileSync(url, "utf8")) as T;

function run(c: Case): Outcome {
try {
// A `size` case (spec 0.11) states witnesses, not one byte string, and the
// runtime reports no sizes yet (comline-typescript#162).
if ((c.op as string) === "size") throw new NotImplemented("op `size`");
const bytes = unhex(c.bytes);
// An `encode` rejection (spec 0.3) asks only to encode, which must fail.
if (c.expect === "reject" && c.op === "encode") {
Expand Down
2 changes: 1 addition & 1 deletion runtime/test/conformance/SPEC_REV
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3583aaa321aafc74a06e91cc059f4f71e4b30895
69882e92971e243b6b74a539a13b534d95b3abf7
2 changes: 1 addition & 1 deletion runtime/test/conformance/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10
0.11
93 changes: 78 additions & 15 deletions runtime/test/conformance/features.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,80 @@
{
"$schema": "specs/gen/features.schema.json",
"features": [
{ "id": "name-hash", "title": "name hash", "description": "FNV-1a 64 of a wire format or framing name, as the handshake carries it" },
{ "id": "handshake", "title": "handshake", "description": "the fixed 31-byte frame each side sends first: magic, version, IR hash, wire format, framing, capabilities" },
{ "id": "envelope", "title": "envelope", "description": "a response's outcome: ok with a payload, an error ordinal with its body, or a provider fault" },
{ "id": "framing-datagram", "title": "datagram framing", "description": "Comline's own binary framing of requests and responses" },
{ "id": "framing-datagram2", "title": "datagram@2 framing", "description": "the datagram framing with a request/reply kind and a protocol number, for calls in both directions and several protocols on one connection" },
{ "id": "framing-datagram3", "title": "datagram@3 framing", "description": "the datagram framing that addresses a call by its protocol's and function's wire numbers, both varints (calls = by_id); replies as datagram@2" },
{ "id": "handshake-comline2", "title": "comline@2 handshake", "description": "the compatibility-checking handshake: its hello, answer and verdict messages, and its negotiation steps under every parameter, with every refusal reason" },
{ "id": "stream", "title": "stream framing", "description": "frames on a byte stream (TCP, a pipe): each behind a u32 little-endian length prefix, refused over the limit, by default 16 MiB (16777216 bytes) in every runtime" },
{ "id": "framing-jsonrpc", "title": "JSON-RPC framing", "description": "JSON-RPC 2.0 requests and responses, a fault as -32603" },
{ "id": "format-json", "title": "JSON wire format", "description": "values as UTF-8 JSON: a struct as an object" },
{ "id": "format-msgpack", "title": "MessagePack wire format", "description": "values as MessagePack: a struct as an array" },
{ "id": "format-packed", "title": "packed wire format", "description": "values as packed@1: fixed-width fields back to back, varint lengths, no tags" }
]
"$schema": "specs/gen/features.schema.json",
"features": [
{
"id": "name-hash",
"title": "name hash",
"description": "FNV-1a 64 of a wire format or framing name, as the handshake carries it"
},
{
"id": "handshake",
"title": "handshake",
"description": "the fixed 31-byte frame each side sends first: magic, version, IR hash, wire format, framing, capabilities"
},
{
"id": "envelope",
"title": "envelope",
"description": "a response's outcome: ok with a payload, an error ordinal with its body, or a provider fault"
},
{
"id": "framing-datagram",
"title": "datagram framing",
"description": "Comline's own binary framing of requests and responses"
},
{
"id": "framing-datagram2",
"title": "datagram@2 framing",
"description": "the datagram framing with a request/reply kind and a protocol number, for calls in both directions and several protocols on one connection"
},
{
"id": "framing-datagram3",
"title": "datagram@3 framing",
"description": "the datagram framing that addresses a call by its protocol's and function's wire numbers, both varints (calls = by_id); replies as datagram@2"
},
{
"id": "handshake-comline2",
"title": "comline@2 handshake",
"description": "the compatibility-checking handshake: its hello, answer and verdict messages, and its negotiation steps under every parameter, with every refusal reason"
},
{
"id": "stream",
"title": "stream framing",
"description": "frames on a byte stream (TCP, a pipe): each behind a u32 little-endian length prefix, refused over the limit, by default 16 MiB (16777216 bytes) in every runtime"
},
{
"id": "framing-jsonrpc",
"title": "JSON-RPC framing",
"description": "JSON-RPC 2.0 requests and responses, a fault as -32603"
},
{
"id": "format-json",
"title": "JSON wire format",
"description": "values as UTF-8 JSON: a struct as an object"
},
{
"id": "format-msgpack",
"title": "MessagePack wire format",
"description": "values as MessagePack: a struct as an array"
},
{
"id": "format-packed",
"title": "packed wire format",
"description": "values as packed@1: fixed-width fields back to back, varint lengths, no tags"
},
{
"id": "sizes-packed",
"title": "packed sizes",
"description": "how many bytes each kind of value takes in packed@1, each rule proven by values written to exactly its minimum and maximum"
},
{
"id": "sizes-msgpack",
"title": "MessagePack sizes",
"description": "how many bytes each kind of value takes in msgpack@1, each rule proven by values written to exactly its minimum and maximum"
},
{
"id": "sizes-json",
"title": "JSON sizes",
"description": "how many bytes each kind of value takes in json@1, each rule proven by values written to exactly its minimum and maximum, or by a declared upper bound"
}
]
}
7 changes: 7 additions & 0 deletions runtime/test/conformance/profiles/datagram@1.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"framing-datagram/request-params-msgpack",
"framing-datagram/request-params-packed"
]
},
"protocol": {
"value": "unnamed",
"proven_by": [
"framing-datagram/request",
"framing-datagram/request-large-id"
]
}
}
}
6 changes: 6 additions & 0 deletions runtime/test/conformance/profiles/datagram@2.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"framing-datagram2/request-params-msgpack",
"framing-datagram2/request-params-packed"
]
},
"protocol": {
"value": "named",
"proven_by": [
"framing-datagram2/request-two-byte-protocol"
]
}
}
}
6 changes: 6 additions & 0 deletions runtime/test/conformance/profiles/datagram@3.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"framing-datagram3/request-params-msgpack",
"framing-datagram3/request-params-packed"
]
},
"protocol": {
"value": "named",
"proven_by": [
"framing-datagram3/request-two-byte-protocol"
]
}
}
}
Loading
Loading