DC2b place-unfinished answers placed and failed with all; mover-added kept as pipeline-started is
Builds: design 47 H2 H-A-644, H-A-725, H-A-726
This commit is contained in:
@@ -20,7 +20,7 @@ const Form = 13
|
|||||||
// whose fields changed while its forms did not (design 47 H2 §780).
|
// whose fields changed while its forms did not (design 47 H2 §780).
|
||||||
const (
|
const (
|
||||||
generatedForms = "13"
|
generatedForms = "13"
|
||||||
generatedFieldsDigest = "AcceptAnswer=224df0394653 Accepted=d2b011e5090f AskAgainAnswer=224df0394653 CancelAnswer=a0dcc32b3f57 EndAgainAnswer=a0dcc32b3f57 FailedStep=cd7184342136 Fill=7a76c9ceb157 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 KeptAnswer=dfe0d48bc169 KeptByLevelDigestValue=f06c90f7da7f KeptResult=af5f81f189b7 ListAnswer=284210b3c054 LogEntry=b059967b2ae4 Member=8a103baec01f Mover=5db376275bcf MoverAdded=6966283f6909 MoverAddedEvent=b24ae82030ab MoverEnded=4b35095f6829 MoverRow=b7ceefe24722 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=397a8219a855 PipelineStarted=d5fc3ee236c7 PipelineStartedEvent=eaa401af4117 PipelinesByBranchRevisionAgainNValue=693580eed498 PipelinesByBranchRevisionUnfinishedModuleValue=693580eed498 PipelinesByBranchRevisionValue=693580eed498 PipelinesByBranchRunRunValue=693580eed498 PipelinesByBranchSourcePublishedPackageVersionValue=693580eed498 PipelinesByStepsPipelineMoverValue=94de99db7816 PlaceAnswer=a0dcc32b3f57 PlaceUnfinishedAnswer=ed94ced4513a Published=d9af3024dacc QueueByQueueNextValue=765a2918a728 QueueByRunningPipelineValue=ed94ced4513a QueueByWaitingSequenceValue=99605298ae13 RePinnedEvent=92fd04bfa6d3 RerunAnswer=9b7efd0df344 ReviewAnswer=f397b8965179 RoomEvent=5bd4df78ed84 RunAnswer=96bd45aa2e62 RunStarted=b280617410c3 RunStartedEvent=0767a9358fa3 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 ShowAnswer=8609ff359791 StandsAnswer=e05cecdde456 StartAnswer=ed94ced4513a StartedMover=4450a94e6ca3 StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=bdaa8bbfbcab StepStartedEvent=799020642c19 TestCounts=9c1332427159 TestRun=ca5a87f3b6b8 TestRunPackage=a7d30558470d TestRunReader=c9b30cc4d0d0 TestRunsAnswer=7ab81a45ca33 TestRunsDropAnswer=8ee70b35469d ToolchainUsed=43b6d42376fb Wait=21e4ee7a3ef1 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 Waiting=ed94ced4513a WhyCarriedAnswer=8e2fcea6479f Widening=e2790a307466"
|
generatedFieldsDigest = "AcceptAnswer=224df0394653 Accepted=d2b011e5090f AskAgainAnswer=224df0394653 CancelAnswer=a0dcc32b3f57 EndAgainAnswer=a0dcc32b3f57 FailedStep=cd7184342136 Fill=7a76c9ceb157 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 KeptAnswer=dfe0d48bc169 KeptByLevelDigestValue=f06c90f7da7f KeptResult=af5f81f189b7 ListAnswer=284210b3c054 LogEntry=b059967b2ae4 Member=8a103baec01f Mover=5db376275bcf MoverAdded=6966283f6909 MoverAddedEvent=b24ae82030ab MoverEnded=4b35095f6829 MoverRow=b7ceefe24722 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=397a8219a855 PipelineStarted=d5fc3ee236c7 PipelineStartedEvent=eaa401af4117 PipelinesByBranchRevisionAgainNValue=693580eed498 PipelinesByBranchRevisionUnfinishedModuleValue=693580eed498 PipelinesByBranchRevisionValue=693580eed498 PipelinesByBranchRunRunValue=693580eed498 PipelinesByBranchSourcePublishedPackageVersionValue=693580eed498 PipelinesByStepsPipelineMoverValue=94de99db7816 PlaceAnswer=a0dcc32b3f57 PlaceUnfinishedAnswer=69998ea62147 PlaceUnfinishedAnswerFailedItem=d9b89913b9bf PlaceUnfinishedAnswerPlacedItem=9ff9288125e5 Published=d9af3024dacc QueueByQueueNextValue=765a2918a728 QueueByRunningPipelineValue=ed94ced4513a QueueByWaitingSequenceValue=99605298ae13 RePinnedEvent=92fd04bfa6d3 RerunAnswer=9b7efd0df344 ReviewAnswer=f397b8965179 RoomEvent=5bd4df78ed84 RunAnswer=96bd45aa2e62 RunStarted=b280617410c3 RunStartedEvent=0767a9358fa3 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 ShowAnswer=8609ff359791 StandsAnswer=e05cecdde456 StartAnswer=ed94ced4513a StartedMover=4450a94e6ca3 StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=bdaa8bbfbcab StepStartedEvent=799020642c19 TestCounts=9c1332427159 TestRun=ca5a87f3b6b8 TestRunPackage=a7d30558470d TestRunReader=c9b30cc4d0d0 TestRunsAnswer=7ab81a45ca33 TestRunsDropAnswer=8ee70b35469d ToolchainUsed=43b6d42376fb Wait=21e4ee7a3ef1 WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 Waiting=ed94ced4513a WhyCarriedAnswer=8e2fcea6479f Widening=e2790a307466"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -94,7 +94,7 @@ func VerbDescription(verb string) string {
|
|||||||
case VerbPlace:
|
case VerbPlace:
|
||||||
return "A waiting pipeline placed ahead of its turn, its steps asked now; written in the hand-act log (design 47 H §748, H-A-53)."
|
return "A waiting pipeline placed ahead of its turn, its steps asked now; written in the hand-act log (design 47 H §748, H-A-53)."
|
||||||
case VerbPlaceUnfinished:
|
case VerbPlaceUnfinished:
|
||||||
return "A mover kept in the state unfinished put in a pipeline of its own at once, keyed <branch>.<revision>.unfinished.<module>; written in the hand-act log (design 47 H2 §786, H-A-398)."
|
return "A mover kept in the state unfinished put in a pipeline of its own at once, keyed <branch>.<revision>.unfinished.<module>; written in the hand-act log (design 47 H2 §786, H-A-398). With all, each key of unfinished is put in a pipeline of its own; the answer names every pipeline put and every key that could not be (design 47 H2 H-A-725)."
|
||||||
case VerbAskAgain:
|
case VerbAskAgain:
|
||||||
return "A declined approval step asked again (ADR 0666 section 10). Written in the hand-act log."
|
return "A declined approval step asked again (ADR 0666 section 10). Written in the hand-act log."
|
||||||
case VerbTestRuns:
|
case VerbTestRuns:
|
||||||
@@ -1634,14 +1634,36 @@ type PlaceUnfinishedInput struct {
|
|||||||
Why string `json:"why"`
|
Why string `json:"why"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PlaceUnfinishedAnswer is what place-unfinished answers.
|
// PlaceUnfinishedAnswerFailedItem is a type of the contract.
|
||||||
type PlaceUnfinishedAnswer struct {
|
type PlaceUnfinishedAnswerFailedItem struct {
|
||||||
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
|
// the unfinished entry's key
|
||||||
Form int64 `json:"form,omitempty"`
|
Key string `json:"key"`
|
||||||
|
// why it could not be put
|
||||||
|
Words string `json:"words"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PlaceUnfinishedAnswerPlacedItem is a type of the contract.
|
||||||
|
type PlaceUnfinishedAnswerPlacedItem struct {
|
||||||
|
// the unfinished entry's key
|
||||||
|
Key string `json:"key"`
|
||||||
// the key of the pipeline the mover is put in
|
// the key of the pipeline the mover is put in
|
||||||
Pipeline string `json:"pipeline"`
|
Pipeline string `json:"pipeline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PlaceUnfinishedAnswer is what place-unfinished answers.
|
||||||
|
type PlaceUnfinishedAnswer struct {
|
||||||
|
// one item per key that could not be put with all, empty with key; always present (design 47 H2 H-A-725)
|
||||||
|
Failed []PlaceUnfinishedAnswerFailedItem `json:"failed"`
|
||||||
|
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
|
||||||
|
Form int64 `json:"form,omitempty"`
|
||||||
|
// with key, the key of the pipeline the mover is put in; absent with all
|
||||||
|
Pipeline string `json:"pipeline,omitempty"`
|
||||||
|
// one item per key put with all, empty with key; always present (design 47 H2 H-A-725)
|
||||||
|
Placed []PlaceUnfinishedAnswerPlacedItem `json:"placed"`
|
||||||
|
// with all and no key in unfinished, that two empty lists are the answer (design 47 H2 H-A-725)
|
||||||
|
Said string `json:"said,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// AskAgainInput is what ask-again takes.
|
// AskAgainInput is what ask-again takes.
|
||||||
type AskAgainInput struct {
|
type AskAgainInput struct {
|
||||||
// the mover's module, so a pipeline of several movers is never ambiguous; a call naming none on a pipeline of one mover is taken as that mover (design 47 H-A-101)
|
// the mover's module, so a pipeline of several movers is never ambiguous; a call naming none on a pipeline of one mover is taken as that mover (design 47 H-A-101)
|
||||||
|
|||||||
@@ -151,6 +151,12 @@ func TestFixtures(t *testing.T) {
|
|||||||
decode: func(b []byte) (any, error) { var v StandsInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
decode: func(b []byte) (any, error) { var v StandsInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||||
{name: "show asked within a bound (H-A-709)", subject: "", given: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}", wire: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}",
|
{name: "show asked within a bound (H-A-709)", subject: "", given: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}", wire: "{\"bound\":65536,\"next\":\"cursor-1\",\"pipeline\":\"main.3589\"}",
|
||||||
decode: func(b []byte) (any, error) { var v ShowInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
decode: func(b []byte) (any, error) { var v ShowInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||||
|
{name: "place-unfinished with all answers each key put and each that could not be (H-A-725)", subject: "", given: "{\"failed\":[{\"key\":\"main.gitea\",\"words\":\"its entry is not read\"}],\"placed\":[{\"key\":\"main.nats\",\"pipeline\":\"main.3589.unfinished.nats\"}]}", wire: "{\"failed\":[{\"key\":\"main.gitea\",\"words\":\"its entry is not read\"}],\"placed\":[{\"key\":\"main.nats\",\"pipeline\":\"main.3589.unfinished.nats\"}]}",
|
||||||
|
decode: func(b []byte) (any, error) { var v PlaceUnfinishedAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||||
|
{name: "place-unfinished with all over no key answers two empty lists and says so (H-A-725)", subject: "", given: "{\"failed\":[],\"placed\":[],\"said\":\"no key in unfinished\"}", wire: "{\"failed\":[],\"placed\":[],\"said\":\"no key in unfinished\"}",
|
||||||
|
decode: func(b []byte) (any, error) { var v PlaceUnfinishedAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||||
|
{name: "place-unfinished with one key answers its pipeline", subject: "", given: "{\"failed\":[],\"pipeline\":\"main.3589.unfinished.nats\",\"placed\":[]}", wire: "{\"failed\":[],\"pipeline\":\"main.3589.unfinished.nats\",\"placed\":[]}",
|
||||||
|
decode: func(b []byte) (any, error) { var v PlaceUnfinishedAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||||
}
|
}
|
||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
v, err := c.decode([]byte(c.given))
|
v, err := c.decode([]byte(c.given))
|
||||||
|
|||||||
@@ -434,5 +434,41 @@
|
|||||||
"bound": 65536,
|
"bound": 65536,
|
||||||
"next": "cursor-1"
|
"next": "cursor-1"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "place-unfinished with all answers each key put and each that could not be (H-A-725)",
|
||||||
|
"of": "verb:place-unfinished.answer",
|
||||||
|
"given": {
|
||||||
|
"placed": [
|
||||||
|
{
|
||||||
|
"key": "main.nats",
|
||||||
|
"pipeline": "main.3589.unfinished.nats"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failed": [
|
||||||
|
{
|
||||||
|
"key": "main.gitea",
|
||||||
|
"words": "its entry is not read"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "place-unfinished with all over no key answers two empty lists and says so (H-A-725)",
|
||||||
|
"of": "verb:place-unfinished.answer",
|
||||||
|
"given": {
|
||||||
|
"placed": [],
|
||||||
|
"failed": [],
|
||||||
|
"said": "no key in unfinished"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "place-unfinished with one key answers its pipeline",
|
||||||
|
"of": "verb:place-unfinished.answer",
|
||||||
|
"given": {
|
||||||
|
"pipeline": "main.3589.unfinished.nats",
|
||||||
|
"placed": [],
|
||||||
|
"failed": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -639,7 +639,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "place-unfinished",
|
"name": "place-unfinished",
|
||||||
"description": "A mover kept in the state unfinished put in a pipeline of its own at once, keyed <branch>.<revision>.unfinished.<module>; written in the hand-act log (design 47 H2 §786, H-A-398).",
|
"description": "A mover kept in the state unfinished put in a pipeline of its own at once, keyed <branch>.<revision>.unfinished.<module>; written in the hand-act log (design 47 H2 §786, H-A-398). With all, each key of unfinished is put in a pipeline of its own; the answer names every pipeline put and every key that could not be (design 47 H2 H-A-725).",
|
||||||
"input": {
|
"input": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -665,11 +665,58 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "the key of the pipeline the mover is put in"
|
"description": "with key, the key of the pipeline the mover is put in; absent with all"
|
||||||
|
},
|
||||||
|
"placed": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "the unfinished entry's key"
|
||||||
|
},
|
||||||
|
"pipeline": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "the key of the pipeline the mover is put in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"key",
|
||||||
|
"pipeline"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "one item per key put with all, empty with key; always present (design 47 H2 H-A-725)"
|
||||||
|
},
|
||||||
|
"failed": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "the unfinished entry's key"
|
||||||
|
},
|
||||||
|
"words": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "why it could not be put"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"key",
|
||||||
|
"words"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "one item per key that could not be put with all, empty with key; always present (design 47 H2 H-A-725)"
|
||||||
|
},
|
||||||
|
"said": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "with all and no key in unfinished, that two empty lists are the answer (design 47 H2 H-A-725)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"pipeline"
|
"placed",
|
||||||
|
"failed"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"class": "act"
|
"class": "act"
|
||||||
|
|||||||
@@ -998,14 +998,34 @@ export interface PlaceUnfinishedInput {
|
|||||||
"why": string;
|
"why": string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** is what place-unfinished answers. */
|
export interface PlaceUnfinishedAnswerFailedItem {
|
||||||
export interface PlaceUnfinishedAnswer {
|
/** the unfinished entry's key */
|
||||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
"key": string;
|
||||||
"form"?: number;
|
/** why it could not be put */
|
||||||
|
"words": string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PlaceUnfinishedAnswerPlacedItem {
|
||||||
|
/** the unfinished entry's key */
|
||||||
|
"key": string;
|
||||||
/** the key of the pipeline the mover is put in */
|
/** the key of the pipeline the mover is put in */
|
||||||
"pipeline": string;
|
"pipeline": string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** is what place-unfinished answers. */
|
||||||
|
export interface PlaceUnfinishedAnswer {
|
||||||
|
/** one item per key that could not be put with all, empty with key; always present (design 47 H2 H-A-725) */
|
||||||
|
"failed": PlaceUnfinishedAnswerFailedItem[];
|
||||||
|
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||||
|
"form"?: number;
|
||||||
|
/** with key, the key of the pipeline the mover is put in; absent with all */
|
||||||
|
"pipeline"?: string;
|
||||||
|
/** one item per key put with all, empty with key; always present (design 47 H2 H-A-725) */
|
||||||
|
"placed": PlaceUnfinishedAnswerPlacedItem[];
|
||||||
|
/** with all and no key in unfinished, that two empty lists are the answer (design 47 H2 H-A-725) */
|
||||||
|
"said"?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/** is what ask-again takes. */
|
/** is what ask-again takes. */
|
||||||
export interface AskAgainInput {
|
export interface AskAgainInput {
|
||||||
/** the mover's module, so a pipeline of several movers is never ambiguous; a call naming none on a pipeline of one mover is taken as that mover (design 47 H-A-101) */
|
/** the mover's module, so a pipeline of several movers is never ambiguous; a call naming none on a pipeline of one mover is taken as that mover (design 47 H-A-101) */
|
||||||
|
|||||||
Reference in New Issue
Block a user