debian-forge-cli/bib/pkg/progress
Michael Vogt e51a56b084 progress: stop building when osbuild status cannot be parsed
This commit changes the progress parser (again) to deal with
errors from the osbuild json progress scanner. On errors we
will now exit right away and potentially kill osbuild but
provide an error message that hints how to workaround the
issue.

The original code assumed we get transient errors like json
decode issues. However it turns out that this is not always
the case, some errors from a bufio.Scanner are unrecoverable
(like ErrTooBig) and trying again just leads to an endless
loop. We can also not "break" and wait for the build to finish
because that would appear like the progress is broken
forever and we would still have to report an error (just
much later).
2025-03-31 19:42:59 +00:00
..
export_test.go progress: tweak how os.Stderr is mocked 2025-03-31 19:42:59 +00:00
progress.go progress: stop building when osbuild status cannot be parsed 2025-03-31 19:42:59 +00:00
progress_test.go progress: stop building when osbuild status cannot be parsed 2025-03-31 19:42:59 +00:00