prod2u_p4_normal_v3_resource_baseline.schema.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "prod2u-p4-normal-v3-resource-baseline-v3",
  4. "type": "object",
  5. "additionalProperties": false,
  6. "required": [
  7. "schema",
  8. "profile",
  9. "runtime_profile",
  10. "device",
  11. "status",
  12. "policy",
  13. "architecture",
  14. "measurement"
  15. ],
  16. "properties": {
  17. "schema": {"const": "prod2u-p4-normal-v3-resource-baseline-v3"},
  18. "profile": {"const": "prod2u_p4_normal_v3"},
  19. "runtime_profile": {"const": "prod2u-p4-normal-actuator-binary921-v3"},
  20. "device": {"const": "EF2L45BG256B"},
  21. "status": {"enum": ["pending_measurement", "measured"]},
  22. "policy": {
  23. "const": {"mode": "advisory_only", "affects_build_status": false}
  24. },
  25. "architecture": {
  26. "type": "object",
  27. "required": ["io", "dsp", "bram9k", "bram32k", "bram128k", "bram256k"],
  28. "properties": {
  29. "io": {"const": 43},
  30. "dsp": {"type": "integer", "minimum": 0},
  31. "bram9k": {"type": "integer", "minimum": 0},
  32. "bram32k": {"type": "integer", "minimum": 0},
  33. "bram128k": {"type": "integer", "minimum": 0},
  34. "bram256k": {"type": "integer", "minimum": 0}
  35. },
  36. "additionalProperties": false
  37. },
  38. "measurement": {
  39. "type": "object",
  40. "required": ["required_clean_builds", "aggregation", "reason"],
  41. "properties": {
  42. "required_clean_builds": {"const": 2},
  43. "aggregation": {"const": "min_max_envelope"},
  44. "reason": {"type": "string", "minLength": 1}
  45. },
  46. "additionalProperties": true
  47. },
  48. "measured_commit": {"type": "string", "pattern": "^[0-9a-f]{8}$"},
  49. "synthesis_input_hash": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
  50. "envelope": {"type": "object"}
  51. },
  52. "allOf": [
  53. {
  54. "if": {"properties": {"status": {"const": "measured"}}},
  55. "then": {"required": ["measured_commit", "synthesis_input_hash", "envelope"]}
  56. }
  57. ]
  58. }