split warning message into short and detail

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
master
Tonis Tiigi 2021-11-30 21:57:43 -08:00
parent 0dd260bcf5
commit 71316c6f29
18 changed files with 407 additions and 286 deletions

View File

@ -1006,9 +1006,10 @@ func (m *VertexLog) GetMsg() []byte {
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"`
Info *pb.SourceInfo `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
Ranges []*pb.Range `protobuf:"bytes,5,rep,name=ranges,proto3" json:"ranges,omitempty"`
Short []byte `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"`
Detail []byte `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"`
Info *pb.SourceInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
Ranges []*pb.Range `protobuf:"bytes,6,rep,name=ranges,proto3" json:"ranges,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -1054,9 +1055,16 @@ func (m *VertexWarning) GetLevel() int64 {
return 0
}
func (m *VertexWarning) GetMsg() []byte {
func (m *VertexWarning) GetShort() []byte {
if m != nil {
return m.Msg
return m.Short
}
return nil
}
func (m *VertexWarning) GetDetail() []byte {
if m != nil {
return m.Detail
}
return nil
}
@ -1245,101 +1253,102 @@ func init() {
func init() { proto.RegisterFile("control.proto", fileDescriptor_0c5120591600887d) }
var fileDescriptor_0c5120591600887d = []byte{
// 1494 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x6f, 0x1b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, 0x04, 0xcf, 0x11, 0x00, 0x00,
// 1514 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46,
0x17, 0x0e, 0x25, 0x8b, 0x92, 0x8e, 0x65, 0xc3, 0x99, 0xe4, 0x0f, 0x08, 0xfe, 0xf8, 0x6d, 0x87,
0xc9, 0x0f, 0x18, 0x41, 0x42, 0x39, 0x6e, 0x53, 0xa4, 0xee, 0x05, 0x89, 0xac, 0x14, 0x71, 0x10,
0xa3, 0xe9, 0x28, 0x69, 0x80, 0x2c, 0x0a, 0x50, 0xd2, 0x48, 0x26, 0x4c, 0x71, 0xd8, 0x99, 0xa1,
0x13, 0xf5, 0x01, 0xba, 0xee, 0xae, 0x0f, 0xd0, 0x45, 0x57, 0x5d, 0xf7, 0x09, 0x0a, 0x64, 0xd9,
0x75, 0x16, 0x6e, 0x91, 0x45, 0x77, 0x2d, 0xfa, 0x08, 0xc5, 0x5c, 0x28, 0x53, 0x96, 0xe4, 0x5b,
0xba, 0xd2, 0x9c, 0xe1, 0xf9, 0x3e, 0x9d, 0xeb, 0xcc, 0x1c, 0x58, 0xe8, 0xd0, 0x58, 0x30, 0x1a,
0xf9, 0x09, 0xa3, 0x82, 0xa2, 0xa5, 0x01, 0x6d, 0x0f, 0xfd, 0x76, 0x1a, 0x46, 0xdd, 0xbd, 0x50,
0xf8, 0xfb, 0xb7, 0xdd, 0x5b, 0xfd, 0x50, 0xec, 0xa6, 0x6d, 0xbf, 0x43, 0x07, 0xf5, 0x3e, 0xed,
0xd3, 0xba, 0x52, 0x6c, 0xa7, 0x3d, 0x25, 0x29, 0x41, 0xad, 0x34, 0x81, 0xbb, 0xd2, 0xa7, 0xb4,
0x1f, 0x91, 0x43, 0x2d, 0x11, 0x0e, 0x08, 0x17, 0xc1, 0x20, 0x31, 0x0a, 0x37, 0x73, 0x7c, 0xf2,
0xcf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xd1, 0x68, 0x4a, 0x42,
0x27, 0xab, 0xc6, 0xfd, 0xff, 0x09, 0x5a, 0xda, 0xd8, 0x46, 0xed, 0xf5, 0xdb, 0x65, 0xeb, 0xd7,
0xb7, 0xcb, 0xd6, 0xef, 0x6f, 0x97, 0xad, 0xb6, 0xad, 0x1a, 0xfc, 0xbd, 0x7f, 0x02, 0x00, 0x00,
0xff, 0xff, 0x7c, 0xcd, 0xb2, 0x7e, 0xeb, 0x11, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -2662,7 +2671,7 @@ func (m *VertexWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintControl(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
dAtA[i] = 0x32
}
}
if m.Info != nil {
@ -2675,12 +2684,19 @@ func (m *VertexWarning) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintControl(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
if len(m.Detail) > 0 {
i -= len(m.Detail)
copy(dAtA[i:], m.Detail)
i = encodeVarintControl(dAtA, i, uint64(len(m.Detail)))
i--
dAtA[i] = 0x22
}
if len(m.Msg) > 0 {
i -= len(m.Msg)
copy(dAtA[i:], m.Msg)
i = encodeVarintControl(dAtA, i, uint64(len(m.Msg)))
if len(m.Short) > 0 {
i -= len(m.Short)
copy(dAtA[i:], m.Short)
i = encodeVarintControl(dAtA, i, uint64(len(m.Short)))
i--
dAtA[i] = 0x1a
}
@ -3265,7 +3281,11 @@ func (m *VertexWarning) Size() (n int) {
if m.Level != 0 {
n += 1 + sovControl(uint64(m.Level))
}
l = len(m.Msg)
l = len(m.Short)
if l > 0 {
n += 1 + l + sovControl(uint64(l))
}
l = len(m.Detail)
if l > 0 {
n += 1 + l + sovControl(uint64(l))
}
@ -6473,7 +6493,7 @@ func (m *VertexWarning) Unmarshal(dAtA []byte) error {
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Short", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
@ -6500,12 +6520,46 @@ func (m *VertexWarning) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
if m.Msg == nil {
m.Msg = []byte{}
m.Short = append(m.Short[:0], dAtA[iNdEx:postIndex]...)
if m.Short == nil {
m.Short = []byte{}
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Detail", 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.Detail = append(m.Detail[:0], dAtA[iNdEx:postIndex]...)
if m.Detail == nil {
m.Detail = []byte{}
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
}
@ -6541,7 +6595,7 @@ func (m *VertexWarning) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 5:
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
}

View File

@ -138,9 +138,10 @@ message VertexLog {
message VertexWarning {
string vertex = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
int64 level = 2;
bytes msg = 3;
pb.SourceInfo info = 4;
repeated pb.Range ranges = 5;
bytes short = 3;
bytes detail = 4;
pb.SourceInfo info = 5;
repeated pb.Range ranges = 6;
}
message BytesMessage {

View File

@ -193,6 +193,7 @@ func testWarnings(t *testing.T, sb integration.Sandbox) {
Range: []*pb.Range{
{Start: pb.Position{Line: 2}, End: pb.Position{Line: 4}},
},
Detail: []byte("this is detail"),
}))
return r, nil
@ -239,7 +240,8 @@ func testWarnings(t *testing.T, sb integration.Sandbox) {
w := warnings[0]
require.Equal(t, "this is warning", string(w.Message))
require.Equal(t, "this is warning", string(w.Short))
require.Equal(t, "this is detail", string(w.Detail))
require.Equal(t, 3, w.Level)
_, ok := vertexes[w.Vertex]
require.True(t, ok)

View File

@ -38,7 +38,8 @@ type VertexLog struct {
type VertexWarning struct {
Vertex digest.Digest
Level int
Message []byte
Short []byte
Detail []byte
SourceInfo *pb.SourceInfo
Range []*pb.Range
}

View File

@ -296,7 +296,8 @@ func (c *Client) solve(ctx context.Context, def *llb.Definition, runGateway runG
s.Warnings = append(s.Warnings, &VertexWarning{
Vertex: v.Vertex,
Level: int(v.Level),
Message: v.Msg,
Short: v.Short,
Detail: v.Detail,
SourceInfo: v.Info,
Range: v.Ranges,
})

View File

@ -380,7 +380,8 @@ func (c *Controller) Status(req *controlapi.StatusRequest, stream controlapi.Con
sr.Warnings = append(sr.Warnings, &controlapi.VertexWarning{
Vertex: v.Vertex,
Level: int64(v.Level),
Msg: v.Message,
Short: v.Short,
Detail: v.Detail,
Info: v.SourceInfo,
Ranges: v.Range,
})

View File

@ -455,11 +455,11 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
LLBCaps: &caps,
SourceMap: sourceMap,
Hostname: opts[keyHostname],
Warn: func(msg string, location *parser.Range) {
Warn: func(msg, detail string, location *parser.Range) {
if i != 0 {
return
}
c.Warn(ctx, defVtx, msg, warnOpts(sourceMap, location))
c.Warn(ctx, defVtx, msg, warnOpts(sourceMap, location, detail))
},
})
@ -779,8 +779,8 @@ func scopeToSubDir(c *llb.State, fileop bool, dir string) *llb.State {
return &bc
}
func warnOpts(sm *llb.SourceMap, r *parser.Range) client.WarnOpts {
opts := client.WarnOpts{Level: 1}
func warnOpts(sm *llb.SourceMap, r *parser.Range, detail string) client.WarnOpts {
opts := client.WarnOpts{Level: 1, Detail: []byte(detail)}
if r == nil {
return opts
}

View File

@ -68,7 +68,7 @@ type ConvertOpt struct {
ContextLocalName string
SourceMap *llb.SourceMap
Hostname string
Warn func(msg string, location *parser.Range)
Warn func(short, detail string, location *parser.Range)
}
func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State, *Image, error) {
@ -93,7 +93,7 @@ func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State,
}
for _, w := range dockerfile.Warnings {
opt.Warn(w.Message, w.Location)
opt.Warn(w.Short, w.Detail, w.Location)
}
proxyEnv := proxyEnvFromBuildArgs(opt.BuildArgs)

View File

@ -273,7 +273,8 @@ type Result struct {
}
type Warning struct {
Message string
Short string
Detail string
Location *Range
}
@ -283,7 +284,7 @@ func (r *Result) PrintWarnings(out io.Writer) {
return
}
for _, w := range r.Warnings {
fmt.Fprintf(out, "[WARNING]: %s\n", w.Message)
fmt.Fprintf(out, "[WARNING]: %s\n", w.Short)
}
if len(r.Warnings) > 0 {
fmt.Fprintf(out, "[WARNING]: Empty continuation lines will become errors in a future release.\n")
@ -352,7 +353,8 @@ func Parse(rwc io.Reader) (*Result, error) {
if hasEmptyContinuationLine {
warnings = append(warnings, Warning{
Message: "Empty continuation line found in: " + line,
Short: "Empty continuation line found in: " + line,
Detail: "Empty continuation lines will become errors in a future release. https://github.com/moby/moby/pull/33719",
Location: &Range{Start: Position{Line: currentLine}, End: Position{Line: currentLine}},
})
}

View File

@ -162,11 +162,11 @@ RUN indented \
result, err := Parse(dockerfile)
require.NoError(t, err)
warnings := result.Warnings
require.Equal(t, 3, len(warnings))
require.Contains(t, warnings[0], "Empty continuation line found in")
require.Contains(t, warnings[0], "RUN something following more")
require.Contains(t, warnings[1], "RUN another thing")
require.Contains(t, warnings[2], "will become errors in a future release")
require.Equal(t, 2, len(warnings))
require.Contains(t, warnings[0].Short, "Empty continuation line found in")
require.Contains(t, warnings[0].Short, "RUN something following more")
require.Contains(t, warnings[1].Short, "RUN another thing")
require.Contains(t, warnings[0].Detail, "will become errors in a future release")
}
func TestParseReturnsScannerErrors(t *testing.T) {

View File

@ -139,4 +139,5 @@ type WarnOpts struct {
Level int
SourceInfo *pb.SourceInfo
Range []*pb.Range
Detail []byte
}

View File

@ -994,10 +994,11 @@ func (lbf *llbBridgeForwarder) ReleaseContainer(ctx context.Context, in *pb.Rele
}
func (lbf *llbBridgeForwarder) Warn(ctx context.Context, in *pb.WarnRequest) (*pb.WarnResponse, error) {
err := lbf.llbBridge.Warn(ctx, in.Digest, string(in.Message), frontend.WarnOpts{
err := lbf.llbBridge.Warn(ctx, in.Digest, string(in.Short), frontend.WarnOpts{
Level: int(in.Level),
SourceInfo: in.Info,
Range: in.Ranges,
Detail: in.Detail,
})
if err != nil {
return nil, err

View File

@ -300,11 +300,12 @@ func (c *grpcClient) requestForRef(ref client.Reference) (*pb.SolveRequest, erro
func (c *grpcClient) Warn(ctx context.Context, dgst digest.Digest, msg string, opts client.WarnOpts) error {
_, err := c.client.Warn(ctx, &pb.WarnRequest{
Digest: dgst,
Level: int64(opts.Level),
Message: []byte(msg),
Info: opts.SourceInfo,
Ranges: opts.Range,
Digest: dgst,
Level: int64(opts.Level),
Short: []byte(msg),
Info: opts.SourceInfo,
Ranges: opts.Range,
Detail: opts.Detail,
})
return err
}

View File

@ -1333,9 +1333,10 @@ func (m *PongResponse) GetWorkers() []*types1.WorkerRecord {
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"`
Info *pb.SourceInfo `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
Ranges []*pb.Range `protobuf:"bytes,5,rep,name=ranges,proto3" json:"ranges,omitempty"`
Short []byte `protobuf:"bytes,3,opt,name=Short,proto3" json:"Short,omitempty"`
Detail []byte `protobuf:"bytes,4,opt,name=Detail,proto3" json:"Detail,omitempty"`
Info *pb.SourceInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
Ranges []*pb.Range `protobuf:"bytes,6,rep,name=ranges,proto3" json:"ranges,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -1381,9 +1382,16 @@ func (m *WarnRequest) GetLevel() int64 {
return 0
}
func (m *WarnRequest) GetMessage() []byte {
func (m *WarnRequest) GetShort() []byte {
if m != nil {
return m.Message
return m.Short
}
return nil
}
func (m *WarnRequest) GetDetail() []byte {
if m != nil {
return m.Detail
}
return nil
}
@ -2180,134 +2188,135 @@ func init() {
func init() { proto.RegisterFile("gateway.proto", fileDescriptor_f1a937782ebbded5) }
var fileDescriptor_f1a937782ebbded5 = []byte{
// 2021 bytes of a gzipped FileDescriptorProto
// 2033 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4f, 0x6f, 0x1b, 0xc7,
0x15, 0xd7, 0x8a, 0xa4, 0x48, 0x3e, 0xfe, 0xb1, 0x32, 0x76, 0xd3, 0xf5, 0x22, 0x70, 0x94, 0x45,
0xaa, 0xd2, 0x8e, 0xb2, 0x4c, 0xe5, 0x04, 0x72, 0xe5, 0x20, 0xa9, 0xf5, 0x0f, 0x52, 0x23, 0xc9,
0xea, 0x28, 0x85, 0x81, 0x20, 0x05, 0xba, 0xe2, 0x0e, 0xe9, 0x85, 0xa9, 0x9d, 0xed, 0xec, 0xd0,
0x15, 0xd7, 0x8a, 0x94, 0x48, 0x3e, 0xfe, 0xb1, 0x32, 0x76, 0x53, 0x7a, 0x11, 0x38, 0xca, 0x22,
0x55, 0x69, 0x47, 0x59, 0xa6, 0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, 0x3e, 0xb2,
0x30, 0xcf, 0x70, 0xb2, 0xca, 0x95, 0x9d, 0x19, 0x30, 0x73, 0xf3, 0x2c, 0x3b, 0xa2, 0x6d, 0xd7,
0xbe, 0x7b, 0x73, 0xcf, 0xfa, 0xc7, 0x9b, 0x7b, 0xd6, 0xbf, 0xdf, 0xdc, 0xb3, 0xce, 0x97, 0xd5,
0xbf, 0xe3, 0x0f, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x9b, 0x02, 0x2b, 0x6f, 0x18, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -4055,7 +4064,7 @@ func (m *WarnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintGateway(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
dAtA[i] = 0x32
}
}
if m.Info != nil {
@ -4068,12 +4077,19 @@ func (m *WarnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintGateway(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
if len(m.Detail) > 0 {
i -= len(m.Detail)
copy(dAtA[i:], m.Detail)
i = encodeVarintGateway(dAtA, i, uint64(len(m.Detail)))
i--
dAtA[i] = 0x22
}
if len(m.Message) > 0 {
i -= len(m.Message)
copy(dAtA[i:], m.Message)
i = encodeVarintGateway(dAtA, i, uint64(len(m.Message)))
if len(m.Short) > 0 {
i -= len(m.Short)
copy(dAtA[i:], m.Short)
i = encodeVarintGateway(dAtA, i, uint64(len(m.Short)))
i--
dAtA[i] = 0x1a
}
@ -5300,7 +5316,11 @@ func (m *WarnRequest) Size() (n int) {
if m.Level != 0 {
n += 1 + sovGateway(uint64(m.Level))
}
l = len(m.Message)
l = len(m.Short)
if l > 0 {
n += 1 + l + sovGateway(uint64(l))
}
l = len(m.Detail)
if l > 0 {
n += 1 + l + sovGateway(uint64(l))
}
@ -9051,7 +9071,7 @@ func (m *WarnRequest) Unmarshal(dAtA []byte) error {
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Short", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
@ -9078,12 +9098,46 @@ func (m *WarnRequest) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...)
if m.Message == nil {
m.Message = []byte{}
m.Short = append(m.Short[:0], dAtA[iNdEx:postIndex]...)
if m.Short == nil {
m.Short = []byte{}
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Detail", 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.Detail = append(m.Detail[:0], dAtA[iNdEx:postIndex]...)
if m.Detail == nil {
m.Detail = []byte{}
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
}
@ -9119,7 +9173,7 @@ func (m *WarnRequest) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 5:
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
}

View File

@ -176,9 +176,10 @@ message PongResponse{
message WarnRequest {
string Digest = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false];
int64 Level = 2;
bytes Message = 3;
pb.SourceInfo info = 4;
repeated pb.Range ranges = 5;
bytes Short = 3;
bytes Detail = 4;
pb.SourceInfo info = 5;
repeated pb.Range ranges = 6;
}
message WarnResponse{}

View File

@ -52,9 +52,10 @@ func (b *llbBridge) Warn(ctx context.Context, dgst digest.Digest, msg string, op
pw.Write(identity.NewID(), client.VertexWarning{
Vertex: dgst,
Level: level,
Message: []byte(msg),
Short: []byte(msg),
SourceInfo: opts.SourceInfo,
Range: opts.Range,
Detail: opts.Detail,
})
return pw.Close()
})

View File

@ -389,7 +389,7 @@ func (t *trace) displayInfo() (d displayInfo) {
jobs = append(jobs, j)
}
for _, w := range v.warnings {
msg := "WARN: " + string(w.Message)
msg := "WARN: " + string(w.Short)
j := &job{
startTime: addTime(v.Started, t.localTimeDiff),
completedTime: addTime(v.Completed, t.localTimeDiff),

View File

@ -126,7 +126,7 @@ func (p *textMux) printVtx(t *trace, dgst digest.Digest) {
v.statusUpdates = map[string]struct{}{}
for _, w := range v.warnings[v.warningIdx:] {
fmt.Fprintf(p.w, "#%d WARN: %s\n", v.index, w.Message)
fmt.Fprintf(p.w, "#%d WARN: %s\n", v.index, w.Short)
v.warningIdx++
}