diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-08-25 17:42:52 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-08-26 13:15:11 +0000 |
| commit | 515987b3072b8f72ba538dc441031af58f7a9255 (patch) | |
| tree | e4275cdefcd5650cb3ff4814ac854fc395dab81e /pkg/instance | |
| parent | 206bcec956ae48e69bd22efb52fabca094df755c (diff) | |
pkg/instance: extend image testing failed errors
Include a bit more info into the bug reports.
The change is motivated by inactionable "image testing failed w/o kernel
bug" errors like this:
https://syzkaller.appspot.com/text?tag=CrashLog&x=17acec42580000
Diffstat (limited to 'pkg/instance')
| -rw-r--r-- | pkg/instance/instance.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 622d1620e..243ca670a 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -564,6 +564,12 @@ func RunSmokeTest(cfg *mgrconfig.Config) (*report.Report, error) { reportData, err := os.ReadFile(filepath.Join(cfg.Workdir, "report.json")) if err != nil { if os.IsNotExist(err) { + var verboseErr *osutil.VerboseError + if errors.As(err, &verboseErr) { + // Include more details into the report. + prefix := fmt.Sprintf("%s, exit code %d\n\n", verboseErr.Title, verboseErr.ExitCode) + output = append([]byte(prefix), output...) + } rep := &report.Report{ Title: "SYZFATAL: image testing failed w/o kernel bug", Output: output, |
