Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break apart github actions jobs to save disk space #894

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AdamKing0126
Copy link

@AdamKing0126 AdamKing0126 commented Dec 18, 2023

The Github Action checks out the vagov-content, content-build, and vets-website repos. This is possibly why we are seeing the actions failing with a failure that there's no space left on the device.

The filesystem is preserved between steps in a GitHub Actions workflow. This means that files and directories created in one step are available in subsequent steps. However, the total amount of disk space available in the runner environment is limited. Because we have one action which both fetches the cache and does a yarn install, it's likely this is running against the boundaries for the amount of disk space available.

By splitting this command:
cd content-build && cp .env.example .env && yarn --frozen-lockfile --prefer-offline && yarn fetch-drupal-cache && yarn build

...into three separate chunks:

  • cd content-build && cp .env.example .env && yarn --frozen-lockfile --prefer-offline
  • cd content-build && yarn fetch-drupal-cache
  • cd content-build && yarn build

We should avoid this problem

@AdamKing0126 AdamKing0126 self-assigned this Dec 18, 2023
@AdamKing0126 AdamKing0126 changed the title set fetch-depth property when building, to save disk space break apart github actions jobs to save disk space Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants