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 — Hotfix Zstd breaking due to version change in runners by lvpx · Pull Request #1353 · actions/toolkit

Conversation

@lvpx

@lvpx lvpx commented Feb 20, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Summary

Currently zstd check is dependent on the text output of the zstd --version to include zstd command line interface. This text changed to *** Zstandard CLI (64-bit) v1.5.4, by Yann Collet *** breaking the check and @actions/cache always falling back to gzip compression.

Implementation

  • Set to use gzip if the version output string is empty which should be the case if zstd is not installed.
  • Introduced --quiet flag to zstd so moving on the zstd --version should output machine readable version parsable via SemVer instead of text.
  • Removed code that checks for version less than 1.3.2 as it was not working. Now we default to using zstd without --long as that is what currently happens.

Next Steps

Will have another PR that fixes use of zstd with --long as intended. This release should unblock zstd usage.

Issues

Fixes #1341

Sorry, something went wrong.

Uh oh!

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

All reactions
lvpx added 5 commits February 20, 2023 10:05
@lvpx
Add debug statements
f2aa430
@lvpx
Test passing quiet as argument
652109d
@lvpx
bump version
c2d3089
@lvpx
Fix bug with version shortcircuiting because of version being null
3630ea6
@lvpx
Hotfix zstd version change only
9e06993
@lvpx
lvpx requested a review from a team as a code owner February 20, 2023 13:13
lvpx added 4 commits February 20, 2023 13:27
@lvpx
Removed code that checks for version less than 1.3.2 as it was not wo…
1d1d545
…rking. Defaulting to zstd without long as that is what is always happening currently.
@lvpx
Fix lint issues
83dffb7
@lvpx
Fix version number
4fd4259
@lvpx
0.0.1
e18b2d8
@lvpx
lvpx requested a review from a team as a code owner February 20, 2023 13:44
@lvpx
lvpx force-pushed the pdotl/zstd-version-fix branch from 976c8e8 to 853e85a Compare February 20, 2023 13:52
@lvpx
Bump version using npm
0f91c9c
@lvpx
lvpx force-pushed the pdotl/zstd-version-fix branch from 853e85a to 0f91c9c Compare February 20, 2023 13:53
bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

@bishal-pdMSFT

bishal-pdMSFT commented Feb 20, 2023

Copy link
Copy Markdown

Checks are failing. Please fix the unit tests.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lvpx
Update debug statement to include latest command
6ec5174
@lvpx lvpx mentioned this pull request Feb 20, 2023
Fix zstd version parsing [cache] #1345
Closed
bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts Resolved

Uh oh!

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

bishal-pdMSFT
bishal-pdMSFT approved these changes Feb 20, 2023
View reviewed changes
lvpx added 5 commits February 20, 2023 14:59
@lvpx
Add default value and rename args
cf3dd06
@lvpx
Fix lint issues
a9d266b
@lvpx
Add release info
bc713ab
@lvpx
Fix failing windows test
7c15bf6
@lvpx
Add debug statement for exact zstd version value and remove dependenc…
e6e2984
…e on version for now
@lvpx
lvpx force-pushed the pdotl/zstd-version-fix branch from 8708d41 to e6e2984 Compare February 20, 2023 19:13
@lvpx
lvpx merged commit 0db3029 into main Feb 20, 2023
@lvpx lvpx mentioned this pull request Feb 20, 2023
Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners actions/cache#1118
Merged
7 of 10 tasks
cdce8p
cdce8p reviewed Feb 20, 2023
View reviewed changes
Comment thread packages/cache/src/internal/cacheUtils.ts
core.debug(`Checking ${app} ${additionalArgs.join(' ')}`)
try {
await exec.exec(`${app} --version`, [], {
await exec.exec(`${app}`, additionalArgs, {

@cdce8p cdce8p Feb 20, 2023

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.

Thanks again @pdotl!

Just saw this while looking at the PR. '${app}' seems a bit redundant. The first argument should be a string and app is already one. Maybe you can fix that when you address the zstd --long issue. It would be a bit much to open a separate PR for it 😅

Sorry, something went wrong.

Uh oh!

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

bishal-pdMSFT and lvpx reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

@lvpx lvpx Feb 21, 2023

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.

Sure @cdce8p will take this up in the next PR.

Sorry, something went wrong.

Uh oh!

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

All reactions
Phantsure
Phantsure reviewed Feb 21, 2023
View reviewed changes

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

Looks fine to remove --long check entirely. --quiet would supress warnings but not clear how that would help in semver readable text

Sorry, something went wrong.

Uh oh!

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

All reactions
@cdce8p

cdce8p commented Feb 21, 2023

Copy link
Copy Markdown
Contributor

--quiet would supress warnings but not clear how that would help in semver readable text

Found this in the documentation for zstd

V, --version: display version number and exit. Advanced : -vV also displays supported formats. -vvV also displays POSIX support. -q will only display the version number, suitable for machine reading.

All reactions

Sorry, something went wrong.

Uh oh!

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

@padlar padlar mentioned this pull request Jun 28, 2023
Golangci-lint cache input key is wrong on re-runs statnett/image-scanner-operator#5
Closed
@jromero-pg jromero-pg mentioned this pull request Jun 30, 2023
🐛 - partial match downloads incompatible cache file tespkg/actions-cache#31
Closed
@bateleurX bateleurX mentioned this pull request Jul 7, 2023
setup-node can't use zstd compression in Ubuntu 22.04 runners actions/setup-node#800
Closed
2 of 5 tasks
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
@lvpx
Merge pull request actions#1353 from actions/pdotl/zstd-version-fix
7b1ff6c
Hotfix Zstd breaking due to version change in runners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@Phantsure Phantsure Phantsure left review comments
@cdce8p cdce8p cdce8p left review comments
@bishal-pdMSFT bishal-pdMSFT bishal-pdMSFT 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.

cacheUtils.getCompressionMethod broke with zstd 1.5.4

Uh oh!

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

4 participants

@lvpx @bishal-pdMSFT @cdce8p @Phantsure
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.