fix: if the build mount "deleted" / shadowed the GITHUB_WORKSPACE, do not only recreate it, but also ensure it belongs to the correct owner (runner) again
[v4] - 2021-03-25: Do not overprovision space by default
Added
Configuration option of overprovisioning the build volume (overprovision-lvm), defaulting to 'false'.
Configurable temp volume reserve (temp-reserve-mb), defaulting to '100'.
Changed
(potentially breaking) The LVM image files are not created sparsely anymore. Previously, free disk space appeared free on both the build volume and the hosting volume, until actually allocated by writing to the build volume. Now, the space is actually consumed on volume creation -- meaning, that after creating the build volume, the root and temp volume do not have or show more space available than configured in root-reserve-mb and temp-reserve-mb. This can be reverted by setting overprovision-lvm to 'true', but surprising out-of-disk space situations might be the result.
Temp volume reserve was fixed to 1024 KB, this defaults to a more cautious 100 MB now, and is configurable.
[v3] - 2021-02-15: Fix running on Ubuntu 20.04
Changed
Includes a workaround for the temp disk being locked on Ubuntu 20.04. Instead of formatting the temp disk, the LVM volume is now created ontop of loop-mounted files on both / and /mnt, leaving the original file systems intact.
[v2] - 2021-01-05: Fix file system permissions on logical volume
Changed
Change the owner of the logical volume to the runner user recursively, fixing permission issues when e.g. checking out code to the root of the logical volume. (Actually, the problem is the lost+found folder in the ext4 root, and chowning it breaks its purpose. But since the volume is temporary anyway, lost+found functionality is not really needed).
[v1] - 2020-08-20: Initial release
Commits
fc881a6 Merge pull request #36 from easimon/fix/ownership-of-github-workspace
fadc013 fix: recreate GITHUB_WORKSPACE with correct owner when deleted
cd652e0 fix: test build mount set to parent of current workspace
bb67daa Merge pull request #35 from easimon/fix/find-with-sudo
fe0431d fix: run free space reports with sudo as well
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps easimon/maximize-build-space from 8 to 10.
Release notes
Sourced from easimon/maximize-build-space's releases.
Changelog
Sourced from easimon/maximize-build-space's changelog.
Commits
fc881a6
Merge pull request #36 from easimon/fix/ownership-of-github-workspacefadc013
fix: recreate GITHUB_WORKSPACE with correct owner when deletedcd652e0
fix: test build mount set to parent of current workspacebb67daa
Merge pull request #35 from easimon/fix/find-with-sudofe0431d
fix: run free space reports with sudo as well557cb00
test: add test for root-owned build pathaed41c1
fix: run find with root permissions89c6c4b
fix: remove duplicate mkdir69e8e45
Merge pull request #33 from easimon/fix/allow-removal-of-workspace-directory62d379b
feat: show directory contents of build mount path if not emptyYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show