Skip to content

Conversation

@fumiama
Copy link

@fumiama fumiama commented Dec 21, 2025

Please describe the change you are making

fix #64

Add ActionBuildOutput support and use string panic output.

Example Input

{"ImportPath":"github.com/cloudflare/cloudflared/client.test","Action":"build-output","Output":"# github.com/cloudflare/cloudflared/client.test\nld: warning: '/private/var/folders/10/4868w7yj2hvdhn08t_crkrf00000gn/T/go-link-1260627550/000013.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626\n"}

Before

panic: failed to match line: [35 32 103 105 116 104 117 98 46 99 111 109 47 99 108 111 117 100 102 108 97 114 101 47 99 108 111 117 100 102 108 97 114 101 100 47 99 108 105 101 110 116 46 116 101 115 116 10 108 100 58 32 119 97 114 110 105 110 103 58 32 39 47 112 114 105 118 97 116 101 47 118 97 114 47 102 111 108 100 101 114 115 47 49 48 47 52 56 54 56 119 55 121 106 50 104 118 100 104 110 48 56 116 95 99 114 107 114 102 48 48 48 48 48 103 110 47 84 47 103 111 45 108 105 110 107 45 49 50 54 48 54 50 55 53 53 48 47 48 48 48 48 49 51 46 111 39 32 104 97 115 32 109 97 108 102 111 114 109 101 100 32 76 67 95 68 89 83 89 77 84 65 66 44 32 101 120 112 101 99 116 101 100 32 57 56 32 117 110 100 101 102 105 110 101 100 32 115 121 109 98 111 108 115 32 116 111 32 115 116 97 114 116 32 97 116 32 105 110 100 101 120 32 49 54 50 54 44 32 102 111 117 110 100 32 57 53 32 117 110 100 101 102 105 110 101 100 32 115 121 109 98 111 108 115 32 115 116 97 114 116 105 110 103 32 97 116 32 105 110 100 101 120 32 49 54 50 54]

goroutine 21 [running]:
github.com/gotesttools/gotestfmt/v2/tokenizer.parseLine({0x100847d83, 0x4}, {0x14000079000, 0x17b, 0x17b}, 0x140000960e0)
        /Users/fumiama/go/pkg/mod/github.com/gotesttools/gotestfmt/[email protected]/tokenizer/tokenizer.go:478 +0x274
github.com/gotesttools/gotestfmt/v2/tokenizer.decode({0x1008e3ab8, 0x140000a2228}, 0x140000960e0)
        /Users/fumiama/go/pkg/mod/github.com/gotesttools/gotestfmt/[email protected]/tokenizer/tokenizer.go:387 +0x274
created by github.com/gotesttools/gotestfmt/v2/tokenizer.Tokenize in goroutine 1
        /Users/fumiama/go/pkg/mod/github.com/gotesttools/gotestfmt/[email protected]/tokenizer/tokenizer.go:19 +0x8c
exit status 2
make: *** [test] Error 1

Add string panic

panic: failed to match line: # github.com/cloudflare/cloudflared/client.test
        ld: warning: '/private/var/folders/10/4868w7yj2hvdhn08t_crkrf00000gn/T/go-link-1260627550/000013.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626

goroutine 4 [running]:
github.com/gotesttools/gotestfmt/v2/tokenizer.parseLine({0x104b8fe43, 0x4}, {0x14000284000, 0x17b, 0x17b}, 0x1400001e1c0)
        /Users/fumiama/Documents/src/gotestfmt/tokenizer/tokenizer.go:484 +0x284
github.com/gotesttools/gotestfmt/v2/tokenizer.decode({0x104c2bab8, 0x14000058248}, 0x1400001e1c0)
        /Users/fumiama/Documents/src/gotestfmt/tokenizer/tokenizer.go:393 +0x274
created by github.com/gotesttools/gotestfmt/v2/tokenizer.Tokenize in goroutine 1
        /Users/fumiama/Documents/src/gotestfmt/tokenizer/tokenizer.go:19 +0x8c
exit status 2

Add ActionBuildOutput

截屏2025-12-21 下午6 00 24

Your code will be released under the Unlicense into the public domain for everyone to use for any purpose. Are you in the position, and are you willing to release your code under this license?

Yes

@fumiama fumiama changed the title feat: add support to ActionBuildOutput feat: add support to ActionBuildOutput (fix #64) Dec 21, 2025
@fumiama
Copy link
Author

fumiama commented Dec 21, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Panic with "build-output" action

1 participant