fix(polygon): separate dataset sources from runs

This commit is contained in:
DCCONSTRUCTIONS
2026-07-25 18:40:56 +03:00
parent 2e5c4ba1c5
commit e97573e221
13 changed files with 1036 additions and 658 deletions
+5 -2
View File
@@ -214,7 +214,7 @@ def _qualification_run(root: Path) -> tuple[QualificationRun, str]:
evidence = root / admitted.run_id / "evidence"
failures = evidence / "failures"
failures.mkdir(parents=True)
frame_id = "2022-07-22_flight__0071_0001"
frame_id = "2022-07-22_flight__0071_1658494234334310308"
report = {
"schema_version": "missioncore.goose-ground-qualification-report/v1",
"identity_sha256": SHA_A,
@@ -403,9 +403,12 @@ def test_polygon_api_publishes_all_frame_review_without_paths(tmp_path: Path) ->
"GET",
)(run_id=run.run_id, frame_id=frame_id)
assert review["schema_version"] == "missioncore.polygon-ground-review/v1"
assert review["schema_version"] == "missioncore.polygon-ground-review/v2"
assert review["frame_count"] == 1
assert review["frames"][0]["ground_iou_delta"] == pytest.approx(0.2)
assert review["frames"][0]["dataset_sequence_id"] == "2022-07-22_flight"
assert review["frames"][0]["dataset_frame_number"] == 71
assert review["frames"][0]["sensor_timestamp_ns"] == "1658494234334310308"
assert "relative_path" not in review["frames"][0]
assert frame["schema_version"] == "missioncore.polygon-ground-review-frame/v1"
assert frame["points_xyz_m"] == [[0.0, 0.0, 0.0], [1.0, -1.0, 0.5]]