OpenLiberty / ci.maven

Maven plugins for managing Liberty profile servers #devops
Apache License 2.0
130 stars 91 forks source link

Reduce log size and free up disk space on Linux #1717

Closed cherylking closed 1 year ago

cherylking commented 1 year ago

Recently we began running out of disk space on at least half the Linux jobs in each GHA build.

1) Changed streamLogs to streamLogsOnFailures to reduce log size. 2) Used GHA action jlumbroso/free-disk-space@main to free up some disk space before each job runs on Ubuntu.

I checked one of the Linux jobs and saw that the free-disk-space action freed up 18 GB. It started with 21 GB free and had 39 GB free after the action ran.

cherylking commented 1 year ago

Guess an option would be to only include the GHA disk free action and keep streamLogs=true...

Yeah, I think we should give this a try and see if we like it. At least locally, I love having streamLogsOnFailures=true instead of streamLogs. On the builds, it may be preferred to still have streamLogs=true. The yaml can override what is in the pom.xml. We can change the setting back in the yaml if we decide it is more useful later.