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 telemetry for TRAP caching by edoardopirovano · Pull Request #1182 · github/codeql-action

Conversation

@edoardopirovano

@edoardopirovano edoardopirovano commented Aug 15, 2022

Copy link
Copy Markdown
Contributor

This PR adds some telemetry for TRAP caching including the times and sizes of the cache uploads/downloads and the languages that we are using TRAP caching for. Almost all of the code change is adding a dependency that computes the recursive size of folders. This is a little jarring, but is I think simpler than writing that code ourselves which is potentially somewhat awkward. I'm definitely open to other suggestions on if there's a simpler way to get the size of the cache, though.

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
@edoardopirovano
edoardopirovano requested a review from a team as a code owner August 15, 2022 15:58
@edoardopirovano
edoardopirovano force-pushed the edoardo/trap-cache-telemetry branch from 3b448b5 to 6162433 Compare August 15, 2022 16:59
@edoardopirovano

edoardopirovano commented Aug 15, 2022

Copy link
Copy Markdown
Contributor Author

Changing to draft as we need a difference dependency with a more open license.

All reactions

Sorry, something went wrong.

Uh oh!

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

@edoardopirovano
edoardopirovano force-pushed the edoardo/trap-cache-telemetry branch from 6162433 to 20daf81 Compare August 16, 2022 09:58
@edoardopirovano edoardopirovano added the Update dependencies Trigger PR workflow to update dependencies label Aug 16, 2022
@github-actions github-actions Bot removed the Update dependencies Trigger PR workflow to update dependencies label Aug 16, 2022
@edoardopirovano
edoardopirovano force-pushed the edoardo/trap-cache-telemetry branch from 9f4066c to 7a0f475 Compare August 16, 2022 10:18
@edoardopirovano edoardopirovano added the Update dependencies Trigger PR workflow to update dependencies label Aug 16, 2022
@github-actions github-actions Bot removed the Update dependencies Trigger PR workflow to update dependencies label Aug 16, 2022
@edoardopirovano
Add telemetry for TRAP caching
4139682
@edoardopirovano
edoardopirovano force-pushed the edoardo/trap-cache-telemetry branch from 7d3ceb9 to 4139682 Compare August 16, 2022 10:54
@edoardopirovano

edoardopirovano commented Aug 16, 2022

Copy link
Copy Markdown
Contributor Author

This is now ready for review again.

All reactions

Sorry, something went wrong.

Uh oh!

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

henrymercer
henrymercer reviewed Aug 16, 2022
View reviewed changes
Comment thread src/init-action.ts Resolved

Uh oh!

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

Comment thread src/config-utils.ts Resolved

Uh oh!

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

Comment thread src/config-utils.ts Resolved

Uh oh!

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

Comment thread src/analyze-action.ts Resolved

Uh oh!

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

Comment thread src/analyze-action.ts Resolved

Uh oh!

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

Comment thread src/analyze-action.ts Resolved

Uh oh!

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

Comment thread src/trap-caching.ts Resolved

Uh oh!

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

@edoardopirovano
Address review comments from @henrymercer
b29194f
@edoardopirovano
edoardopirovano requested a review from henrymercer August 16, 2022 12:32
henrymercer
henrymercer approved these changes Aug 16, 2022
View reviewed changes

@henrymercer henrymercer 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.

Minor comment around the get-folder-size package, otherwise LGTM.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread package.json Resolved

Uh oh!

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

Comment thread src/trap-caching.ts Resolved

Uh oh!

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

@edoardopirovano
edoardopirovano merged commit 8a4437a into main Aug 16, 2022
@edoardopirovano
edoardopirovano deleted the edoardo/trap-cache-telemetry branch August 16, 2022 13:16
@edoardopirovano edoardopirovano mentioned this pull request Aug 16, 2022
Use util.promisify instead of manually constructing promise #1184
Merged
3 tasks done
This was referenced Aug 17, 2022
Merge main into releases/v2 #1189
Closed
Merge main into releases/v2 #1192
Merged
Merge releases/v2 into releases/v1 #1195
Merged
@aliscco aliscco mentioned this pull request Jun 22, 2023
[Snyk] Fix for 1 vulnerabilities aliscco/codeql-action#613
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes

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.

2 participants

@edoardopirovano @henrymercer
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.