B18 pin-from-newer-entry-or-publisher: a blank pin is the version a newer entry of the build's branch names, else the publisher's build in the build's revision (the published rule); the wait is held in the state waits and VersionAt goes
Builds: design 47 H2 H-A-707 (3), (4), (5)
This commit is contained in:
@@ -191,9 +191,9 @@ func (rv *reservations) TakenOver(ctx context.Context, module, fingerprint strin
|
||||
return rv.r.TakenOver(ctx, module, fingerprint)
|
||||
}
|
||||
|
||||
// VersionAt is the version module's artifact is published at from the source revision of branch (H-A-547 (3), H-A-551).
|
||||
func (rv *reservations) VersionAt(ctx context.Context, module, artifact, branch string, source int64) (string, bool, error) {
|
||||
return rv.r.VersionAt(ctx, module, artifact, branch, source)
|
||||
// PublishedOf answers the seat mesh-builds' published rule for the build's pins (H-A-328, design 47 H2 H-A-707 (4)).
|
||||
func (rv *reservations) PublishedOf(ctx context.Context, module, artifact, fingerprint string) (meshbuilds.PublishedAnswer, error) {
|
||||
return rv.r.PublishedOf(ctx, module, artifact, fingerprint)
|
||||
}
|
||||
|
||||
func (rv *reservations) Reserve(ctx context.Context, module, series string, artifacts []string, src versions.Source) (versions.ReservedVersion, error) {
|
||||
|
||||
@@ -57,7 +57,7 @@ func newWaitsKept(kv *process.AwaitedBucket, say func(context.Context, string, s
|
||||
func (w *waitsKept) body(t build.ToolchainWait, how string) waitBody {
|
||||
b := waitBody{Step: waitStepBuilding, On: t.On(), Part: t.Package, Module: t.Module, Fingerprint: t.Fingerprint, Since: t.Since, Bound: w.bound.String(), How: how,
|
||||
Publisher: t.Publisher, Until: t.Until}
|
||||
if t.Publisher != "" { // a pin wait says the bound of `package-wait-minutes`, which it carries, and the revision it holds
|
||||
if !t.Until.IsZero() { // a pin wait says the bound of `package-wait-minutes`, which it carries, and the revision it holds
|
||||
b.Bound, b.Revision = t.Bound, t.Revision
|
||||
}
|
||||
if t.IsRevision() { // a step ask's wait for its revision: `step` build, its own bound (design 47 H2 H-A-577 (1))
|
||||
|
||||
Reference in New Issue
Block a user