Skip to content

scripts: Don't generate fboss_bins.tar.zst.tar.gz #445

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

timn-nexthop
Copy link

@timn-nexthop timn-nexthop commented May 21, 2025

package-fboss.py --compress generated 2 tar files:

  1. fboss_bins.tar.zst.tar.gz, which is really just a .tar.gz of all the binaries. Because it was using single-threaded compression this took 10 minutes.
  2. fboss_bins.tar.zst. Generating this takes about 16 seconds.

10 minutes is way too long to wait for a build to finish, and having the same data in 2 formats isn't helpful.

Step 2 was added in #251, but it left step 1 in place. Remove step 1. You do now need zstd support to extract the archive, but zstd has been around for a long time now.

`package-fboss.py --compress` generated 2 tar files:
1. fboss_bins.tar.zst.tar.gz, which is really just a .tar.gz of all the
binaries. Because it was using single-threaded compression this took 10
minutes.
2. fboss_bins.tar.zst. Generating this takes about 16 seconds.

10 minutes is way too long to wait for a build to finish, and having the
same data in 2 formats isn't helpful.

Remove facebook#1. There is no benefit to wasting all this time. Note that
`Packaging_and_running_FBOSS.md` mentions the output of this script is
called `fboss_bins.tar.gz` which wasn't true even before this change. It
is true that you now need zstd support to extract the archive.

Run the package script. Notice that it's much faster now, and you get
less output.
@timn-nexthop timn-nexthop marked this pull request as ready for review May 22, 2025 16:22
@timn-nexthop
Copy link
Author

2528b4e already made this change just before I made my PR, but I didn't notice because I hadn't updated to latest main yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants