FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clean up the bundle archive after extracting it by henrymercer · Pull Request #1820 · github/codeql-action · GitHub

Clean up the bundle archive after extracting it - #1820

Merged
henrymercer merged 5 commits into
mainfrom
henrymercer/delete-bundle-archive
Aug 1, 2023
Merged

henrymercer merged 5 commits into
mainfrom
henrymercer/delete-bundle-archive

Conversation

henrymercer commented Aug 1, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Make some more disk space available to future steps by deleting the CodeQL bundle archive once we've extracted it. We tolerate this step failing since deleting files doesn't always work, particularly on Windows where an antivirus program might lock the file.

Edit: There's another saving to be had — when we cache the bundle we copy it from a temporary directory to a toolcache directory, so we can also delete the extracted CodeQL bundle from this temporary directory.

In total, we make an additional 2.3 GB available to the autobuild and analyze steps on a Linux run using a single-platform dist. The savings are better for multi-platform dists, but these are less common.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

henrymercer requested a review from a team as a code owner August 1, 2023 16:56
adityasharad previously approved these changes Aug 1, 2023
Comment thread CHANGELOG.md
Comment thread src/setup-codeql.ts Outdated
Comment thread src/setup-codeql.ts Outdated
Comment thread src/setup-codeql.ts Outdated

Copy link
Copy Markdown
Contributor Author

henrymercer enabled auto-merge August 1, 2023 19:00
henrymercer merged commit 7b79062 into main Aug 1, 2023
henrymercer deleted the henrymercer/delete-bundle-archive branch August 1, 2023 19:16

Copy link
Copy Markdown
Contributor

Just curious: how exactly did you figure out the disk space savings here?

Copy link
Copy Markdown
Contributor Author

I did a fairly basic calculation: I added a bunch of print statements to dump the available disk space, and summed the amount of disk space made available by deleting the archived bundle and deleting the extracted bundle from the temporary directory.

github-actions Bot mentioned this pull request Aug 8, 2023
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL