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 — Check zstd is on the path in addition to tar version by henrymercer · Pull Request #2526 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

tar calls out to zstd to decompress a .tar.zst, so we should check the zstd binary is accessible as part of determining whether to download a .tar.zst bundle.

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
Check zstd is on the path in addition to tar version
057e1ec
@henrymercer
henrymercer requested a review from a team as a code owner October 4, 2024 18:20
aeisenberg
aeisenberg reviewed Oct 4, 2024
View reviewed changes
Comment thread src/tar.ts Resolved

Uh oh!

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

Comment thread src/tar.ts
`The underlying error was: ${e}`,
);
return { available: false };
return { available: false, foundZstdBinary };

@aeisenberg aeisenberg Oct 4, 2024

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.

What's the use case for knowing if zstd is available if we can't figure out what tar version is available?

Actually, I'm not sure what the use case for having foundZstdBinary as part of the interface is. Is this for telemetry?

Sorry, something went wrong.

Uh oh!

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

All reactions

@henrymercer henrymercer Oct 7, 2024

Copy link
Copy Markdown
Contributor Author

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.

What's the use case for knowing if zstd is available if we can't figure out what tar version is available?

If we can't figure out what tar version is available, we want to fall back to gzip.

Actually, I'm not sure what the use case for having foundZstdBinary as part of the interface is. Is this for telemetry?

Yes, this is just to help us understand how much of the time zstd wasn't available due to the tar version and how much of the time it wasn't available due to not being able to find a zstd binary.

Sorry, something went wrong.

Uh oh!

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

All reactions

@aeisenberg aeisenberg Oct 7, 2024

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.

Got it.

Sorry, something went wrong.

Uh oh!

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

All reactions
@henrymercer @aeisenberg
Update src/tar.ts
bf2e624
Co-authored-by: Andrew Eisenberg <[email protected]>
@henrymercer henrymercer added the Rebuild Re-transpile JS & re-generate workflows label Oct 7, 2024
@github-actions github-actions Bot removed the Rebuild Re-transpile JS & re-generate workflows label Oct 7, 2024
@github-actions
Rebuild
d65a176
@github-actions

github-actions Bot commented Oct 7, 2024

Copy link
Copy Markdown
Contributor

Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions
github-actions Bot marked this pull request as draft October 7, 2024 09:28
@henrymercer
henrymercer marked this pull request as ready for review October 7, 2024 09:28
aeisenberg
aeisenberg approved these changes Oct 7, 2024
View reviewed changes
Comment thread src/tar.ts
`The underlying error was: ${e}`,
);
return { available: false };
return { available: false, foundZstdBinary };

@aeisenberg aeisenberg Oct 7, 2024

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.

Got it.

Sorry, something went wrong.

Uh oh!

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

All reactions
@henrymercer
henrymercer merged commit c9a70ff into main Oct 7, 2024
@henrymercer
henrymercer deleted the henrymercer/check-zstd-on-path branch October 7, 2024 16:14
This was referenced Oct 7, 2024
Merge main into releases/v3 #2529
Merged
Merge releases/v3 into releases/v2 #2531
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg 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

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