Objectives
Bind an objective to a check, including a Workshop task's recorded evidence at one commit.
An objective names the evidence that proves it in attestedBy. A binding with
kind: check names one check in one repository. cyclone prove reads that
check's recorded evidence for the commit it is proving.
Fields
Every field except taskName is required. An unknown field is rejected.
| Field | What it is |
|---|---|
kind | check. |
provider | Who recorded the check. workshop reads a Workshop task's test evidence. |
repository.forgeInstanceId | The forge instance that holds the repository. |
repository.nativeId | The repository on that forge, such as acme/widgets. |
commit | proved, or the full lowercase id of the commit being proved (40 or 64 hex digits). A short id or a branch name is rejected. |
checkName | The name of the check. |
producerId | The producer that recorded the evidence. |
class | criterion-specific or suite-wide. |
taskName | Required when provider is workshop. One path segment: letters, digits, ., _, ~, and -. |
commit: proved means the commit cyclone prove is judging. A full id proves
only when it is that same commit.
A Workshop task
With provider: workshop and a taskName, prove reads that task's recorded
test evidence. The binding is proven only when every record is for the commit
being proved and a result passed with its marker held.
A record for any other commit stays pending. A failed result at the proved commit fails the binding. A name that was not recorded, or a body that is not test evidence, stays pending. A file in the git checkout is not this record, and neither is test evidence stored for a different commit.
class: suite-wide does not prove the objective by itself. The binding line
still shows the record. class: criterion-specific can prove the objective
from that record.
attestedBy:
- kind: check
provider: workshop
repository:
forgeInstanceId: "11111111-1111-4111-8111-111111111111"
nativeId: acme/widgets
commit: proved
checkName: widget-builds
producerId: workshop
class: criterion-specific
taskName: widget-build