Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extract directly to the toolcache#2631

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
henrymercer merged 14 commits intomainfromhenrymercer/extract-direct-to-toolcache
Dec 4, 2024

Conversation

henrymercer
Copy link
Contributor

Adding the CodeQL Bundle to the toolcache seems to take a surprisingly long amount of time. We haven't collected large scale telemetry yet, but here's some anecdotal numbers from looking at the logs on PR checks:

  • Linux: ~10–15 secs
  • macOS: ~15–20 secs
  • Windows: ~2 minutes (!)

Therefore in this PR, we add a feature flag that extracts the CodeQL bundle directly to the toolcache, eliminating the copy to toolcache step completely.

I've tested the change by adding a PR check, temporarily modifying this to running 10 runs on each platform, and running this a bunch of times. Next steps are dogfooding this change internally using the feature flag.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm thereadme has been updated if necessary.
  • Confirm thechangelog has been updated if necessary.

@henrymercerhenrymercer requested a review froma team as acode ownerDecember 3, 2024 18:29
dbartol
dbartol previously approved these changesDec 3, 2024
Copy link

@dbartoldbartol left a comment

Choose a reason for hiding this comment

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

LGTM. Looks like a relatively simple change, plus some plumbing to pass the destination directory through to all the places the write the files.

On a GitHub-hosted runner, it looks like we'll still add the bundle to the toolcache, even though the cache will disappear after the job. Is this just because we have to put itsomewhere, and we might as well put it in the toolcache for consistency with the less-common self-hosted runner scenario?

@henrymercer
Copy link
ContributorAuthor

On a GitHub-hosted runner, it looks like we'll still add the bundle to the toolcache, even though the cache will disappear after the job. Is this just because we have to put itsomewhere, and we might as well put it in the toolcache for consistency with the less-common self-hosted runner scenario?

Yes, pretty much. It's also consistent with the situation where the GitHub-hosted runner images have caught up to the latest version of CodeQL and the tools we want are already installed. Plus if anyone's still using a hardcoded toolcache path to find CodeQL, that'll still work.

dbartol reacted with thumbs up emoji

Copy link
Member

@NlightNFotisNlightNFotis left a comment

Choose a reason for hiding this comment

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

Great!

Thank you for this change!

@henrymercerhenrymercer merged commit3096afe intomainDec 4, 2024
274 checks passed
@henrymercerhenrymercer deleted the henrymercer/extract-direct-to-toolcache branchDecember 4, 2024 11:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@NlightNFotisNlightNFotisNlightNFotis approved these changes

@dbartoldbartoldbartol left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@henrymercer@NlightNFotis@dbartol

[8]ページ先頭

©2009-2025 Movatter.jp