From 1d0b2d3e072016766be7a756a082c7ed0503c424 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 17:15:05 +0100 Subject: [PATCH] DC6c mover-row-tier: MoverRow gains tier (same form raise of mesh-pipeline-runner) Builds: design 47 H2 H-A-730, H-A-709 (1) --- .../go/seats/meshpipelinerunner/contract.go | 4 +++- .../go/seats/meshpipelinerunner/contract_test.go | 2 +- .../seats/mesh-pipeline-runner/fixtures/verbs.json | 6 ++++-- .../seats/mesh-pipeline-runner/seat.json | 4 ++++ .../ts/seats/meshpipelinerunner/index.d.ts | 2 ++ 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go index e5c1449ad..6bc40ce57 100644 --- a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go +++ b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go @@ -20,7 +20,7 @@ const Form = 13 // whose fields changed while its forms did not (design 47 H2 ยง780). const ( 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=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" + 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=6de094f5329f 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 ( @@ -773,6 +773,8 @@ type MoverRow struct { Module string `json:"module"` // waiting for a mover with no step placed; running while a required step is open; failed once a required step did not pass; superseded for one a newer pipeline took out Outcome string `json:"outcome"` + // the mover's tier in the pipeline's delivery order, from 1, which the delivery view's tiered page groups the movers by (design 47 H2 H-A-730) + Tier int64 `json:"tier,omitempty"` // the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1)) Version string `json:"version,omitempty"` } diff --git a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract_test.go b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract_test.go index 9ca12a204..f8989f25f 100644 --- a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract_test.go +++ b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract_test.go @@ -143,7 +143,7 @@ func TestFixtures(t *testing.T) { decode: func(b []byte) (any, error) { var v PlaceUnfinishedInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "place-unfinished with one key", subject: "", given: "{\"key\":\"main.mesh-sdk\",\"why\":\"the mover passed on its own\"}", wire: "{\"key\":\"main.mesh-sdk\",\"why\":\"the mover passed on its own\"}", decode: func(b []byte) (any, error) { var v PlaceUnfinishedInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, - {name: "show answers a page of movers' rows with their fingerprint and version, moved and capped (H-A-709)", subject: "", given: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\"}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}", wire: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\"}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}", + {name: "show answers a page of movers' rows with their fingerprint and version, moved and capped (H-A-709)", subject: "", given: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"tier\":2,\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\",\"tier\":1}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}", wire: "{\"capped\":true,\"moved\":true,\"movers\":[{\"fingerprint\":\"fp-0123\",\"module\":\"nats\",\"outcome\":\"running\",\"tier\":2,\"version\":\"0.1.9\"},{\"fingerprint\":\"fp-sdk\",\"module\":\"mesh-sdk\",\"outcome\":\"passed\",\"tier\":1}],\"next\":\"cursor-1\",\"pipeline\":{\"branch\":\"main\",\"mover-count\":129,\"movers\":[],\"outcome\":\"running\",\"pipeline\":\"main.3589\",\"revision\":12,\"source\":3589,\"step-count\":516,\"steps\":[],\"v\":1},\"total\":129}", decode: func(b []byte) (any, error) { var v ShowAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, {name: "stands answers a page, capped, with the total and the cursor of the next (H-A-709)", subject: "", given: "{\"capped\":true,\"next\":\"cursor-2\",\"stands\":[{\"artifact\":\"nats:program\",\"branch\":\"main\",\"module\":\"nats\",\"on\":\"build node\",\"pipeline\":\"main.3589\",\"revision\":12,\"since\":\"2026-11-10T10:00:00Z\",\"source\":3589,\"step\":\"unit\",\"v\":1}],\"total\":300}", wire: "{\"capped\":true,\"next\":\"cursor-2\",\"stands\":[{\"artifact\":\"nats:program\",\"branch\":\"main\",\"module\":\"nats\",\"on\":\"build node\",\"pipeline\":\"main.3589\",\"revision\":12,\"since\":\"2026-11-10T10:00:00Z\",\"source\":3589,\"step\":\"unit\",\"v\":1}],\"total\":300}", decode: func(b []byte) (any, error) { var v StandsAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil}, diff --git a/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/fixtures/verbs.json b/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/fixtures/verbs.json index 27026dee0..970199d9b 100644 --- a/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/fixtures/verbs.json +++ b/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/fixtures/verbs.json @@ -379,12 +379,14 @@ "module": "nats", "outcome": "running", "fingerprint": "fp-0123", - "version": "0.1.9" + "version": "0.1.9", + "tier": 2 }, { "module": "mesh-sdk", "outcome": "passed", - "fingerprint": "fp-sdk" + "fingerprint": "fp-sdk", + "tier": 1 } ], "capped": true, diff --git a/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json b/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json index 79e55f56d..6b6f3f8e8 100644 --- a/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json +++ b/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json @@ -2474,6 +2474,10 @@ "type": "string", "description": "the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1))" }, + "tier": { + "type": "integer", + "description": "the mover's tier in the pipeline's delivery order, from 1, which the delivery view's tiered page groups the movers by (design 47 H2 H-A-730)" + }, "outcome": { "type": "string", "enum": [ diff --git a/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts b/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts index 5a9c9ac10..aeb039771 100644 --- a/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts +++ b/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts @@ -308,6 +308,8 @@ export interface MoverRow { "module": string; /** waiting for a mover with no step placed; running while a required step is open; failed once a required step did not pass; superseded for one a newer pipeline took out */ "outcome": "waiting" | "running" | "passed" | "failed" | "superseded"; + /** the mover's tier in the pipeline's delivery order, from 1, which the delivery view's tiered page groups the movers by (design 47 H2 H-A-730) */ + "tier"?: number; /** the version released for the mover in this pipeline, absent until one is (design 47 H2 H-A-709 (1)) */ "version"?: string; }