Append failed system test log tails to GHA job summary#830
Conversation
MakisH
left a comment
There was a problem hiding this comment.
Thanks for implementing! A first run looks good: https://github.com/precice/tutorials/actions/runs/27284473467
Since the job summary renders Markdown, I assume it can also render HTML. What if we display more lines (say 100) and put them into collapsible sections? Sometimes (like in this job failing at run), there is useful information higher up in the other participant.
Show build/run/compare logs in collapsed details sections on failure. Revert footer wording to match develop.
|
thanks @MakisH for testing this , and as per your feedback i have updated 100 lines per stage (better for interleaved run logs) , collapsible details for each run like : Details100 lines2 (run log) 100 lines Details100 lines3 (compare log) if error then mentioned failure stage here in case Details100 linesofc reverted footer and stage detection is unchanged , also tested locally |
MakisH
left a comment
There was a problem hiding this comment.
Looks even better now, nice! See https://github.com/precice/tutorials/actions/runs/27292023168
Use artifact log filenames, append all existing stage logs in collapsible details sections.
Wrap failure log tails in a max-height div with overflow-y auto. HTML-escape content for safe rendering in the job summary.
This reverts commit ec3da35.
Summary
build/run/compare) to the GHA job summary.fieldcompare_time→ compare , elsesolver_time→ run, else build ).Test plan
## Failed test logs) with compare log tailchangelog-entries/ 830.md