diff --git a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go index ddc60ede8..5543cbcfe 100644 --- a/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go +++ b/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner/contract.go @@ -14,13 +14,13 @@ const Seat = "mesh-pipeline-runner" // Form is the form of the seat's values, events and answers this contract was generated at (design 47 H2 §780): // a reader of a value of another form says "form N, this reader knows M". -const Form = 10 +const Form = 11 // The forms and the digest of the fields this contract was generated from: the generator's compare fails a definition // whose fields changed while its forms did not (design 47 H2 §780). const ( - generatedForms = "10" - 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 MoverEnded=4b35095f6829 MoverRow=b61f41d131a3 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=f58dbdcaf2d4 PipelineStarted=582f8ff3b28d 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=48b8cecc529a StandsAnswer=0afa3693bf3b StartAnswer=ed94ced4513a StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=0dac0e15d017 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" + generatedForms = "11" + 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 MoverEnded=4b35095f6829 MoverRow=b61f41d131a3 Pipeline=2663792125bf PipelineEnded=e3f4c58f93c8 PipelineEndedEvent=cb44007f7173 PipelineEndedPhases=9d1c33ce4cc4 PipelineEndedPhasesBuild=a08d49692a09 PipelineEndedPhasesComposition=a08d49692a09 PipelineEndedPhasesIntegration=a08d49692a09 PipelineEndedPhasesLint=a08d49692a09 PipelineEndedPhasesUnit=a08d49692a09 PipelineEndedPhasesValidate=a08d49692a09 PipelineRow=397a8219a855 PipelineStarted=582f8ff3b28d 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=48b8cecc529a StandsAnswer=0afa3693bf3b StartAnswer=ed94ced4513a StepEndedEvent=799020642c19 StepEvent=64f18c40ed5d StepLogByPipelineValue=ffdde090a101 StepResult=0dac0e15d017 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 ( @@ -73,7 +73,7 @@ func VerbDescription(verb string) string { case VerbShow: return "One pipeline: naming a mover, its steps alone; with no mover, each mover's row (its module, outcome and failed step), never every step of every mover, or the steps of any mover the step and state filters hold; and its step log, with the stores' fill (design 47 H2 §789, H-A-376). Reads only." case VerbList: - return "The pipelines and runs of a module, a branch or a commit, newest first: by default one short row per pipeline, the newest 20 (its key, call, source, revision, start, end, outcome, movers' count, its steps counted per outcome and first failed or could-not-run step with its module and why); the whole pipelines, each record with its movers and steps counted, never its steps (show gives those), only with full and a limit (design 47 H2 H-A-376, H-A-467). Reads only." + return "The pipelines and runs of a module, a branch or a commit, newest first, of every branch when none is named (design 47 H2 H-A-533): by default one short row per pipeline, the newest 20 (its key, branch, call, source, revision, start, end, outcome, movers' count, its steps counted per outcome and first failed or could-not-run step with its module and why); the whole pipelines, each record with its movers and steps counted, never its steps (show gives those), only with full and a limit (design 47 H2 H-A-376, H-A-467). Reads only." case VerbStands: return "What stands still, and since when: each step not ended and each wait held. Reads only." case VerbWhyCarried: @@ -921,6 +921,8 @@ const ( // PipelineRow is one pipeline in list's short form, with its source, revision and its steps counted per outcome (design 47 H2 H-A-376, H-A-467). type PipelineRow struct { + // the watched branch, or the branch of a run on request: a column of the pipelines page, which lists every branch's together (design 47 H2 H-A-533) + Branch string `json:"branch,omitempty"` // the merge call whose source revision the take-in took in Call string `json:"call,omitempty"` Ended *time.Time `json:"ended,omitempty"` 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 33f62f7f3..9da66533b 100644 --- a/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json +++ b/modules/mesh-delivery-contracts/seats/mesh-pipeline-runner/seat.json @@ -178,7 +178,7 @@ }, { "name": "list", - "description": "The pipelines and runs of a module, a branch or a commit, newest first: by default one short row per pipeline, the newest 20 (its key, call, source, revision, start, end, outcome, movers' count, its steps counted per outcome and first failed or could-not-run step with its module and why); the whole pipelines, each record with its movers and steps counted, never its steps (show gives those), only with full and a limit (design 47 H2 H-A-376, H-A-467). Reads only.", + "description": "The pipelines and runs of a module, a branch or a commit, newest first, of every branch when none is named (design 47 H2 H-A-533): by default one short row per pipeline, the newest 20 (its key, branch, call, source, revision, start, end, outcome, movers' count, its steps counted per outcome and first failed or could-not-run step with its module and why); the whole pipelines, each record with its movers and steps counted, never its steps (show gives those), only with full and a limit (design 47 H2 H-A-376, H-A-467). Reads only.", "input": { "type": "object", "properties": { @@ -2296,6 +2296,10 @@ "type": "string", "description": "the pipeline's key" }, + "branch": { + "type": "string", + "description": "the watched branch, or the branch of a run on request: a column of the pipelines page, which lists every branch's together (design 47 H2 H-A-533)" + }, "call": { "type": "string", "description": "the merge call whose source revision the take-in took in" @@ -2378,5 +2382,5 @@ ] } }, - "form": 10 + "form": 11 } 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 28be0c5f7..56cd74691 100644 --- a/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts +++ b/modules/mesh-delivery-contracts/ts/seats/meshpipelinerunner/index.d.ts @@ -430,6 +430,8 @@ export interface PipelineEnded { /** one pipeline in list's short form, with its source, revision and its steps counted per outcome (design 47 H2 H-A-376, H-A-467) */ export interface PipelineRow { + /** the watched branch, or the branch of a run on request: a column of the pipelines page, which lists every branch's together (design 47 H2 H-A-533) */ + "branch"?: string; /** the merge call whose source revision the take-in took in */ "call"?: string; "ended"?: string; diff --git a/modules/mesh-delivery-pipeline/internal/pipeline/read.go b/modules/mesh-delivery-pipeline/internal/pipeline/read.go index 2699dcf43..584ed38b4 100644 --- a/modules/mesh-delivery-pipeline/internal/pipeline/read.go +++ b/modules/mesh-delivery-pipeline/internal/pipeline/read.go @@ -249,7 +249,8 @@ func MoverRows(p seat.Pipeline) []seat.MoverRow { return out } -// List is the pipelines and runs of a module, a branch, a commit or a run, newest started first (§83): by default one +// List is the pipelines and runs of a module, a branch, a commit or a run, newest started first (§83), of every branch when +// none is named, each row naming its branch (design 47 H2 H-A-533): by default one // short row per pipeline, the newest ListRows or Limit (design 47 H2 H-A-376); with Full and a Limit each one's record with // its movers and steps counted, its steps empty (H-A-191). func (r Reads) List(in seat.ListInput) (seat.ListAnswer, error) { @@ -288,7 +289,7 @@ func (r Reads) List(in seat.ListInput) (seat.ListAnswer, error) { for _, p := range out { // A row carries its source, its revision and its steps counted per outcome (design 47 H2 H-A-467): a page's list is // one read of the short form. - rows = append(rows, seat.PipelineRow{Pipeline: p.Pipeline, Call: p.Call, Source: p.Source, Revision: p.Revision, + rows = append(rows, seat.PipelineRow{Pipeline: p.Pipeline, Branch: p.Branch, Call: p.Call, Source: p.Source, Revision: p.Revision, Started: p.Started, Ended: p.Ended, Outcome: p.Outcome, MoverCount: p.MoverCount, Steps: stepCounts(steps[p.Pipeline]), Failed: firstFailed(steps[p.Pipeline])}) } diff --git a/modules/mesh-delivery-pipeline/internal/pipeline/read_test.go b/modules/mesh-delivery-pipeline/internal/pipeline/read_test.go index 93d44a278..430eeb04d 100644 --- a/modules/mesh-delivery-pipeline/internal/pipeline/read_test.go +++ b/modules/mesh-delivery-pipeline/internal/pipeline/read_test.go @@ -157,12 +157,21 @@ func TestReads(t *testing.T) { a, err := r.List(seat.ListInput{Branch: "gone"}) raw, _ := json.Marshal(a.Rows) return fmt.Sprint(string(raw), " ", len(a.Pipelines)), err - }, `[{"call":"call-2","ended":"2026-11-11T10:01:00Z","failed":{"artifact":"zeta:program","module":"zeta","outcome":"could not run","step":"unit","why":"its node lacks node-build-node"},"mover-count":1,"outcome":"failed","pipeline":"gone.2","revision":5,"source":2,"started":"2026-11-11T10:00:00Z","steps":{"could not run":1,"failed":1}}] 0`}, + }, `[{"branch":"gone","call":"call-2","ended":"2026-11-11T10:01:00Z","failed":{"artifact":"zeta:program","module":"zeta","outcome":"could not run","step":"unit","why":"its node lacks node-build-node"},"mover-count":1,"outcome":"failed","pipeline":"gone.2","revision":5,"source":2,"started":"2026-11-11T10:00:00Z","steps":{"could not run":1,"failed":1}}] 0`}, // Design 47 H2 H-A-467: a row counts the steps per outcome, a mover's kept steps (H-A-187) with them. {"list's row counts its steps per outcome", func() (string, error) { a, err := r.List(seat.ListInput{Branch: "next"}) return fmt.Sprint(a.Rows[0].Source, " ", a.Rows[0].Steps), err }, "8 map[passed:2 waiting:1]"}, + // Design 47 H2 H-A-533: naming no branch, list answers every branch's pipelines together, each row naming its branch. + {"list with no branch answers every branch's, newest first, each row naming its branch", func() (string, error) { + a, err := r.List(seat.ListInput{}) + var s []string + for _, row := range a.Rows { + s = append(s, row.Branch+":"+row.Pipeline) + } + return strings.Join(s, " "), err + }, "beta:beta.3.alpha main:main.7.gamma gone:gone.2 main:main.7.alpha next:next.8"}, {"list's full needs a limit", func() (string, error) { _, err := r.List(seat.ListInput{Full: true}) return "", err diff --git a/modules/mesh-delivery-sdk/buildstep/ask_test.go b/modules/mesh-delivery-sdk/buildstep/ask_test.go index 9b1c9b003..1a47f3500 100644 --- a/modules/mesh-delivery-sdk/buildstep/ask_test.go +++ b/modules/mesh-delivery-sdk/buildstep/ask_test.go @@ -561,6 +561,12 @@ func TestPauseCapacityAndComposerKey(t *testing.T) { if !IsPassing(fmt.Errorf("fetch: %w", &Passing{Err: errors.New("s")})) || IsPassing(errors.New("i/o timeout")) { t.Error("a wrapped Passing is a Passing error and a bare error is none") } + // A call a stopping tool runner did not take is passing by its typed fault, wrapped or not; its words alone, and a bare + // "timeout", are not (design 47 H2 H-A-542). + if !IsPassing(kindedFault("stopping")) || !IsPassing(fmt.Errorf("publish: %w", kindedFault("stopping"))) || + IsPassing(kindedFault("away")) || IsPassing(errors.New("the tool runner is stopping")) || IsPassing(errors.New("timeout")) { + t.Error("a stopping tool runner's fault is passing by its kind alone") + } if Ended(Step{State: StepRunning}) || Ended(Step{State: StepAgain}) || !Ended(Step{State: StepPassed}) || !Ended(Step{State: StepFailed}) { t.Error("Ended: running and again are no end") } @@ -710,3 +716,9 @@ func TestAskSubjectBy(t *testing.T) { t.Error("a subject of four tokens after accept parses") } } + +// kindedFault is an error with a typed fault, as mesh-sdk's stdio hands a runtime's answer naming one. +type kindedFault string + +func (k kindedFault) Error() string { return "the call was not taken: " + string(k) } +func (k kindedFault) ErrorKind() string { return string(k) } diff --git a/modules/mesh-delivery-sdk/buildstep/passing.go b/modules/mesh-delivery-sdk/buildstep/passing.go index e926dd457..4aafd08b0 100644 --- a/modules/mesh-delivery-sdk/buildstep/passing.go +++ b/modules/mesh-delivery-sdk/buildstep/passing.go @@ -14,10 +14,21 @@ type Passing struct{ Err error } func (p *Passing) Error() string { return p.Err.Error() } func (p *Passing) Unwrap() error { return p.Err } -// IsPassing says err is, or wraps, a Passing. +// IsPassing says err is, or wraps, a Passing, or a call a stopping tool runner did not take (errorKindStopping): the one +// place every step's fault reading counts stopping as passing, by its kind and never by its words (design 47 H2 H-A-542). func IsPassing(err error) bool { var p *Passing - return errors.As(err, &p) + return errors.As(err, &p) || stopping(err) +} + +// errorKindStopping is the typed fault a stopping tool runner answers each call it does not take with, mesh-sdk stdio's +// ErrorKindStopping (design 47 H2 H-A-542); this package reaches no bus, so it reads the kind by the error's ErrorKind. +const errorKindStopping = "stopping" + +// stopping says err is, or wraps, an error whose typed fault is stopping (ErrorKind() string). +func stopping(err error) bool { + var kinded interface{ ErrorKind() string } + return errors.As(err, &kinded) && kinded.ErrorKind() == errorKindStopping } // passingWords are the words of a network that did not answer, lower-cased: go's and git's (a lookup, a timeout, a refused or diff --git a/modules/mesh-delivery-sdk/steprun/again_test.go b/modules/mesh-delivery-sdk/steprun/again_test.go index cf8e2125f..9e051373a 100644 --- a/modules/mesh-delivery-sdk/steprun/again_test.go +++ b/modules/mesh-delivery-sdk/steprun/again_test.go @@ -3,6 +3,7 @@ package steprun import ( "context" "errors" + "fmt" "strings" "testing" "time" @@ -10,11 +11,20 @@ import ( sdkstep "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/buildstep" ) +// stoppingFault is a call a stopping tool runner did not take, as mesh-sdk's stdio hands it: its typed fault stopping. +type stoppingFault struct{} + +func (stoppingFault) Error() string { + return "registry's publish was not taken: the tool runner is stopping" +} +func (stoppingFault) ErrorKind() string { return "stopping" } + // Design 47 H2 §799: a fetch met by a forge's 401 or a connection fault, and a publish met by no responders or a bundle // that exited, end their run `again` after again-delays' delay, with no seat call; a third run's fault ends the step failed // with the why `fetch: ` or `publish: `. ADR 0664 §1 with the bus's count above the runs that started: an ask // given back twice before its first run (the bus says delivered 3, the step key 1 run began) meets its fault in run 2, -// given again after again-delays' second, 60 s, not 3. +// given again after again-delays' second, 60 s, not 3. A publish met by a stopping tool runner is one too (H-A-542); a +// bare timeout is not. func TestAFetchOrAPublishMetAwayIsATransportFault(t *testing.T) { delay, err := AgainDelays("") if err != nil || delay(1) != 15*time.Second || delay(2) != time.Minute || delay(3) != time.Minute { @@ -37,6 +47,8 @@ func TestAFetchOrAPublishMetAwayIsATransportFault(t *testing.T) { {"a publish met by a bundle that exited", "publish: ", PublishFault(errors.New("the bundle exited"))}, {"a fetch of a commit that is not there", "", gitFailure("fetch", "fatal: unknown revision or path not in the working tree")}, {"a publish refused", "", PublishFault(errors.New("refused: the digest differs"))}, + {"a publish met by a stopping tool runner", "publish: ", PublishFault(fmt.Errorf("asked again: %w", stoppingFault{}))}, + {"a publish met by a bare timeout", "", PublishFault(errors.New("timeout"))}, } { t.Run(tc.name, func(t *testing.T) { if tc.why == "" { diff --git a/modules/mesh-delivery-sdk/steprun/publish.go b/modules/mesh-delivery-sdk/steprun/publish.go index 1d9495003..cbe6af466 100644 --- a/modules/mesh-delivery-sdk/steprun/publish.go +++ b/modules/mesh-delivery-sdk/steprun/publish.go @@ -10,6 +10,7 @@ import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" "os" @@ -81,15 +82,18 @@ func PublishParts(ctx context.Context, call SeatCall, seat string, in reg.Publis return sent, PublishFault(err) } -// PublishFault is err, or, when a publish met no responders or a registry's bundle that exited, a sdkstep.Passing whose -// words open with "publish: " (design 47 H2 §799, ADR 0664 §1): the run ends `again`, with no seat call to learn why, -// and a third run's fault ends the step failed with the why `publish: `. Any other error is returned as it is. +// PublishFault is err, or, when a publish met no responders, a registry's bundle that exited or a stopping tool runner (its +// typed fault stopping, which sdkstep.IsPassing counts, design 47 H2 H-A-542), a sdkstep.Passing whose words open with +// "publish: " (design 47 H2 §799, ADR 0664 §1): the run ends `again`, with no seat call to learn why, and a third run's +// fault ends the step failed with the why `publish: `. Any other error, a bare "timeout" among them, is returned as +// it is. func PublishFault(err error) error { - if err == nil || sdkstep.IsPassing(err) { + var passing *sdkstep.Passing + if err == nil || errors.As(err, &passing) { return err } words := strings.ToLower(err.Error()) - if !strings.Contains(words, "no responders") && !strings.Contains(words, "bundle exited") { + if !sdkstep.IsPassing(err) && !strings.Contains(words, "no responders") && !strings.Contains(words, "bundle exited") { return err } return &sdkstep.Passing{Err: fmt.Errorf("publish: %w", err)} diff --git a/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go b/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go index 51404efa5..b8585a484 100644 --- a/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go +++ b/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go @@ -3,8 +3,8 @@ // to write the operator's answer to an ask that needs no proof of who answered (the view refuses the merge's Approve). `holds` // lists every fingerprint the assigner holds with its node, cause and answer; `hold-release [words]` and // `hold-keep [words]` answer its hold ask, again when the operator changes their mind (issue 1906). -// `pipelines [branch]` and `pipeline [mover]` are the pipelines page (design 47 H2 H-A-467): a branch's newest -// pipelines, one pipeline's mover rows or one mover's steps; with -follow printed again at each change the runner's events say. +// `pipelines [module]` and `pipeline [mover]` are the pipelines page (design 47 H2 H-A-467, H-A-533): every +// branch's newest pipelines (of a module when named), one pipeline by tier and stage, or one mover's steps; with -follow printed again at each change the runner's events say. package main import ( @@ -17,7 +17,6 @@ import ( "text/tabwriter" "time" - seat "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshpipelinerunner" "mesh-delivery-view/internal/view" ) @@ -37,7 +36,7 @@ func run(args []string, socket string, out, errOut io.Writer) int { asJSON := fs.Bool("json", false, "print the rows as JSON") follow := fs.Bool("follow", false, "pipelines and pipeline: print again at each change the runner's events say, until interrupted") next := fs.String("next", "", "pipeline: the cursor of the next page a pipeline's answer named") - limit := fs.Int("limit", view.DefaultPipelinesLimit, "pipelines: the newest this many pipelines of the branch") + limit := fs.Int("limit", view.DefaultPipelinesLimit, "pipelines: the newest this many pipelines") if err := fs.Parse(args); err != nil { return 2 } @@ -67,7 +66,7 @@ func run(args []string, socket string, out, errOut io.Writer) int { } if fs.NArg() > 0 { if fs.Arg(0) != "answer" || fs.NArg() < 3 { - fmt.Fprintln(errOut, "mesh-delivery-cli shows the rows, or answers: mesh-delivery-cli answer