An owed act met by the forge away (401 while the store was replaced) ended could not be performed and nothing performed it again. Each act is now a kept call at the module's pace (kept-call-pace-first, kept-call-pace-max) until owed-away-bound (60 minutes), then ends could not be performed naming every try. Before each try the bridge reads the pull request through the seat git's pull: one closed unmerged ends owed.ended not-needed, never performed. The gate's owed event gains record (the delivery record's source revision), kept with the act in performed, and bridge_owed_again by record and why performs again every act of that record that ended could not be performed, written in the hand-act log first. Builds: design 47 H2 §807, §775, §819, H-A-432
30 lines
1.5 KiB
Go
30 lines
1.5 KiB
Go
package groups
|
|
|
|
import (
|
|
"encoding/base64"
|
|
|
|
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg"
|
|
)
|
|
|
|
// The state performed keeps one key per owed act the bridge performed, its outcome and when, and the pull request the
|
|
// act names, nothing more (novox/hq design 47 G §163, H-A-181, H-A-182): the act itself stays in the stream owed of the
|
|
// seat that said it, its one copy, where bridge_owed_again reads it again. The bridge writes it; its tools read it.
|
|
|
|
// PerformedKey is the key of one act in performed: the seat that said it and its id, the id in unpadded base64url, since
|
|
// an id may hold what a key may not (`#`, `/`).
|
|
func PerformedKey(of, id string) string {
|
|
return of + "." + base64.RawURLEncoding.EncodeToString([]byte(id))
|
|
}
|
|
|
|
// Performed is one value of the state performed (§163, H-A-182): the outcome said as owed.ended, with when, the
|
|
// repository and number of the pull request the act names, so bridge_owed reads one pull request's acts and
|
|
// bridge_owed_again finds the act on its pull request's subject of the stream owed (H-A-181), and the delivery record
|
|
// the act is for (its source revision, <branch>.<source>), so bridge_owed_again by record finds the record's acts in
|
|
// this state (design 47 H2 §807, H-A-432 (1)); absent for an act whose owed named none.
|
|
type Performed struct {
|
|
Ended forgemsg.OwedEnded `json:"ended"`
|
|
Repository string `json:"repository,omitempty"`
|
|
Number int `json:"number,omitempty"`
|
|
Record string `json:"record,omitempty"`
|
|
}
|