GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add runner disk info and image version to status report by henrymercer · Pull Request #1825 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Aug 7, 2023

Copy link
Copy Markdown
Contributor

This PR adds three new fields to the status report:

  • Available disk space on the runner
  • Total disk space on the runner
  • Image version of the runner, for GitHub-hosted runners

We also log a warning if there is less than 2 GB of disk space available at various points in the run. For example, we log a warning if there is less than 2 GB of disk available at the start of init, but not at the end of analyze as the user is unlikely to need much space for the rest of the job. For neatness, we only log the warning once per run, but we continue logging the amount of free disk space in the debug logs.

Commit-by-commit review recommended since we do some refactoring, e.g. pulling out status reporting into its own file.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer added 7 commits August 7, 2023 11:46
@henrymercer
Suppress VS Code git limit warnings during package install
131cb1a
@henrymercer
Install check-disk-space Node package
45e889b
@henrymercer
Use vendored TypeScript version for VS Code
c55207f
@henrymercer
Pull out a dedicated status report file
c6d2843
@henrymercer
Sort interfaces and enums
09ce3db
@henrymercer
Include runner disk info in status report
7dcb3e5
@henrymercer
Add runner image version to status report
3b25789
@henrymercer
henrymercer requested a review from a team as a code owner August 7, 2023 15:28
github-advanced-security[bot]
github-advanced-security AI found potential problems Aug 7, 2023
View reviewed changes
Comment thread src/status-report.test.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/status-report.test.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/status-report.ts Fixed

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/status-report.ts
Comment on lines +291 to +295
{
owner,
repo,
data: statusReportJSON,
},

Check warning

Code scanning / CodeQL

File data in outbound network request

Outbound network request depends on [file data](1). Outbound network request depends on [file data](2).
henrymercer added 3 commits August 7, 2023 17:29
@henrymercer
Add ImageVersion to safe env vars for default setup
ba5812e
@henrymercer
Ignore test files in env vars query
97ce1b0
@henrymercer
Merge branch 'main' into henrymercer/disk-telemetry
834f08b
angelapwen
angelapwen previously approved these changes Aug 8, 2023
View reviewed changes

@angelapwen angelapwen left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thank you for all the refactoring and sorting ✨ a couple of questions for my own curiosity!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

henrymercer reacted with heart emoji
All reactions
  • ❤️ 1 reaction
Comment thread .vscode/settings.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/status-report.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

henrymercer added 2 commits August 9, 2023 11:50
@henrymercer
Merge branch 'main' into henrymercer/disk-telemetry
c93877b
@henrymercer
Add changelog note
bd20e2b
@henrymercer
henrymercer dismissed angelapwen’s stale review via bd20e2b August 9, 2023 10:52
@henrymercer
henrymercer requested a review from angelapwen August 9, 2023 10:52
angelapwen
angelapwen approved these changes Aug 9, 2023
View reviewed changes

@angelapwen angelapwen left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call on the changenote!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
henrymercer enabled auto-merge August 9, 2023 11:28
@henrymercer
henrymercer merged commit 9e4932e into main Aug 9, 2023
@henrymercer
henrymercer deleted the henrymercer/disk-telemetry branch August 9, 2023 15:05
@github-actions github-actions Bot mentioned this pull request Aug 14, 2023
Merge main into releases/v2 #1838
Merged
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@angelapwen angelapwen angelapwen approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@henrymercer @angelapwen @github-advanced-security
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.