Closed Bug 1715896 Opened 4 years ago Closed 3 years ago

Add mach command for decompressing zst files on Windows

Categories

(Firefox Build System :: Mach Core, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1754290

People

(Reporter: bugzilla, Unassigned)

References

Details

I don't really know whether this is the right component for this, but here's the problem:

  • Download an artifact from taskcluster, such as full crashreporter symbols;
  • Uh-oh! It's a .tar.zst file! But I'm running mozilla-build on Windows!
  • Since our mach environment already uses zstandard, it would sure be nice to be able to quickly decompress such a file from the command line.

Thanks for the report 👍
FWIW, this would also be solved by having a "real" Linux environment in which you can install the CLI tools you need.

See Also: → 1699826

Note we already have a script that does that: taskcluster/scripts/misc/zstdpy (with the -d flag), but it needs to be run manually with the global mach virtualenv (which using mach python wouldn't use) in ~/.mozbuild/_virtualenvs/mach

True, there is a workaround. To make it more explicit for future viewers: ~/.mozbuild/_virtualenvs/mach/bin/python <topsrcdir>/taskcluster/scripts/misc/zstdpy -d <file> should extract zst files on Windows.

Priority: -- → P5

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Mach Core

Recent enough versions of tar support zstd archives with tar --zstd or tar -a, if the zstd executable is present on the system. The switch to msys2 might the right occasion to install zstd in MozillaBuild.

Flags: needinfo?(mhentges)

Works for me 👍, will ship with MozillaBuild 4.0.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(mhentges)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.