Files
craft-anything/docs/schemas/build-progress.schema.json
Tanish Manku 5870bcebed Keep a check that worked while nothing it looks at changes, so an unchanged build isn't built and started again (R2.9) (#1296)
A check round in which every check worked is kept, and the next check reuses its results while nothing it looked at has changed: the app's files, the reference and capture files, the kind, stack and mode, the plugin checks and the project's folder. So a prompt that changes nothing in app/ no longer builds and starts the app again, and the check after the builder's turn doesn't repeat its own check. The feed says when results stand. A round with any failure is never kept, so Try again always looks again; the kept round is saved in the build progress.
2026-11-09 17:47:23 +08:00

66 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "BuildProgress",
"description": "The app as the builder last left it, and turns since it last changed. Only the rebuild run\nwrites this record. An older project without one has no counted turns.",
"type": "object",
"properties": {
"checked": {
"description": "The last check round in which every check worked, and what it looked at; while that\nstays the same, the round's results stand instead of building and starting the app again.",
"anyOf": [
{
"$ref": "#/$defs/CheckedBuild"
},
{
"type": "null"
}
],
"default": null
},
"fingerprint": {
"type": [
"string",
"null"
],
"default": null
},
"unchanged_turns": {
"type": "integer",
"format": "uint32",
"default": 0,
"minimum": 0
},
"version": {
"type": "integer",
"format": "uint32",
"minimum": 0
}
},
"additionalProperties": false,
"required": [
"version"
],
"$defs": {
"CheckedBuild": {
"description": "A check round kept with the state it judged.",
"type": "object",
"properties": {
"key": {
"description": "A digest of what the round's checks look at, taken after they ran.",
"type": "string"
},
"round": {
"description": "The round in `craft.json`'s `checks` whose results stand.",
"type": "integer",
"format": "uint32",
"minimum": 0
}
},
"additionalProperties": false,
"required": [
"key",
"round"
]
}
}
}