Skip to content

workflows: report failing package and patch in build-failure notifications - #149

Open
heitbaum wants to merge 2 commits into
LibreELEC:mainfrom
heitbaum:notify-failure-reason-package
Open

workflows: report failing package and patch in build-failure notifications#149
heitbaum wants to merge 2 commits into
LibreELEC:mainfrom
heitbaum:notify-failure-reason-package

Conversation

@heitbaum

Copy link
Copy Markdown
Collaborator

The failure-reason extraction used grep -ohE, which discarded everything except the matched keyword, so every notification collapsed to a bare "APPLY PATCH" (or CONFIGURE/CMAKE/UNPACK) with no indication of which package or patch actually failed. A kodi patch failing during the JsonSchemaBuilder:host step was reported only as "APPLY PATCH".

Strip the ANSI colour codes first, then derive the reason as the failing phase plus the package being unpacked (the last UNPACK marker), and for patch failures append the failing patch path. The kodi case now reads:

reason for failure - APPLY PATCH kodi (projects/Amlogic/patches/kodi/0001-workaround-for-subs-on-lima.patch)

…tions

The failure-reason extraction used grep -ohE, which discarded everything
except the matched keyword, so every notification collapsed to a bare
"APPLY PATCH" (or CONFIGURE/CMAKE/UNPACK) with no indication of which
package or patch actually failed. A kodi patch failing during the
JsonSchemaBuilder:host step was reported only as "APPLY PATCH".

Strip the ANSI colour codes first, then derive the reason as the failing
phase plus the package being unpacked (the last UNPACK marker), and for
patch failures append the failing patch path. The kodi case now reads:

  reason for failure - APPLY PATCH kodi (projects/Amlogic/patches/kodi/0001-workaround-for-subs-on-lima.patch)

Applied to the make-image and create-addon workflows for LE10 to LE13.
Pass DISABLE_COLORS=yes to the build so captured logs are plain text,
which also makes the uploaded failed-build logs far easier to read. With
colour codes gone the failure-reason extraction no longer needs to strip
ANSI escapes first, so parse the log directly.

Applied to the make-image and create-addon workflows for LE10 to LE13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant