From 1a780a7775f76b7ee19eabe8034d7551e08aab16 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 23 Nov 2021 23:56:04 -0800 Subject: [PATCH] support setting warnings from frontends Signed-off-by: Tonis Tiigi --- api/services/control/control.pb.go | 525 +++++++++++++++---- api/services/control/control.proto | 7 + client/build.go | 5 + client/build_test.go | 86 ++++ client/graph.go | 7 + client/llb/marshal.go | 7 +- client/llb/state.go | 24 +- client/solve.go | 7 + control/control.go | 7 + control/gateway/gateway.go | 8 + frontend/frontend.go | 1 + frontend/gateway/client/client.go | 1 + frontend/gateway/forwarder/forward.go | 5 + frontend/gateway/gateway.go | 8 + frontend/gateway/grpcclient/client.go | 9 + frontend/gateway/pb/caps.go | 10 + frontend/gateway/pb/gateway.pb.go | 700 +++++++++++++++++++++----- frontend/gateway/pb/gateway.proto | 13 +- solver/llbsolver/bridge.go | 18 + solver/progress.go | 8 + 20 files changed, 1211 insertions(+), 245 deletions(-) diff --git a/api/services/control/control.pb.go b/api/services/control/control.pb.go index 62830fc490dbf..6eb5b49f9472d 100644 --- a/api/services/control/control.pb.go +++ b/api/services/control/control.pb.go @@ -692,12 +692,13 @@ func (m *StatusRequest) GetRef() string { } type StatusResponse struct { - Vertexes []*Vertex `protobuf:"bytes,1,rep,name=vertexes,proto3" json:"vertexes,omitempty"` - Statuses []*VertexStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` - Logs []*VertexLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Vertexes []*Vertex `protobuf:"bytes,1,rep,name=vertexes,proto3" json:"vertexes,omitempty"` + Statuses []*VertexStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` + Logs []*VertexLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"` + Warnings []*VertexWarning `protobuf:"bytes,4,rep,name=warnings,proto3" json:"warnings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StatusResponse) Reset() { *m = StatusResponse{} } @@ -754,6 +755,13 @@ func (m *StatusResponse) GetLogs() []*VertexLog { return nil } +func (m *StatusResponse) GetWarnings() []*VertexWarning { + if m != nil { + return m.Warnings + } + return nil +} + type Vertex struct { Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` Inputs []github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,rep,name=inputs,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"inputs"` @@ -995,6 +1003,62 @@ func (m *VertexLog) GetMsg() []byte { return nil } +type VertexWarning struct { + Vertex github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=vertex,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"vertex"` + Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VertexWarning) Reset() { *m = VertexWarning{} } +func (m *VertexWarning) String() string { return proto.CompactTextString(m) } +func (*VertexWarning) ProtoMessage() {} +func (*VertexWarning) Descriptor() ([]byte, []int) { + return fileDescriptor_0c5120591600887d, []int{13} +} +func (m *VertexWarning) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VertexWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VertexWarning.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VertexWarning) XXX_Merge(src proto.Message) { + xxx_messageInfo_VertexWarning.Merge(m, src) +} +func (m *VertexWarning) XXX_Size() int { + return m.Size() +} +func (m *VertexWarning) XXX_DiscardUnknown() { + xxx_messageInfo_VertexWarning.DiscardUnknown(m) +} + +var xxx_messageInfo_VertexWarning proto.InternalMessageInfo + +func (m *VertexWarning) GetLevel() int64 { + if m != nil { + return m.Level + } + return 0 +} + +func (m *VertexWarning) GetMsg() []byte { + if m != nil { + return m.Msg + } + return nil +} + type BytesMessage struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1006,7 +1070,7 @@ func (m *BytesMessage) Reset() { *m = BytesMessage{} } func (m *BytesMessage) String() string { return proto.CompactTextString(m) } func (*BytesMessage) ProtoMessage() {} func (*BytesMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_0c5120591600887d, []int{13} + return fileDescriptor_0c5120591600887d, []int{14} } func (m *BytesMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1053,7 +1117,7 @@ func (m *ListWorkersRequest) Reset() { *m = ListWorkersRequest{} } func (m *ListWorkersRequest) String() string { return proto.CompactTextString(m) } func (*ListWorkersRequest) ProtoMessage() {} func (*ListWorkersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0c5120591600887d, []int{14} + return fileDescriptor_0c5120591600887d, []int{15} } func (m *ListWorkersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1100,7 +1164,7 @@ func (m *ListWorkersResponse) Reset() { *m = ListWorkersResponse{} } func (m *ListWorkersResponse) String() string { return proto.CompactTextString(m) } func (*ListWorkersResponse) ProtoMessage() {} func (*ListWorkersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0c5120591600887d, []int{15} + return fileDescriptor_0c5120591600887d, []int{16} } func (m *ListWorkersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1156,6 +1220,7 @@ func init() { proto.RegisterType((*Vertex)(nil), "moby.buildkit.v1.Vertex") proto.RegisterType((*VertexStatus)(nil), "moby.buildkit.v1.VertexStatus") proto.RegisterType((*VertexLog)(nil), "moby.buildkit.v1.VertexLog") + proto.RegisterType((*VertexWarning)(nil), "moby.buildkit.v1.VertexWarning") proto.RegisterType((*BytesMessage)(nil), "moby.buildkit.v1.BytesMessage") proto.RegisterType((*ListWorkersRequest)(nil), "moby.buildkit.v1.ListWorkersRequest") proto.RegisterType((*ListWorkersResponse)(nil), "moby.buildkit.v1.ListWorkersResponse") @@ -1164,96 +1229,99 @@ func init() { func init() { proto.RegisterFile("control.proto", fileDescriptor_0c5120591600887d) } var fileDescriptor_0c5120591600887d = []byte{ - // 1413 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xcd, 0x6e, 0x1b, 0xb7, - 0x16, 0xce, 0x48, 0xd6, 0xdf, 0x91, 0x6c, 0x38, 0x4c, 0x6e, 0x30, 0x98, 0x8b, 0x6b, 0xeb, 0x4e, - 0x72, 0x01, 0x21, 0x48, 0x46, 0x8e, 0x6e, 0x53, 0xa4, 0x46, 0x5b, 0x24, 0xb2, 0x52, 0xc4, 0x41, - 0x8c, 0xa6, 0x74, 0xd2, 0x00, 0x59, 0x14, 0x18, 0x49, 0xb4, 0x32, 0xf0, 0x68, 0x38, 0x25, 0x29, - 0x37, 0xea, 0x03, 0x74, 0xdd, 0x5d, 0x1f, 0xa0, 0x8b, 0xae, 0xba, 0xea, 0xa2, 0x4f, 0x50, 0x20, - 0xcb, 0xae, 0xb3, 0x70, 0x8b, 0xec, 0xdb, 0x67, 0x28, 0xf8, 0x33, 0x32, 0x65, 0x49, 0xfe, 0xcb, - 0x4a, 0x3c, 0x9c, 0xf3, 0x7d, 0x3a, 0xbf, 0x24, 0x0f, 0x2c, 0xf7, 0x68, 0x22, 0x18, 0x8d, 0x83, - 0x94, 0x51, 0x41, 0xd1, 0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xff, 0x18, 0x2e, 0x5b, - 0xba, 0x3c, 0xa5, 0x09, 0x27, 0xe8, 0x2e, 0x14, 0x19, 0xe9, 0x51, 0xd6, 0x57, 0xca, 0xd5, 0xd6, - 0x7f, 0x82, 0xe3, 0xb9, 0x09, 0x0c, 0x40, 0x2a, 0x61, 0xa3, 0xec, 0xff, 0x90, 0x87, 0xaa, 0xb5, - 0x8f, 0x56, 0x20, 0xb7, 0xdd, 0x71, 0x9d, 0xba, 0xd3, 0xa8, 0xe0, 0xdc, 0x76, 0x07, 0xb9, 0x50, - 0xda, 0x19, 0x89, 0xb0, 0x1b, 0x13, 0xe3, 0x7b, 0x26, 0xa2, 0xab, 0x50, 0xd8, 0x4e, 0x9e, 0x73, - 0xa2, 0x1c, 0x2f, 0x63, 0x2d, 0x20, 0x04, 0x4b, 0xbb, 0xd1, 0xb7, 0x44, 0xbb, 0x89, 0xd5, 0x1a, - 0x79, 0x50, 0x7c, 0x1a, 0x32, 0x92, 0x08, 0xb7, 0x20, 0x79, 0xdb, 0x39, 0xd7, 0xc1, 0x66, 0x07, - 0xb5, 0xa1, 0xb2, 0xc5, 0x48, 0x28, 0x48, 0xff, 0x81, 0x70, 0x8b, 0x75, 0xa7, 0x51, 0x6d, 0x79, - 0x81, 0x2e, 0x8a, 0x20, 0x2b, 0x8a, 0xe0, 0x59, 0x56, 0x14, 0xed, 0xf2, 0x9b, 0xc3, 0xf5, 0x4b, - 0xdf, 0xff, 0x21, 0x63, 0x37, 0x81, 0xa1, 0xfb, 0x00, 0x4f, 0x42, 0x2e, 0x9e, 0x73, 0x45, 0x52, - 0x3a, 0x95, 0x64, 0x49, 0x11, 0x58, 0x18, 0xb4, 0x06, 0xa0, 0x82, 0xb0, 0x45, 0x47, 0x89, 0x70, - 0xcb, 0xca, 0x76, 0x6b, 0x07, 0xd5, 0xa1, 0xda, 0x21, 0xbc, 0xc7, 0xa2, 0x54, 0xa5, 0xba, 0xa2, - 0xc2, 0x63, 0x6f, 0x49, 0x06, 0x1d, 0xc1, 0x67, 0xe3, 0x94, 0xb8, 0xa0, 0x14, 0xac, 0x1d, 0x99, - 0xcb, 0xdd, 0x57, 0x21, 0x23, 0x7d, 0xb7, 0xaa, 0xc2, 0x65, 0x24, 0x19, 0x5f, 0x1d, 0x09, 0xee, - 0xd6, 0x54, 0x92, 0x33, 0xd1, 0xff, 0xb1, 0x08, 0xb5, 0x5d, 0x59, 0xe3, 0x59, 0x39, 0xac, 0x42, - 0x1e, 0x93, 0x3d, 0x93, 0x1b, 0xb9, 0x44, 0x01, 0x40, 0x87, 0xec, 0x45, 0x49, 0xa4, 0xac, 0xca, - 0x29, 0xc7, 0x57, 0x82, 0xb4, 0x1b, 0x1c, 0xed, 0x62, 0x4b, 0x03, 0x79, 0x50, 0x7e, 0xf8, 0x3a, - 0xa5, 0x4c, 0x96, 0x54, 0x5e, 0xd1, 0x4c, 0x64, 0xf4, 0x02, 0x96, 0xb3, 0xf5, 0x03, 0x21, 0x98, - 0x2c, 0x54, 0x59, 0x46, 0x77, 0x66, 0xcb, 0xc8, 0x36, 0x2a, 0x98, 0xc2, 0x3c, 0x4c, 0x04, 0x1b, - 0xe3, 0x69, 0x1e, 0xe9, 0xe1, 0x2e, 0xe1, 0x5c, 0x5a, 0xa8, 0xd2, 0x8f, 0x33, 0x51, 0x9a, 0xf3, - 0x19, 0xa3, 0x89, 0x20, 0x49, 0x5f, 0xa5, 0xbe, 0x82, 0x27, 0xb2, 0x34, 0x27, 0x5b, 0x6b, 0x73, - 0x4a, 0x67, 0x32, 0x67, 0x0a, 0x63, 0xcc, 0x99, 0xda, 0x43, 0x9b, 0x50, 0xd8, 0x0a, 0x7b, 0xaf, - 0x88, 0xca, 0x72, 0xb5, 0xb5, 0x36, 0x4b, 0xa8, 0x3e, 0x7f, 0xae, 0xd2, 0xca, 0x55, 0xa3, 0x5e, - 0xc2, 0x1a, 0x82, 0xbe, 0x82, 0xda, 0xc3, 0x44, 0x44, 0x22, 0x26, 0x43, 0x95, 0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46, 0x09, 0x61, 0xbc, 0x39, 0xa0, 0xb7, 0x35, - 0x24, 0xe8, 0xa8, 0x1f, 0x6c, 0x18, 0x24, 0x57, 0xa4, 0x8f, 0x5b, 0xd5, 0xf2, 0x17, 0xe3, 0xd2, - 0x0c, 0xb2, 0x92, 0x93, 0x70, 0x48, 0xcc, 0xf5, 0xaa, 0xd6, 0xf2, 0xee, 0xef, 0xc9, 0x52, 0xed, - 0xab, 0x57, 0x51, 0x19, 0x1b, 0x09, 0x6d, 0x42, 0x89, 0x8b, 0x90, 0xc9, 0x63, 0xa3, 0x70, 0xc6, - 0x47, 0x4b, 0x06, 0x40, 0x9f, 0x42, 0xa5, 0x47, 0x87, 0x69, 0x4c, 0x24, 0xba, 0x78, 0x46, 0xf4, - 0x11, 0x44, 0x56, 0x0f, 0x61, 0x8c, 0x32, 0xf5, 0x5c, 0xaa, 0x60, 0x2d, 0xf8, 0x7f, 0xe7, 0xa0, - 0x66, 0x27, 0x6b, 0xe6, 0x39, 0xf8, 0x18, 0x8a, 0x3a, 0xf5, 0xba, 0xea, 0x2e, 0x16, 0x2a, 0xcd, - 0x30, 0x37, 0x54, 0x2e, 0x94, 0x7a, 0x23, 0xa6, 0xde, 0x8a, 0xfa, 0x05, 0x99, 0x89, 0xd2, 0x60, - 0x41, 0x45, 0x18, 0xab, 0x50, 0xe5, 0xb1, 0x16, 0xe4, 0xf3, 0x71, 0x32, 0x31, 0x9c, 0xef, 0xf9, - 0x38, 0x81, 0xd9, 0x69, 0x28, 0xbd, 0x57, 0x1a, 0xca, 0xe7, 0x4e, 0x83, 0xff, 0x9b, 0x03, 0x95, - 0x49, 0x95, 0x5b, 0xd1, 0x75, 0xde, 0x3b, 0xba, 0x53, 0x91, 0xc9, 0x5d, 0x2c, 0x32, 0xd7, 0xa0, - 0xc8, 0x05, 0x23, 0xe1, 0x50, 0x0f, 0x37, 0xd8, 0x48, 0xf2, 0x3c, 0x19, 0xf2, 0x81, 0xca, 0x50, - 0x0d, 0xc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ff, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x51, 0xa3, - 0x94, 0xc5, 0x10, 0x00, 0x00, + // 1459 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4b, 0x6f, 0xdb, 0xc6, + 0x16, 0x0e, 0x25, 0xeb, 0x75, 0x24, 0x1b, 0xce, 0x24, 0x37, 0x20, 0x78, 0x71, 0x2d, 0x5d, 0x26, + 0x17, 0x10, 0x82, 0x84, 0x72, 0x74, 0x9b, 0x22, 0x75, 0x1f, 0x48, 0x64, 0xa5, 0x88, 0x83, 0x18, + 0x4d, 0xc7, 0x49, 0x03, 0x64, 0x51, 0x80, 0x92, 0xc6, 0x0a, 0x61, 0x8a, 0xc3, 0xce, 0x0c, 0x9d, + 0xa8, 0xdb, 0x02, 0x5d, 0x77, 0xd7, 0x1f, 0xd0, 0x45, 0x57, 0x5d, 0xf7, 0x17, 0x14, 0xc8, 0xb2, + 0xeb, 0x2c, 0xdc, 0x22, 0xfb, 0x16, 0xfd, 0x09, 0xc5, 0x3c, 0x28, 0x53, 0x96, 0xe4, 0x57, 0xba, + 0xd2, 0x9c, 0xe1, 0xf9, 0x3e, 0x9d, 0xe7, 0xcc, 0x1c, 0x58, 0xee, 0xd3, 0x48, 0x30, 0x1a, 0x7a, + 0x31, 0xa3, 0x82, 0xa2, 0xd5, 0x11, 0xed, 0x8d, 0xbd, 0x5e, 0x12, 0x84, 0x83, 0xbd, 0x40, 0x78, + 0xfb, 0xb7, 0x9c, 0x9b, 0xc3, 0x40, 0xbc, 0x48, 0x7a, 0x5e, 0x9f, 0x8e, 0x5a, 0x43, 0x3a, 0xa4, + 0x2d, 0xa5, 0xd8, 0x4b, 0x76, 0x95, 0xa4, 0x04, 0xb5, 0xd2, 0x04, 0x4e, 0x7d, 0x48, 0xe9, 0x30, + 0x24, 0x87, 0x5a, 0x22, 0x18, 0x11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d, 0x75, 0x91, 0x0d, 0xa5, + 0xed, 0x44, 0xf8, 0xbd, 0x90, 0x18, 0xdf, 0x53, 0x11, 0x5d, 0x86, 0xc2, 0x56, 0xf4, 0x94, 0x13, + 0xe5, 0x78, 0x19, 0x6b, 0x01, 0x21, 0x58, 0xda, 0x09, 0xbe, 0x26, 0xda, 0x4d, 0xac, 0xd6, 0xc8, + 0x81, 0xe2, 0x63, 0x9f, 0x91, 0x48, 0xd8, 0x05, 0xc9, 0xdb, 0xc9, 0xd9, 0x16, 0x36, 0x3b, 0xa8, + 0x03, 0x95, 0x4d, 0x46, 0x7c, 0x41, 0x06, 0xf7, 0x84, 0x5d, 0x6c, 0x58, 0xcd, 0x6a, 0xdb, 0xf1, + 0x74, 0x51, 0x78, 0x69, 0x51, 0x78, 0x4f, 0xd2, 0xa2, 0xe8, 0x94, 0x5f, 0x1f, 0xd4, 0x2f, 0x7c, + 0xf7, 0x9b, 0x8c, 0xdd, 0x04, 0x86, 0xee, 0x02, 0x3c, 0xf2, 0xb9, 0x78, 0xca, 0x15, 0x49, 0xe9, + 0x44, 0x92, 0x25, 0x45, 0x90, 0xc1, 0xa0, 0x35, 0x00, 0x15, 0x84, 0x4d, 0x9a, 0x44, 0xc2, 0x2e, + 0x2b, 0xdb, 0x33, 0x3b, 0xa8, 0x01, 0xd5, 0x2e, 0xe1, 0x7d, 0x16, 0xc4, 0x2a, 0xd5, 0x15, 0x15, + 0x9e, 0xec, 0x96, 0x64, 0xd0, 0x11, 0x7c, 0x32, 0x8e, 0x89, 0x0d, 0x4a, 0x21, 0xb3, 0x23, 0x73, + 0xb9, 0xf3, 0xc2, 0x67, 0x64, 0x60, 0x57, 0x55, 0xb8, 0x8c, 0x24, 0xe3, 0xab, 0x23, 0xc1, 0xed, + 0x9a, 0x4a, 0x72, 0x2a, 0xba, 0x3f, 0x14, 0xa1, 0xb6, 0x23, 0x6b, 0x3c, 0x2d, 0x87, 0x55, 0xc8, + 0x63, 0xb2, 0x6b, 0x72, 0x23, 0x97, 0xc8, 0x03, 0xe8, 0x92, 0xdd, 0x20, 0x0a, 0x94, 0x55, 0x39, + 0xe5, 0xf8, 0x8a, 0x17, 0xf7, 0xbc, 0xc3, 0x5d, 0x9c, 0xd1, 0x40, 0x0e, 0x94, 0xef, 0xbf, 0x8a, + 0x29, 0x93, 0x25, 0x95, 0x57, 0x34, 0x13, 0x19, 0x3d, 0x83, 0xe5, 0x74, 0x7d, 0x4f, 0x08, 0x26, + 0x0b, 0x55, 0x96, 0xd1, 0xad, 0xd9, 0x32, 0xca, 0x1a, 0xe5, 0x4d, 0x61, 0xee, 0x47, 0x82, 0x8d, + 0xf1, 0x34, 0x8f, 0xf4, 0x70, 0x87, 0x70, 0x2e, 0x2d, 0x54, 0xe9, 0xc7, 0xa9, 0x28, 0xcd, 0xf9, + 0x94, 0xd1, 0x48, 0x90, 0x68, 0xa0, 0x52, 0x5f, 0xc1, 0x13, 0x59, 0x9a, 0x93, 0xae, 0xb5, 0x39, + 0xa5, 0x53, 0x99, 0x33, 0x85, 0x31, 0xe6, 0x4c, 0xed, 0xa1, 0x0d, 0x28, 0x6c, 0xfa, 0xfd, 0x17, + 0x44, 0x65, 0xb9, 0xda, 0x5e, 0x9b, 0x25, 0x54, 0x9f, 0x3f, 0x53, 0x69, 0xe5, 0xaa, 0x51, 0x2f, + 0x60, 0x0d, 0x41, 0x5f, 0x42, 0xed, 0x7e, 0x24, 0x02, 0x11, 0x92, 0x91, 0xca, 0x58, 0x45, 0x66, + 0xac, 0xb3, 0xf1, 0xe6, 0xa0, 0xfe, 0xfe, 0xc2, 0x83, 0x27, 0x11, 0x41, 0xd8, 0x22, 0x19, 0x94, + 0x97, 0xa1, 0xc0, 0x53, 0x7c, 0xe8, 0x39, 0xac, 0xa4, 0xc6, 0x6e, 0x45, 0x71, 0x22, 0xb8, 0x0d, + 0xca, 0xeb, 0xf6, 0x29, 0xbd, 0xd6, 0x20, 0xed, 0xf6, 0x11, 0x26, 0xe7, 0x2e,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 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x3d, 0xbc, 0xbf, 0x88, + 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2255,6 +2323,20 @@ func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if len(m.Warnings) > 0 { + for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Warnings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintControl(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } if len(m.Logs) > 0 { for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { { @@ -2527,6 +2609,52 @@ func (m *VertexLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *VertexWarning) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VertexWarning) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VertexWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintControl(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if m.Level != 0 { + i = encodeVarintControl(dAtA, i, uint64(m.Level)) + i-- + dAtA[i] = 0x10 + } + if len(m.Vertex) > 0 { + i -= len(m.Vertex) + copy(dAtA[i:], m.Vertex) + i = encodeVarintControl(dAtA, i, uint64(len(m.Vertex))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *BytesMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2962,6 +3090,12 @@ func (m *StatusResponse) Size() (n int) { n += 1 + l + sovControl(uint64(l)) } } + if len(m.Warnings) > 0 { + for _, e := range m.Warnings { + l = e.Size() + n += 1 + l + sovControl(uint64(l)) + } + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -3074,6 +3208,29 @@ func (m *VertexLog) Size() (n int) { return n } +func (m *VertexWarning) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Vertex) + if l > 0 { + n += 1 + l + sovControl(uint64(l)) + } + if m.Level != 0 { + n += 1 + sovControl(uint64(m.Level)) + } + l = len(m.Msg) + if l > 0 { + n += 1 + l + sovControl(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *BytesMessage) Size() (n int) { if m == nil { return 0 @@ -5394,6 +5551,40 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowControl + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthControl + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthControl + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Warnings = append(m.Warnings, &VertexWarning{}) + if err := m.Warnings[len(m.Warnings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipControl(dAtA[iNdEx:]) @@ -6146,6 +6337,142 @@ func (m *VertexLog) Unmarshal(dAtA []byte) error { } return nil } +func (m *VertexWarning) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowControl + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VertexWarning: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VertexWarning: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vertex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowControl + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthControl + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthControl + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Vertex = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + m.Level = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowControl + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Level |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowControl + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthControl + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthControl + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...) + if m.Msg == nil { + m.Msg = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipControl(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthControl + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *BytesMessage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/api/services/control/control.proto b/api/services/control/control.proto index 8951d1b94a983..85aa076273d50 100644 --- a/api/services/control/control.proto +++ b/api/services/control/control.proto @@ -104,6 +104,7 @@ message StatusResponse { repeated Vertex vertexes = 1; repeated VertexStatus statuses = 2; repeated VertexLog logs = 3; + repeated VertexWarning warnings = 4; } message Vertex { @@ -134,6 +135,12 @@ message VertexLog { bytes msg = 4; } +message VertexWarning { + string vertex = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; + int64 level = 2; + bytes msg = 3; +} + message BytesMessage { bytes data = 1; } diff --git a/client/build.go b/client/build.go index 4cb91d7aa98ab..f91b543a779b0 100644 --- a/client/build.go +++ b/client/build.go @@ -148,3 +148,8 @@ func (g *gatewayClientForBuild) ExecProcess(ctx context.Context, opts ...grpc.Ca ctx = buildid.AppendToOutgoingContext(ctx, g.buildID) return g.gateway.ExecProcess(ctx, opts...) } + +func (g *gatewayClientForBuild) Warn(ctx context.Context, in *gatewayapi.WarnRequest, opts ...grpc.CallOption) (*gatewayapi.WarnResponse, error) { + ctx = buildid.AppendToOutgoingContext(ctx, g.buildID) + return g.gateway.Warn(ctx, in) +} diff --git a/client/build_test.go b/client/build_test.go index 72f7ef5de2483..4e26b6e3d1009 100644 --- a/client/build_test.go +++ b/client/build_test.go @@ -26,6 +26,7 @@ import ( utilsystem "github.com/moby/buildkit/util/system" "github.com/moby/buildkit/util/testutil/echoserver" "github.com/moby/buildkit/util/testutil/integration" + digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" "github.com/stretchr/testify/require" "golang.org/x/crypto/ssh/agent" @@ -51,6 +52,7 @@ func TestClientGatewayIntegration(t *testing.T) { testClientGatewaySlowCacheExecError, testClientGatewayExecFileActionError, testClientGatewayContainerExtraHosts, + testWarnings, }, integration.WithMirroredImages(integration.OfficialImages("busybox:latest"))) integration.Run(t, []integration.Test{ @@ -151,6 +153,90 @@ func testClientGatewaySolve(t *testing.T, sb integration.Sandbox) { checkAllReleasable(t, c, sb, true) } +func testWarnings(t *testing.T, sb integration.Sandbox) { + requiresLinux(t) + + ctx := sb.Context() + + c, err := New(ctx, sb.Address()) + require.NoError(t, err) + defer c.Close() + + product := "buildkit_test" + + b := func(ctx context.Context, c client.Client) (*client.Result, error) { + st := llb.Scratch().File(llb.Mkfile("/dummy", 0600, []byte("foo"))) + + def, err := st.Marshal(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to marshal state") + } + + dgst, _, _, _, err := st.Output().Vertex(ctx, def.Constraints).Marshal(ctx, def.Constraints) + if err != nil { + return nil, err + } + + r, err := c.Solve(ctx, client.SolveRequest{ + Definition: def.ToPB(), + }) + if err != nil { + return nil, errors.Wrap(err, "failed to solve") + } + + require.NoError(t, c.Warn(ctx, dgst, "this is warning")) + return r, nil + } + + status := make(chan *SolveStatus) + statusDone := make(chan struct{}) + done := make(chan struct{}) + + var warnings []*VertexWarning + vertexes := map[digest.Digest]struct{}{} + + go func() { + defer close(statusDone) + for { + select { + case st, ok := <-status: + if !ok { + return + } + for _, s := range st.Vertexes { + vertexes[s.Digest] = struct{}{} + } + warnings = append(warnings, st.Warnings...) + case <-done: + return + } + } + }() + + _, err = c.Build(ctx, SolveOpt{}, product, b, status) + require.NoError(t, err) + + select { + case <-statusDone: + case <-time.After(10 * time.Second): + close(done) + } + + <-statusDone + + require.Equal(t, 1, len(vertexes)) + require.Equal(t, 1, len(warnings)) + + w := warnings[0] + + require.Equal(t, "this is warning", string(w.Message)) + require.Equal(t, 1, w.Level) + _, ok := vertexes[w.Vertex] + require.True(t, ok) + + checkAllReleasable(t, c, sb, true) +} + func testClientGatewayFailedSolve(t *testing.T, sb integration.Sandbox) { requiresLinux(t) diff --git a/client/graph.go b/client/graph.go index bcfa8b839fba7..95ffee149e0c2 100644 --- a/client/graph.go +++ b/client/graph.go @@ -34,10 +34,17 @@ type VertexLog struct { Timestamp time.Time } +type VertexWarning struct { + Vertex digest.Digest + Level int + Message []byte +} + type SolveStatus struct { Vertexes []*Vertex Statuses []*VertexStatus Logs []*VertexLog + Warnings []*VertexWarning } type SolveResponse struct { diff --git a/client/llb/marshal.go b/client/llb/marshal.go index 282b592b7b1eb..c9c9f5e27103d 100644 --- a/client/llb/marshal.go +++ b/client/llb/marshal.go @@ -12,9 +12,10 @@ import ( // Definition is the LLB definition structure with per-vertex metadata entries // Corresponds to the Definition structure defined in solver/pb.Definition. type Definition struct { - Def [][]byte - Metadata map[digest.Digest]pb.OpMetadata - Source *pb.Source + Def [][]byte + Metadata map[digest.Digest]pb.OpMetadata + Source *pb.Source + Constraints *Constraints } func (def *Definition) ToPB() *pb.Definition { diff --git a/client/llb/state.go b/client/llb/state.go index d4b574e05c56d..3ff9d5051332e 100644 --- a/client/llb/state.go +++ b/client/llb/state.go @@ -29,6 +29,18 @@ type Vertex interface { Inputs() []Output } +func NewConstraints(co ...ConstraintsOpt) *Constraints { + defaultPlatform := platforms.Normalize(platforms.DefaultSpec()) + c := &Constraints{ + Platform: &defaultPlatform, + LocalUniqueID: identity.NewID(), + } + for _, o := range co { + o.SetConstraintsOption(c) + } + return c +} + func NewState(o Output) State { s := State{ out: o, @@ -112,18 +124,12 @@ func (s State) SetMarshalDefaults(co ...ConstraintsOpt) State { } func (s State) Marshal(ctx context.Context, co ...ConstraintsOpt) (*Definition, error) { + c := NewConstraints(append(s.opts, co...)...) def := &Definition{ - Metadata: make(map[digest.Digest]pb.OpMetadata, 0), + Metadata: make(map[digest.Digest]pb.OpMetadata, 0), + Constraints: c, } - defaultPlatform := platforms.Normalize(platforms.DefaultSpec()) - c := &Constraints{ - Platform: &defaultPlatform, - LocalUniqueID: identity.NewID(), - } - for _, o := range append(s.opts, co...) { - o.SetConstraintsOption(c) - } if s.Output() == nil || s.Output().Vertex(ctx, c) == nil { return def, nil } diff --git a/client/solve.go b/client/solve.go index f53fe842f1539..db8cf7ff60583 100644 --- a/client/solve.go +++ b/client/solve.go @@ -292,6 +292,13 @@ func (c *Client) solve(ctx context.Context, def *llb.Definition, runGateway runG Timestamp: v.Timestamp, }) } + for _, v := range resp.Warnings { + s.Warnings = append(s.Warnings, &VertexWarning{ + Vertex: v.Vertex, + Level: int(v.Level), + Message: v.Msg, + }) + } if statusChan != nil { statusChan <- &s } diff --git a/control/control.go b/control/control.go index 5082c8a7c60c2..475def1b7d77d 100644 --- a/control/control.go +++ b/control/control.go @@ -376,6 +376,13 @@ func (c *Controller) Status(req *controlapi.StatusRequest, stream controlapi.Con break } } + for _, v := range ss.Warnings { + sr.Warnings = append(sr.Warnings, &controlapi.VertexWarning{ + Vertex: v.Vertex, + Level: int64(v.Level), + Msg: v.Message, + }) + } if err := stream.SendMsg(&sr); err != nil { return err } diff --git a/control/gateway/gateway.go b/control/gateway/gateway.go index 9b91a08e0f8f1..62c696d6c4485 100644 --- a/control/gateway/gateway.go +++ b/control/gateway/gateway.go @@ -176,3 +176,11 @@ func (gwf *GatewayForwarder) ExecProcess(srv gwapi.LLBBridge_ExecProcessServer) } return fwd.ExecProcess(srv) } + +func (gwf *GatewayForwarder) Warn(ctx context.Context, req *gwapi.WarnRequest) (*gwapi.WarnResponse, error) { + fwd, err := gwf.lookupForwarder(ctx) + if err != nil { + return nil, errors.Wrap(err, "forwarding Warn") + } + return fwd.Warn(ctx, req) +} diff --git a/frontend/frontend.go b/frontend/frontend.go index 091813a097fc1..ad6720257a11e 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -17,6 +17,7 @@ type Frontend interface { type FrontendLLBBridge interface { Solve(ctx context.Context, req SolveRequest, sid string) (*Result, error) ResolveImageConfig(ctx context.Context, ref string, opt llb.ResolveImageConfigOpt) (digest.Digest, []byte, error) + Warn(ctx context.Context, dgst digest.Digest, level int, msg string) error } type SolveRequest = gw.SolveRequest diff --git a/frontend/gateway/client/client.go b/frontend/gateway/client/client.go index 96bfad04dd104..efa0da00ef34e 100644 --- a/frontend/gateway/client/client.go +++ b/frontend/gateway/client/client.go @@ -18,6 +18,7 @@ type Client interface { BuildOpts() BuildOpts Inputs(ctx context.Context) (map[string]llb.State, error) NewContainer(ctx context.Context, req NewContainerRequest) (Container, error) + Warn(ctx context.Context, dgst digest.Digest, msg string) error } // NewContainerRequest encapsulates the requirements for a client to define a diff --git a/frontend/gateway/forwarder/forward.go b/frontend/gateway/forwarder/forward.go index 598adcb0c323a..71777ab5c9b33 100644 --- a/frontend/gateway/forwarder/forward.go +++ b/frontend/gateway/forwarder/forward.go @@ -19,6 +19,7 @@ import ( opspb "github.com/moby/buildkit/solver/pb" "github.com/moby/buildkit/util/apicaps" "github.com/moby/buildkit/worker" + "github.com/opencontainers/go-digest" "github.com/pkg/errors" fstypes "github.com/tonistiigi/fsutil/types" "golang.org/x/sync/errgroup" @@ -216,6 +217,10 @@ func (c *bridgeClient) discard(err error) { } } +func (c *bridgeClient) Warn(ctx context.Context, dgst digest.Digest, msg string) error { + return c.FrontendLLBBridge.Warn(ctx, dgst, 1, msg) +} + func (c *bridgeClient) NewContainer(ctx context.Context, req client.NewContainerRequest) (client.Container, error) { ctrReq := gateway.NewContainerRequest{ ContainerID: identity.NewID(), diff --git a/frontend/gateway/gateway.go b/frontend/gateway/gateway.go index 2a51225acaa1b..3d94348f239aa 100644 --- a/frontend/gateway/gateway.go +++ b/frontend/gateway/gateway.go @@ -993,6 +993,14 @@ func (lbf *llbBridgeForwarder) ReleaseContainer(ctx context.Context, in *pb.Rele return &pb.ReleaseContainerResponse{}, stack.Enable(err) } +func (lbf *llbBridgeForwarder) Warn(ctx context.Context, in *pb.WarnRequest) (*pb.WarnResponse, error) { + err := lbf.llbBridge.Warn(ctx, in.Digest, int(in.Level), string(in.Message)) + if err != nil { + return nil, err + } + return &pb.WarnResponse{}, nil +} + type processIO struct { id string mu sync.Mutex diff --git a/frontend/gateway/grpcclient/client.go b/frontend/gateway/grpcclient/client.go index 82e285979110b..22479256e001f 100644 --- a/frontend/gateway/grpcclient/client.go +++ b/frontend/gateway/grpcclient/client.go @@ -298,6 +298,15 @@ func (c *grpcClient) requestForRef(ref client.Reference) (*pb.SolveRequest, erro return req, nil } +func (c *grpcClient) Warn(ctx context.Context, dgst digest.Digest, msg string) error { + _, err := c.client.Warn(ctx, &pb.WarnRequest{ + Digest: dgst, + Level: 1, + Message: []byte(msg), + }) + return err +} + func (c *grpcClient) Solve(ctx context.Context, creq client.SolveRequest) (res *client.Result, err error) { if creq.Definition != nil { for _, md := range creq.Definition.Metadata { diff --git a/frontend/gateway/pb/caps.go b/frontend/gateway/pb/caps.go index 987ad1a4a4c12..96aad346cb6dc 100644 --- a/frontend/gateway/pb/caps.go +++ b/frontend/gateway/pb/caps.go @@ -51,6 +51,9 @@ const ( // results. This is generally used by the client to return and handle solve // errors. CapGatewayEvaluateSolve apicaps.CapID = "gateway.solve.evaluate" + + // CapGatewayWarnings is the capability to log warnings from frontend + CapGatewayWarnings apicaps.CapID = "gateway.warnings" ) func init() { @@ -180,4 +183,11 @@ func init() { Enabled: true, Status: apicaps.CapStatusExperimental, }) + + Caps.Init(apicaps.Cap{ + ID: CapGatewayWarnings, + Name: "logging warnings", + Enabled: true, + Status: apicaps.CapStatusExperimental, + }) } diff --git a/frontend/gateway/pb/gateway.pb.go b/frontend/gateway/pb/gateway.pb.go index c867caa051ef8..1a06234024790 100644 --- a/frontend/gateway/pb/gateway.pb.go +++ b/frontend/gateway/pb/gateway.pb.go @@ -1330,6 +1330,101 @@ func (m *PongResponse) GetWorkers() []*types1.WorkerRecord { return nil } +type WarnRequest struct { + Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=Digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"Digest"` + Level int64 `protobuf:"varint,2,opt,name=Level,proto3" json:"Level,omitempty"` + Message []byte `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WarnRequest) Reset() { *m = WarnRequest{} } +func (m *WarnRequest) String() string { return proto.CompactTextString(m) } +func (*WarnRequest) ProtoMessage() {} +func (*WarnRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f1a937782ebbded5, []int{22} +} +func (m *WarnRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WarnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WarnRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WarnRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WarnRequest.Merge(m, src) +} +func (m *WarnRequest) XXX_Size() int { + return m.Size() +} +func (m *WarnRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WarnRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WarnRequest proto.InternalMessageInfo + +func (m *WarnRequest) GetLevel() int64 { + if m != nil { + return m.Level + } + return 0 +} + +func (m *WarnRequest) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +type WarnResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WarnResponse) Reset() { *m = WarnResponse{} } +func (m *WarnResponse) String() string { return proto.CompactTextString(m) } +func (*WarnResponse) ProtoMessage() {} +func (*WarnResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f1a937782ebbded5, []int{23} +} +func (m *WarnResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WarnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WarnResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WarnResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WarnResponse.Merge(m, src) +} +func (m *WarnResponse) XXX_Size() int { + return m.Size() +} +func (m *WarnResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WarnResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WarnResponse proto.InternalMessageInfo + type NewContainerRequest struct { ContainerID string `protobuf:"bytes,1,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"` // For mount input values we can use random identifiers passed with ref @@ -1347,7 +1442,7 @@ func (m *NewContainerRequest) Reset() { *m = NewContainerRequest{} } func (m *NewContainerRequest) String() string { return proto.CompactTextString(m) } func (*NewContainerRequest) ProtoMessage() {} func (*NewContainerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{22} + return fileDescriptor_f1a937782ebbded5, []int{24} } func (m *NewContainerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1428,7 +1523,7 @@ func (m *NewContainerResponse) Reset() { *m = NewContainerResponse{} } func (m *NewContainerResponse) String() string { return proto.CompactTextString(m) } func (*NewContainerResponse) ProtoMessage() {} func (*NewContainerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{23} + return fileDescriptor_f1a937782ebbded5, []int{25} } func (m *NewContainerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1468,7 +1563,7 @@ func (m *ReleaseContainerRequest) Reset() { *m = ReleaseContainerRequest func (m *ReleaseContainerRequest) String() string { return proto.CompactTextString(m) } func (*ReleaseContainerRequest) ProtoMessage() {} func (*ReleaseContainerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{24} + return fileDescriptor_f1a937782ebbded5, []int{26} } func (m *ReleaseContainerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1514,7 +1609,7 @@ func (m *ReleaseContainerResponse) Reset() { *m = ReleaseContainerRespon func (m *ReleaseContainerResponse) String() string { return proto.CompactTextString(m) } func (*ReleaseContainerResponse) ProtoMessage() {} func (*ReleaseContainerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{25} + return fileDescriptor_f1a937782ebbded5, []int{27} } func (m *ReleaseContainerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1562,7 +1657,7 @@ func (m *ExecMessage) Reset() { *m = ExecMessage{} } func (m *ExecMessage) String() string { return proto.CompactTextString(m) } func (*ExecMessage) ProtoMessage() {} func (*ExecMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{26} + return fileDescriptor_f1a937782ebbded5, []int{28} } func (m *ExecMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1706,7 +1801,7 @@ func (m *InitMessage) Reset() { *m = InitMessage{} } func (m *InitMessage) String() string { return proto.CompactTextString(m) } func (*InitMessage) ProtoMessage() {} func (*InitMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{27} + return fileDescriptor_f1a937782ebbded5, []int{29} } func (m *InitMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1782,7 +1877,7 @@ func (m *ExitMessage) Reset() { *m = ExitMessage{} } func (m *ExitMessage) String() string { return proto.CompactTextString(m) } func (*ExitMessage) ProtoMessage() {} func (*ExitMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{28} + return fileDescriptor_f1a937782ebbded5, []int{30} } func (m *ExitMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1835,7 +1930,7 @@ func (m *StartedMessage) Reset() { *m = StartedMessage{} } func (m *StartedMessage) String() string { return proto.CompactTextString(m) } func (*StartedMessage) ProtoMessage() {} func (*StartedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{29} + return fileDescriptor_f1a937782ebbded5, []int{31} } func (m *StartedMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1874,7 +1969,7 @@ func (m *DoneMessage) Reset() { *m = DoneMessage{} } func (m *DoneMessage) String() string { return proto.CompactTextString(m) } func (*DoneMessage) ProtoMessage() {} func (*DoneMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{30} + return fileDescriptor_f1a937782ebbded5, []int{32} } func (m *DoneMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1916,7 +2011,7 @@ func (m *FdMessage) Reset() { *m = FdMessage{} } func (m *FdMessage) String() string { return proto.CompactTextString(m) } func (*FdMessage) ProtoMessage() {} func (*FdMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{31} + return fileDescriptor_f1a937782ebbded5, []int{33} } func (m *FdMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1978,7 +2073,7 @@ func (m *ResizeMessage) Reset() { *m = ResizeMessage{} } func (m *ResizeMessage) String() string { return proto.CompactTextString(m) } func (*ResizeMessage) ProtoMessage() {} func (*ResizeMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_f1a937782ebbded5, []int{32} + return fileDescriptor_f1a937782ebbded5, []int{34} } func (m *ResizeMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2051,6 +2146,8 @@ func init() { proto.RegisterType((*StatFileResponse)(nil), "moby.buildkit.v1.frontend.StatFileResponse") proto.RegisterType((*PingRequest)(nil), "moby.buildkit.v1.frontend.PingRequest") proto.RegisterType((*PongResponse)(nil), "moby.buildkit.v1.frontend.PongResponse") + proto.RegisterType((*WarnRequest)(nil), "moby.buildkit.v1.frontend.WarnRequest") + proto.RegisterType((*WarnResponse)(nil), "moby.buildkit.v1.frontend.WarnResponse") proto.RegisterType((*NewContainerRequest)(nil), "moby.buildkit.v1.frontend.NewContainerRequest") proto.RegisterType((*NewContainerResponse)(nil), "moby.buildkit.v1.frontend.NewContainerResponse") proto.RegisterType((*ReleaseContainerRequest)(nil), "moby.buildkit.v1.frontend.ReleaseContainerRequest") @@ -2067,128 +2164,132 @@ func init() { func init() { proto.RegisterFile("gateway.proto", fileDescriptor_f1a937782ebbded5) } var fileDescriptor_f1a937782ebbded5 = []byte{ - // 1932 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x6f, 0x1b, 0xc7, - 0x15, 0xd7, 0x8a, 0x94, 0x48, 0x3e, 0xfe, 0x31, 0x33, 0x4e, 0x53, 0x7a, 0x11, 0x38, 0xcc, 0x22, - 0x55, 0x69, 0x47, 0x59, 0xa6, 0x74, 0x02, 0xb9, 0x72, 0x90, 0xd4, 0x94, 0x28, 0x48, 0x8d, 0x24, - 0xb3, 0xe3, 0x14, 0x06, 0x82, 0x14, 0xe8, 0x8a, 0x3b, 0xa4, 0x17, 0xa6, 0x76, 0xb7, 0xb3, 0x43, - 0xcb, 0x4c, 0x2e, 0xed, 0xad, 0xc7, 0x02, 0x05, 0x7a, 0x2d, 0xd0, 0x4f, 0xd0, 0x4b, 0xaf, 0x3d, - 0xe7, 0xd8, 0x73, 0x0f, 0x46, 0xe1, 0xcf, 0xd0, 0x7b, 0x8b, 0x37, 0x3b, 0x43, 0x2e, 0x29, 0x6a, - 0x49, 0x22, 0x27, 0xce, 0xbc, 0x7d, 0xbf, 0x37, 0xef, 0xdf, 0xbc, 0xf7, 0x86, 0x50, 0x1e, 0x38, - 0x82, 0x5d, 0x39, 0x63, 0x3b, 0xe4, 0x81, 0x08, 0xc8, 0x9d, 0xcb, 0xe0, 0x62, 0x6c, 0x5f, 0x8c, - 0xbc, 0xa1, 0xfb, 0xc2, 0x13, 0xf6, 0xcb, 0x9f, 0xd9, 0x7d, 0x1e, 0xf8, 0x82, 0xf9, 0xae, 0xf9, - 0xd1, 0xc0, 0x13, 0xcf, 0x47, 0x17, 0x76, 0x2f, 0xb8, 0x6c, 0x0e, 0x82, 0x41, 0xd0, 0x94, 0x88, - 0x8b, 0x51, 0x5f, 0xee, 0xe4, 0x46, 0xae, 0x62, 0x49, 0x66, 0x6b, 0x9e, 0x7d, 0x10, 0x04, 0x83, - 0x21, 0x73, 0x42, 0x2f, 0x52, 0xcb, 0x26, 0x0f, 0x7b, 0xcd, 0x48, 0x38, 0x62, 0x14, 0x29, 0xcc, - 0x6e, 0x02, 0x83, 0x8a, 0x34, 0xb5, 0x22, 0xcd, 0x28, 0x18, 0xbe, 0x64, 0xbc, 0x19, 0x5e, 0x34, - 0x83, 0x50, 0x73, 0x37, 0x6f, 0xe4, 0x76, 0x42, 0xaf, 0x29, 0xc6, 0x21, 0x8b, 0x9a, 0x57, 0x01, - 0x7f, 0xc1, 0xb8, 0x02, 0x3c, 0xb8, 0x11, 0x30, 0x12, 0xde, 0x10, 0x51, 0x3d, 0x27, 0x8c, 0xf0, - 0x10, 0xfc, 0x55, 0xa0, 0xa4, 0xd9, 0x22, 0xf0, 0xbd, 0x48, 0x78, 0xde, 0xc0, 0x6b, 0xf6, 0x23, - 0x89, 0x89, 0x4f, 0x41, 0x23, 0x62, 0x76, 0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, 0x32, 0x76, 0x58, 0x2c, 0xc5, 0x7c, 0x08, 0x30, 0x25, 0xae, 0xd5, - 0xfa, 0xbe, 0x81, 0xb2, 0x8a, 0x8a, 0x2a, 0x0f, 0xd5, 0x78, 0x4a, 0x51, 0x60, 0x9c, 0x41, 0xa6, - 0xed, 0x22, 0xb3, 0x66, 0xbb, 0xb0, 0xbe, 0x83, 0x5b, 0x94, 0x39, 0xee, 0x91, 0x37, 0x64, 0x37, - 0x57, 0x45, 0xbc, 0xeb, 0xde, 0x90, 0x75, 0x1d, 0xf1, 0x7c, 0x72, 0xd7, 0xd5, 0x9e, 0xec, 0xc3, - 0x16, 0x75, 0xfc, 0x01, 0x53, 0x47, 0x7f, 0x90, 0x72, 0xb4, 0x3c, 0x04, 0x79, 0x69, 0x0c, 0xb1, - 0x1e, 0x41, 0x61, 0x42, 0xc3, 0x4a, 0xf5, 0xa4, 0xdf, 0x8f, 0x58, 0x5c, 0xf5, 0x32, 0x54, 0xed, - 0x90, 0x7e, 0xca, 0xfc, 0x81, 0x3a, 0x3a, 0x43, 0xd5, 0xce, 0xda, 0xc1, 0x51, 0x45, 0x6b, 0xae, - 0x5c, 0x43, 0x20, 0x7b, 0x88, 0xf3, 0x94, 0x21, 0x2f, 0x98, 0x5c, 0x5b, 0x2e, 0xb6, 0x39, 0xc7, - 0x3d, 0xf4, 0xf8, 0xcd, 0x06, 0xd6, 0x20, 0x77, 0xe8, 0xf1, 0x84, 0x7d, 0x7a, 0x4b, 0x76, 0xb0, - 0x01, 0xf6, 0x86, 0x23, 0x17, 0xad, 0x15, 0x8c, 0xfb, 0xaa, 0xd2, 0xcf, 0x51, 0xad, 0x2f, 0x62, - 0x3f, 0xca, 0x53, 0x94, 0x32, 0xbb, 0x90, 0x63, 0xbe, 0xe0, 0x1e, 0xd3, 0x5d, 0x92, 0xd8, 0xf1, - 0x08, 0x6c, 0xcb, 0x11, 0x58, 0x76, 0x63, 0xaa, 0x59, 0xac, 0x3d, 0xb8, 0x85,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x6b, 0x5c, 0x6c, 0xcb, 0x7f, 0x73, 0x1f, 0xfc, 0x3f, - 0x00, 0x00, 0xff, 0xff, 0xf5, 0x6a, 0xee, 0x8e, 0x1f, 0x17, 0x00, 0x00, + // 1987 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0xd7, 0x8a, 0xa4, 0x48, 0x3e, 0xfe, 0xb0, 0x32, 0xf6, 0x37, 0x5f, 0x7a, 0x11, 0x38, 0xcc, + 0x22, 0x55, 0x69, 0x47, 0x59, 0xa6, 0x74, 0x02, 0xb9, 0x72, 0x90, 0xd4, 0x94, 0x28, 0x48, 0x8d, + 0x24, 0xb3, 0xe3, 0x14, 0x06, 0x82, 0x14, 0xe8, 0x8a, 0x3b, 0xa4, 0x17, 0xa6, 0x76, 0xb7, 0xbb, + 0x43, 0xcb, 0x4c, 0x2e, 0xed, 0xad, 0xbd, 0x15, 0x28, 0xd0, 0x6b, 0x81, 0xfe, 0x05, 0xbd, 0xf4, + 0xda, 0x73, 0x8e, 0x3d, 0x16, 0x3d, 0x04, 0x85, 0xff, 0x86, 0xfe, 0x01, 0xc5, 0x9b, 0x1f, 0xe4, + 0x92, 0xa2, 0x96, 0x24, 0xda, 0x13, 0x67, 0xde, 0xbe, 0xcf, 0x9b, 0xf7, 0x6b, 0xde, 0x7b, 0x43, + 0xa8, 0x0c, 0x1c, 0xce, 0xae, 0x9c, 0xb1, 0x1d, 0x46, 0x01, 0x0f, 0xc8, 0xdd, 0xcb, 0xe0, 0x62, + 0x6c, 0x5f, 0x8c, 0xbc, 0xa1, 0xfb, 0xd2, 0xe3, 0xf6, 0xab, 0x1f, 0xd9, 0xfd, 0x28, 0xf0, 0x39, + 0xf3, 0x5d, 0xf3, 0xc3, 0x81, 0xc7, 0x5f, 0x8c, 0x2e, 0xec, 0x5e, 0x70, 0xd9, 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0xa1, 0x8c, 0x8f, 0x22, 0x9f, 0xb2, + 0x5f, 0x8d, 0x58, 0xcc, 0xc9, 0x8f, 0x75, 0x44, 0x84, 0xfc, 0x65, 0x69, 0x85, 0x8c, 0x54, 0x01, + 0x48, 0x03, 0x72, 0x2c, 0x8a, 0x82, 0x48, 0x69, 0x41, 0x6c, 0x59, 0x39, 0xec, 0x28, 0xec, 0xd9, + 0xcf, 0x44, 0xe5, 0xa0, 0x92, 0xc1, 0xda, 0x86, 0xaa, 0x3e, 0x35, 0x0e, 0x03, 0x3f, 0x66, 0xd6, + 0x2d, 0xa8, 0x9c, 0xf8, 0xe1, 0x88, 0xc7, 0x4a, 0x0f, 0xeb, 0x6f, 0x06, 0x54, 0x35, 0x45, 0xf2, + 0x90, 0xaf, 0xa1, 0x34, 0xf5, 0xb1, 0x76, 0xe6, 0x7e, 0x8a, 0x7e, 0xb3, 0xf8, 0x44, 0x80, 0x94, + 0x6f, 0x93, 0xe2, 0xcc, 0x73, 0xd8, 0x9e, 0x67, 0x58, 0xe0, 0xe9, 0xf7, 0x67, 0x3d, 0x3d, 0x1f, + 0xf8, 0x84, 0x67, 0xff, 0x60, 0xc0, 0x5d, 0xca, 0x44, 0x29, 0x3c, 0xb9, 0x74, 0x06, 0xec, 0x20, + 0xf0, 0xfb, 0xde, 0x40, 0xbb, 0x79, 0x5b, 0x64, 0x95, 0x96, 0x8c, 0x09, 0xd6, 0x80, 0x42, 0x77, + 0xe8, 0xf0, 0x7e, 0x10, 0x5d, 0x2a, 0xe1, 0x65, 0x14, 0xae, 0x69, 0x74, 0xf2, 0x95, 0xd4, 0xa1, + 0xa4, 0x04, 0x9f, 0x05, 0x2e, 0x13, 0x35, 0xa3, 0x48, 0x93, 0x24, 0x52, 0x83, 0xfc, 0x69, 0x30, + 0x38, 0x77, 0x2e, 0x99, 0x28, 0x0e, 0x45, 0xaa, 0xb7, 0xd6, 0xaf, 0x0d, 0x30, 0x17, 0x69, 0xa5, + 0x5c, 0xfc, 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 0xc4, + 0x21, 0xe1, 0xa4, 0x4b, 0x13, 0x5f, 0xad, 0xb7, 0xe1, 0xce, 0xac, 0x47, 0x94, 0xab, 0x1e, 0xc3, + 0xff, 0x53, 0x36, 0x64, 0x4e, 0xcc, 0xd6, 0xf7, 0x96, 0x65, 0x42, 0xed, 0x3a, 0x58, 0x09, 0xfe, + 0x6b, 0x06, 0x4a, 0x9d, 0xd7, 0xac, 0xa7, 0x62, 0x44, 0xde, 0x81, 0x62, 0x37, 0x0a, 0x7a, 0x2c, + 0x8e, 0x27, 0xb2, 0xa6, 0x04, 0xf2, 0x29, 0x64, 0x4f, 0x7c, 0x8f, 0xab, 0xce, 0xb3, 0x93, 0x3a, + 0x07, 0x7b, 0x5c, 0xc9, 0xc4, 0x37, 0x20, 0x6e, 0xc9, 0x3e, 0x64, 0xf1, 0xde, 0xae, 0x52, 0x3b, + 0xdd, 0x04, 0x16, 0x31, 0xa4, 0x2d, 0x5e, 0xcd, 0xde, 0x37, 0x4c, 0x45, 0xa9, 0x91, 0x5e, 0xf4, + 0xbd, 0x6f, 0xd8, 0x54, 0x82, 0x42, 0x92, 0x0e, 0xe4, 0x9f, 0x71, 0x27, 0xc2, 0xd1, 0x49, 0x46, + 0xef, 0x7e, 0xda, 0x6c, 0x20, 0x39, 0xa7, 0x52, 0x34, 0x16, 0x9d, 0xd0, 0x79, 0xed, 0x71, 0x31, + 0x18, 0xa5, 0x3b, 0x01, 0xd9, 0x12, 0x86, 0xe0, 0x16, 0xd1, 0x87, 0x81, 0xcf, 0x6a, 0xf9, 0xa5, + 0x68, 0x64, 0x4b, 0xa0, 0x71, 0xdb, 0xce, 0x43, 0x4e, 0x0c, 0x07, 0xd6, 0x9f, 0x0c, 0x28, 0x25, + 0x7c, 0xbc, 0xc2, 0x9d, 0x79, 0x07, 0xb2, 0xf8, 0x68, 0x56, 0xb1, 0x2b, 0x88, 0x1b, 0xc3, 0xb8, + 0x43, 0x05, 0x15, 0xab, 0xef, 0x91, 0x2b,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// Reference imports to suppress errors if they are not otherwise used. @@ -2220,6 +2321,8 @@ type LLBBridgeClient interface { NewContainer(ctx context.Context, in *NewContainerRequest, opts ...grpc.CallOption) (*NewContainerResponse, error) ReleaseContainer(ctx context.Context, in *ReleaseContainerRequest, opts ...grpc.CallOption) (*ReleaseContainerResponse, error) ExecProcess(ctx context.Context, opts ...grpc.CallOption) (LLBBridge_ExecProcessClient, error) + // apicaps:CapGatewayWarnings + Warn(ctx context.Context, in *WarnRequest, opts ...grpc.CallOption) (*WarnResponse, error) } type lLBBridgeClient struct { @@ -2351,6 +2454,15 @@ func (x *lLBBridgeExecProcessClient) Recv() (*ExecMessage, error) { return m, nil } +func (c *lLBBridgeClient) Warn(ctx context.Context, in *WarnRequest, opts ...grpc.CallOption) (*WarnResponse, error) { + out := new(WarnResponse) + err := c.cc.Invoke(ctx, "/moby.buildkit.v1.frontend.LLBBridge/Warn", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // LLBBridgeServer is the server API for LLBBridge service. type LLBBridgeServer interface { // apicaps:CapResolveImage @@ -2370,6 +2482,8 @@ type LLBBridgeServer interface { NewContainer(context.Context, *NewContainerRequest) (*NewContainerResponse, error) ReleaseContainer(context.Context, *ReleaseContainerRequest) (*ReleaseContainerResponse, error) ExecProcess(LLBBridge_ExecProcessServer) error + // apicaps:CapGatewayWarnings + Warn(context.Context, *WarnRequest) (*WarnResponse, error) } // UnimplementedLLBBridgeServer can be embedded to have forward compatible implementations. @@ -2409,6 +2523,9 @@ func (*UnimplementedLLBBridgeServer) ReleaseContainer(ctx context.Context, req * func (*UnimplementedLLBBridgeServer) ExecProcess(srv LLBBridge_ExecProcessServer) error { return status.Errorf(codes.Unimplemented, "method ExecProcess not implemented") } +func (*UnimplementedLLBBridgeServer) Warn(ctx context.Context, req *WarnRequest) (*WarnResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Warn not implemented") +} func RegisterLLBBridgeServer(s *grpc.Server, srv LLBBridgeServer) { s.RegisterService(&_LLBBridge_serviceDesc, srv) @@ -2620,6 +2737,24 @@ func (x *lLBBridgeExecProcessServer) Recv() (*ExecMessage, error) { return m, nil } +func _LLBBridge_Warn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WarnRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LLBBridgeServer).Warn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/moby.buildkit.v1.frontend.LLBBridge/Warn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LLBBridgeServer).Warn(ctx, req.(*WarnRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _LLBBridge_serviceDesc = grpc.ServiceDesc{ ServiceName: "moby.buildkit.v1.frontend.LLBBridge", HandlerType: (*LLBBridgeServer)(nil), @@ -2664,6 +2799,10 @@ var _LLBBridge_serviceDesc = grpc.ServiceDesc{ MethodName: "ReleaseContainer", Handler: _LLBBridge_ReleaseContainer_Handler, }, + { + MethodName: "Warn", + Handler: _LLBBridge_Warn_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -3863,6 +4002,79 @@ func (m *PongResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *WarnRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WarnRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WarnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGateway(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x1a + } + if m.Level != 0 { + i = encodeVarintGateway(dAtA, i, uint64(m.Level)) + i-- + dAtA[i] = 0x10 + } + if len(m.Digest) > 0 { + i -= len(m.Digest) + copy(dAtA[i:], m.Digest) + i = encodeVarintGateway(dAtA, i, uint64(len(m.Digest))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WarnResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WarnResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WarnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + func (m *NewContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5031,6 +5243,41 @@ func (m *PongResponse) Size() (n int) { return n } +func (m *WarnRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Digest) + if l > 0 { + n += 1 + l + sovGateway(uint64(l)) + } + if m.Level != 0 { + n += 1 + sovGateway(uint64(m.Level)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sovGateway(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *WarnResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *NewContainerRequest) Size() (n int) { if m == nil { return 0 @@ -8668,6 +8915,193 @@ func (m *PongResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *WarnRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGateway + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WarnRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WarnRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGateway + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGateway + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGateway + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + m.Level = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGateway + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Level |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGateway + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGateway + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGateway + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) + if m.Message == nil { + m.Message = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGateway(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGateway + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WarnResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGateway + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WarnResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WarnResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGateway(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGateway + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *NewContainerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/frontend/gateway/pb/gateway.proto b/frontend/gateway/pb/gateway.proto index b2b1329839d72..8e46d812e0769 100644 --- a/frontend/gateway/pb/gateway.proto +++ b/frontend/gateway/pb/gateway.proto @@ -31,7 +31,10 @@ service LLBBridge { rpc NewContainer(NewContainerRequest) returns (NewContainerResponse); rpc ReleaseContainer(ReleaseContainerRequest) returns (ReleaseContainerResponse); - rpc ExecProcess(stream ExecMessage) returns (stream ExecMessage); + rpc ExecProcess(stream ExecMessage) returns (stream ExecMessage); + + // apicaps:CapGatewayWarnings + rpc Warn(WarnRequest) returns (WarnResponse); } message Result { @@ -169,6 +172,14 @@ message PongResponse{ repeated moby.buildkit.v1.types.WorkerRecord Workers = 3; } +message WarnRequest { + string Digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false]; + int64 Level = 2; + bytes Message = 3; +} + +message WarnResponse{} + message NewContainerRequest { string ContainerID = 1; // For mount input values we can use random identifiers passed with ref diff --git a/solver/llbsolver/bridge.go b/solver/llbsolver/bridge.go index 26ca7d2ca0960..87ac7e62e0eeb 100644 --- a/solver/llbsolver/bridge.go +++ b/solver/llbsolver/bridge.go @@ -10,9 +10,11 @@ import ( "github.com/containerd/containerd/platforms" "github.com/mitchellh/hashstructure/v2" "github.com/moby/buildkit/cache/remotecache" + "github.com/moby/buildkit/client" "github.com/moby/buildkit/client/llb" "github.com/moby/buildkit/frontend" gw "github.com/moby/buildkit/frontend/gateway/client" + "github.com/moby/buildkit/identity" "github.com/moby/buildkit/session" "github.com/moby/buildkit/solver" "github.com/moby/buildkit/solver/errdefs" @@ -20,6 +22,7 @@ import ( "github.com/moby/buildkit/solver/pb" "github.com/moby/buildkit/util/bklog" "github.com/moby/buildkit/util/flightcontrol" + "github.com/moby/buildkit/util/progress" "github.com/moby/buildkit/worker" digest "github.com/opencontainers/go-digest" "github.com/pkg/errors" @@ -36,6 +39,21 @@ type llbBridge struct { sm *session.Manager } +func (b *llbBridge) Warn(ctx context.Context, dgst digest.Digest, level int, msg string) error { + return b.builder.InContext(ctx, func(ctx context.Context, g session.Group) error { + pw, ok, _ := progress.NewFromContext(ctx, progress.WithMetadata("vertex", dgst)) + if !ok { + return nil + } + pw.Write(identity.NewID(), client.VertexWarning{ + Vertex: dgst, + Level: level, + Message: []byte(msg), + }) + return pw.Close() + }) +} + func (b *llbBridge) loadResult(ctx context.Context, def *pb.Definition, cacheImports []gw.CacheOptionsEntry) (solver.CachedResult, solver.BuildInfo, error) { w, err := b.resolveWorker() if err != nil { diff --git a/solver/progress.go b/solver/progress.go index c97730930fa32..6e54349671416 100644 --- a/solver/progress.go +++ b/solver/progress.go @@ -62,6 +62,14 @@ func (j *Job) Status(ctx context.Context, ch chan *client.SolveStatus) error { v.Vertex = vtx.(digest.Digest) v.Timestamp = p.Timestamp ss.Logs = append(ss.Logs, &v) + case client.VertexWarning: + vtx, ok := p.Meta("vertex") + if !ok { + bklog.G(ctx).Warnf("progress %s warning without vertex info", p.ID) + continue + } + v.Vertex = vtx.(digest.Digest) + ss.Warnings = append(ss.Warnings, &v) } } select {