refactor: ensure /mnt has free space before running tests in CI#3731
refactor: ensure /mnt has free space before running tests in CI#3731jarhodes314 merged 1 commit intothin-edge:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
|
@jarhodes314 Do we have an idea what is already existing under update |
|
I don't know exactly what's under the directory, but agree this would likely be problematic for a self hosted runner. I think the answer boils down to depending on how GitHub spins up Azure VMs for running actions on and what's run on the runner before, there could be all manner of things in By default, I think all that's in |
Ok, then I guess that should be fine for now, we could potentially add a check against the runner type (to prevent running the command on an unexpected environment) |
Robot Results
|
reubenmiller
left a comment
There was a problem hiding this comment.
Approved. The job is already marked to only run on runs-on: ubuntu-22.04, so we should be ok
Proposed changes
Make sure that /mnt has some free space before we attempt to write something to it in the unit tests following the changes introduced by #3726. Occasionally this disk is full before we start the run, and this causes the unit tests attempting to write to the disk to fail.
An example of the failure can be seen here, noting that there is no available space on
/mntwhen we check it at the start of workflow: https://github.com/thin-edge/thin-edge.io/actions/runs/16200614562/job/45738409871.Types of changes
Paste Link to the issue
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments