feat(review): add versioned JSON comparison reports
This commit is contained in:
parent
d8f764c7fe
commit
248f6bcff7
5 changed files with 2312 additions and 43 deletions
78
tests/golden/report-equal.json
Normal file
78
tests/golden/report-equal.json
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"cell_changes": [],
|
||||
"comparison_profile": "klamath-object-v2",
|
||||
"coordinates": {
|
||||
"bounds": "coordinate_envelope",
|
||||
"frame": "cell_local",
|
||||
"unit": "database_unit"
|
||||
},
|
||||
"diagnostics": [],
|
||||
"exit_code": 0,
|
||||
"hierarchy": null,
|
||||
"inputs": {
|
||||
"new": {
|
||||
"path": "after.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
},
|
||||
"old": {
|
||||
"path": "before.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "diff",
|
||||
"layer_legend": [],
|
||||
"layer_name_changes": [],
|
||||
"library_changes": [],
|
||||
"producer": {
|
||||
"name": "klamath",
|
||||
"version": "test"
|
||||
},
|
||||
"report_selection": {
|
||||
"cell": null,
|
||||
"emitted_objects": "0",
|
||||
"filtered_cells": "0",
|
||||
"filtered_objects": "0",
|
||||
"layer": null,
|
||||
"limited_objects": "0",
|
||||
"max_objects": null,
|
||||
"truncated": false
|
||||
},
|
||||
"result": "equal",
|
||||
"schema_version": 1,
|
||||
"scope": {
|
||||
"cell": null,
|
||||
"layer": null,
|
||||
"top": null
|
||||
},
|
||||
"status": "complete",
|
||||
"summary": {
|
||||
"added_objects": "0",
|
||||
"changed_cells": "0",
|
||||
"counts": "exact",
|
||||
"layer_name_changes": "0",
|
||||
"library_field_changes": "0",
|
||||
"removed_objects": "0"
|
||||
}
|
||||
}
|
||||
64
tests/golden/report-failed.json
Normal file
64
tests/golden/report-failed.json
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
"cell_changes": [],
|
||||
"comparison_profile": "klamath-object-v2",
|
||||
"coordinates": {
|
||||
"bounds": "coordinate_envelope",
|
||||
"frame": "cell_local",
|
||||
"unit": "database_unit"
|
||||
},
|
||||
"diagnostics": [
|
||||
{
|
||||
"byte_offset": null,
|
||||
"cell": null,
|
||||
"code": "invalid_input",
|
||||
"layer": null,
|
||||
"message": "truncated record",
|
||||
"severity": "error",
|
||||
"side": "new",
|
||||
"target": null
|
||||
}
|
||||
],
|
||||
"exit_code": 2,
|
||||
"hierarchy": null,
|
||||
"inputs": {
|
||||
"new": {
|
||||
"path": "after.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": null,
|
||||
"units": null
|
||||
},
|
||||
"old": {
|
||||
"path": "before.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": null,
|
||||
"units": null
|
||||
}
|
||||
},
|
||||
"kind": "diff",
|
||||
"layer_legend": [],
|
||||
"layer_name_changes": [],
|
||||
"library_changes": [],
|
||||
"producer": {
|
||||
"name": "klamath",
|
||||
"version": "test"
|
||||
},
|
||||
"report_selection": {
|
||||
"cell": null,
|
||||
"emitted_objects": "0",
|
||||
"filtered_cells": "0",
|
||||
"filtered_objects": "0",
|
||||
"layer": null,
|
||||
"limited_objects": "0",
|
||||
"max_objects": null,
|
||||
"truncated": false
|
||||
},
|
||||
"result": "unknown",
|
||||
"schema_version": 1,
|
||||
"scope": {
|
||||
"cell": null,
|
||||
"layer": null,
|
||||
"top": null
|
||||
},
|
||||
"status": "failed",
|
||||
"summary": null
|
||||
}
|
||||
360
tests/golden/report-geometry.json
Normal file
360
tests/golden/report-geometry.json
Normal file
|
|
@ -0,0 +1,360 @@
|
|||
{
|
||||
"cell_changes": [
|
||||
{
|
||||
"added": [
|
||||
{
|
||||
"bounds": [
|
||||
0,
|
||||
0,
|
||||
10,
|
||||
10
|
||||
],
|
||||
"counts": null,
|
||||
"fields": [
|
||||
{
|
||||
"encoding": "uint16",
|
||||
"name": "layer",
|
||||
"payload_hex": "0x0001",
|
||||
"tag": 3330,
|
||||
"value": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"encoding": "uint16",
|
||||
"name": "datatype",
|
||||
"payload_hex": "0x0000",
|
||||
"tag": 3586,
|
||||
"value": [
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"encoding": "xy",
|
||||
"name": "xy",
|
||||
"payload_hex": "0x0000000000000000000000000000000a0000000a000000000000000000000000",
|
||||
"tag": 4099,
|
||||
"value": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"id": "c0:new:0",
|
||||
"kind": "BOUNDARY",
|
||||
"layer": {
|
||||
"number": 1,
|
||||
"purpose": 0
|
||||
},
|
||||
"origin": null,
|
||||
"properties": [],
|
||||
"source": {
|
||||
"byte_offset": "382",
|
||||
"end_offset": "438",
|
||||
"side": "new"
|
||||
},
|
||||
"tag": 2048,
|
||||
"target": null,
|
||||
"width": null
|
||||
}
|
||||
],
|
||||
"after": {
|
||||
"attributes": [],
|
||||
"byte_offset": "346"
|
||||
},
|
||||
"attributes_changed": false,
|
||||
"before": {
|
||||
"attributes": [],
|
||||
"byte_offset": "346"
|
||||
},
|
||||
"name": "leaf",
|
||||
"removed": [
|
||||
{
|
||||
"bounds": [
|
||||
0,
|
||||
0,
|
||||
10,
|
||||
10
|
||||
],
|
||||
"counts": null,
|
||||
"fields": [
|
||||
{
|
||||
"encoding": "uint16",
|
||||
"name": "layer",
|
||||
"payload_hex": "0x0001",
|
||||
"tag": 3330,
|
||||
"value": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"encoding": "uint16",
|
||||
"name": "datatype",
|
||||
"payload_hex": "0x0000",
|
||||
"tag": 3586,
|
||||
"value": [
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"encoding": "xy",
|
||||
"name": "xy",
|
||||
"payload_hex": "0x0000000000000000000000000000000a0000000a0000000a0000000a000000000000000000000000",
|
||||
"tag": 4099,
|
||||
"value": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"id": "c0:old:0",
|
||||
"kind": "BOUNDARY",
|
||||
"layer": {
|
||||
"number": 1,
|
||||
"purpose": 0
|
||||
},
|
||||
"origin": null,
|
||||
"properties": [],
|
||||
"source": {
|
||||
"byte_offset": "382",
|
||||
"end_offset": "446",
|
||||
"side": "old"
|
||||
},
|
||||
"tag": 2048,
|
||||
"target": null,
|
||||
"width": null
|
||||
}
|
||||
],
|
||||
"replacements": [
|
||||
{
|
||||
"added": "c0:new:0",
|
||||
"explanation": "BOUNDARY modified; coordinate bounds unchanged",
|
||||
"field_changes": [
|
||||
{
|
||||
"after": {
|
||||
"encoding": "xy",
|
||||
"name": "xy",
|
||||
"payload_hex": "0x0000000000000000000000000000000a0000000a000000000000000000000000",
|
||||
"tag": 4099,
|
||||
"value": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
},
|
||||
"before": {
|
||||
"encoding": "xy",
|
||||
"name": "xy",
|
||||
"payload_hex": "0x0000000000000000000000000000000a0000000a0000000a0000000a000000000000000000000000",
|
||||
"tag": 4099,
|
||||
"value": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
10
|
||||
],
|
||||
[
|
||||
10,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
},
|
||||
"tag": 4099
|
||||
}
|
||||
],
|
||||
"match_rule": "unique_kind_layer_bounds",
|
||||
"properties_changed": false,
|
||||
"removed": "c0:old:0"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"comparison_profile": "klamath-object-v2",
|
||||
"coordinates": {
|
||||
"bounds": "coordinate_envelope",
|
||||
"frame": "cell_local",
|
||||
"unit": "database_unit"
|
||||
},
|
||||
"diagnostics": [],
|
||||
"exit_code": 1,
|
||||
"hierarchy": {
|
||||
"edges": [
|
||||
{
|
||||
"after_count": "1",
|
||||
"before_count": "1",
|
||||
"parent": "CHIP",
|
||||
"reference_changed": false,
|
||||
"target": "left"
|
||||
},
|
||||
{
|
||||
"after_count": "1",
|
||||
"before_count": "1",
|
||||
"parent": "CHIP",
|
||||
"reference_changed": false,
|
||||
"target": "right"
|
||||
},
|
||||
{
|
||||
"after_count": "2",
|
||||
"before_count": "2",
|
||||
"parent": "left",
|
||||
"reference_changed": false,
|
||||
"target": "leaf"
|
||||
},
|
||||
{
|
||||
"after_count": "3",
|
||||
"before_count": "3",
|
||||
"parent": "right",
|
||||
"reference_changed": false,
|
||||
"target": "leaf"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"after": "included",
|
||||
"before": "included",
|
||||
"cell": "CHIP",
|
||||
"change": "affected"
|
||||
},
|
||||
{
|
||||
"after": "included",
|
||||
"before": "included",
|
||||
"cell": "leaf",
|
||||
"change": "direct"
|
||||
},
|
||||
{
|
||||
"after": "included",
|
||||
"before": "included",
|
||||
"cell": "left",
|
||||
"change": "affected"
|
||||
},
|
||||
{
|
||||
"after": "included",
|
||||
"before": "included",
|
||||
"cell": "right",
|
||||
"change": "affected"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inputs": {
|
||||
"new": {
|
||||
"path": "after.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
},
|
||||
"old": {
|
||||
"path": "before.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "diff",
|
||||
"layer_legend": [],
|
||||
"layer_name_changes": [],
|
||||
"library_changes": [],
|
||||
"producer": {
|
||||
"name": "klamath",
|
||||
"version": "test"
|
||||
},
|
||||
"report_selection": {
|
||||
"cell": null,
|
||||
"emitted_objects": "2",
|
||||
"filtered_cells": "0",
|
||||
"filtered_objects": "0",
|
||||
"layer": null,
|
||||
"limited_objects": "0",
|
||||
"max_objects": null,
|
||||
"truncated": false
|
||||
},
|
||||
"result": "different",
|
||||
"schema_version": 1,
|
||||
"scope": {
|
||||
"cell": null,
|
||||
"layer": null,
|
||||
"top": null
|
||||
},
|
||||
"status": "complete",
|
||||
"summary": {
|
||||
"added_objects": "1",
|
||||
"changed_cells": "1",
|
||||
"counts": "exact",
|
||||
"layer_name_changes": "0",
|
||||
"library_field_changes": "0",
|
||||
"removed_objects": "1"
|
||||
}
|
||||
}
|
||||
105
tests/golden/report-incomplete.json
Normal file
105
tests/golden/report-incomplete.json
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
{
|
||||
"cell_changes": [],
|
||||
"comparison_profile": "klamath-object-v2",
|
||||
"coordinates": {
|
||||
"bounds": "coordinate_envelope",
|
||||
"frame": "cell_local",
|
||||
"unit": "database_unit"
|
||||
},
|
||||
"diagnostics": [
|
||||
{
|
||||
"byte_offset": "158",
|
||||
"cell": "CHIP",
|
||||
"code": "unsupported_record",
|
||||
"layer": {
|
||||
"number": 1,
|
||||
"purpose": 0
|
||||
},
|
||||
"message": "cell \"CHIP\": at byte 158: unsupported record 0x7f02 in BOUNDARY",
|
||||
"severity": "error",
|
||||
"side": "old",
|
||||
"target": null
|
||||
},
|
||||
{
|
||||
"byte_offset": "158",
|
||||
"cell": "CHIP",
|
||||
"code": "unsupported_record",
|
||||
"layer": {
|
||||
"number": 1,
|
||||
"purpose": 0
|
||||
},
|
||||
"message": "cell \"CHIP\": at byte 158: unsupported record 0x7f02 in BOUNDARY",
|
||||
"severity": "error",
|
||||
"side": "new",
|
||||
"target": null
|
||||
}
|
||||
],
|
||||
"exit_code": 2,
|
||||
"hierarchy": null,
|
||||
"inputs": {
|
||||
"new": {
|
||||
"path": "after.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
},
|
||||
"old": {
|
||||
"path": "before.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "diff",
|
||||
"layer_legend": [],
|
||||
"layer_name_changes": [],
|
||||
"library_changes": [],
|
||||
"producer": {
|
||||
"name": "klamath",
|
||||
"version": "test"
|
||||
},
|
||||
"report_selection": {
|
||||
"cell": null,
|
||||
"emitted_objects": "0",
|
||||
"filtered_cells": "0",
|
||||
"filtered_objects": "0",
|
||||
"layer": null,
|
||||
"limited_objects": "0",
|
||||
"max_objects": null,
|
||||
"truncated": false
|
||||
},
|
||||
"result": "unknown",
|
||||
"schema_version": 1,
|
||||
"scope": {
|
||||
"cell": null,
|
||||
"layer": null,
|
||||
"top": null
|
||||
},
|
||||
"status": "incomplete",
|
||||
"summary": {
|
||||
"added_objects": "0",
|
||||
"changed_cells": "0",
|
||||
"counts": "observed",
|
||||
"layer_name_changes": "0",
|
||||
"library_field_changes": "0",
|
||||
"removed_objects": "0"
|
||||
}
|
||||
}
|
||||
87
tests/golden/report-metadata.json
Normal file
87
tests/golden/report-metadata.json
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"cell_changes": [],
|
||||
"comparison_profile": "klamath-object-v2",
|
||||
"coordinates": {
|
||||
"bounds": "coordinate_envelope",
|
||||
"frame": "cell_local",
|
||||
"unit": "database_unit"
|
||||
},
|
||||
"diagnostics": [],
|
||||
"exit_code": 1,
|
||||
"hierarchy": null,
|
||||
"inputs": {
|
||||
"new": {
|
||||
"path": "after.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
},
|
||||
"old": {
|
||||
"path": "before.gds",
|
||||
"path_encoded_hex": null,
|
||||
"present": true,
|
||||
"units": {
|
||||
"encoding": "real8",
|
||||
"name": "UNITS",
|
||||
"payload_hex": "0x3f04189374bc6a7f3a044b82fa09b5a5",
|
||||
"tag": 773,
|
||||
"value": [
|
||||
0.001,
|
||||
9.999999999999999e-10
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "diff",
|
||||
"layer_legend": [],
|
||||
"layer_name_changes": [
|
||||
{
|
||||
"after": "CORE:WG",
|
||||
"before": "WG",
|
||||
"layer": {
|
||||
"number": 1,
|
||||
"purpose": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"library_changes": [],
|
||||
"producer": {
|
||||
"name": "klamath",
|
||||
"version": "test"
|
||||
},
|
||||
"report_selection": {
|
||||
"cell": null,
|
||||
"emitted_objects": "0",
|
||||
"filtered_cells": "0",
|
||||
"filtered_objects": "0",
|
||||
"layer": null,
|
||||
"limited_objects": "0",
|
||||
"max_objects": null,
|
||||
"truncated": false
|
||||
},
|
||||
"result": "different",
|
||||
"schema_version": 1,
|
||||
"scope": {
|
||||
"cell": null,
|
||||
"layer": null,
|
||||
"top": null
|
||||
},
|
||||
"status": "complete",
|
||||
"summary": {
|
||||
"added_objects": "0",
|
||||
"changed_cells": "0",
|
||||
"counts": "exact",
|
||||
"layer_name_changes": "1",
|
||||
"library_field_changes": "0",
|
||||
"removed_objects": "0"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue