Skip to content
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

fix: go back to bsdtar-prebuilt 3.7.4 but with a release with a working windows binary #969

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

gregmagolan
Copy link
Collaborator

@gregmagolan gregmagolan commented Oct 19, 2024

Fixes tar extract regression in 2.8.0 due to bump to bsdtar-prebuilt 3.7.5 in #940.

bsdtar-prebuilt 3.7.5 (which depends on libarchive 3.7.5) has a regression that showed up in testing of our internal silo repo when attempting to bump bazel-lib. previously working tests with tar extracts starting to fail with invalid tar header. I also tested with a test bsdtar-prebuilt 3.7.7 release, built with libarchive 3.7.7, to see if there was a regression in libarchive 3.7.5 (one such regression was mentioned in https://github.com/libarchive/libarchive/releases/tag/v3.7.6) but also hit the same failure. Another possibility is BCR patches for libarchive 3.7.5 that were copied over from 3.7.4 may not be correct for 3.7.5.

In any case, to get back to a working version of tar in bazel-lib, this change goes back to safety by switching to a bsdtar-prebuilt 3.7.4 release with a working Windows binary: https://github.com/aspect-build/bsdtar-prebuilt/releases/tag/v3.7.4-4.

@jbedard
Copy link
Collaborator

jbedard commented Oct 19, 2024

Is there any way to test this here in bazel-lib?

@gregmagolan
Copy link
Collaborator Author

Is there any way to test this here in bazel-lib?

I'm not sure what it is about those particular tests in silo that causes tar extract to fail. Would be good to track it down and make a minimal repro test in the future. For now I tested this change with a patch in silo and verified it fixes the issue.

@gregmagolan gregmagolan merged commit 1e45f06 into main Oct 19, 2024
30 checks passed
@gregmagolan gregmagolan deleted the bazel_lib_bump branch October 19, 2024 06:04
@gregmagolan
Copy link
Collaborator Author

FYSA @alexeagle @dzbarsky

@alexeagle
Copy link
Collaborator

Isn't this just going to break again the next time we upgrade libarchive?

@gregmagolan
Copy link
Collaborator Author

Isn't this just going to break again the next time we upgrade libarchive?

Likely yes. We have no idea why it was broken on silo. We need a repro outside of silo for this so we can figure out why it was built wrong so we can fix it without having to test in silo.

jbedard pushed a commit to aspect-build/aspect-cli that referenced this pull request Oct 23, 2024
Picks up bazel-contrib/bazel-lib#969 that fixes
tar extract regression.

### Changes are visible to end-users: no

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 90aab309d171e7c901f4e1cfd19803aa8c34ee6e
jbedard pushed a commit to aspect-build/aspect-cli that referenced this pull request Oct 24, 2024
Picks up bazel-contrib/bazel-lib#969 that fixes
tar extract regression.

### Changes are visible to end-users: no

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 90aab309d171e7c901f4e1cfd19803aa8c34ee6e
jbedard pushed a commit to aspect-build/aspect-cli that referenced this pull request Oct 24, 2024
Picks up bazel-contrib/bazel-lib#969 that fixes
tar extract regression.

### Changes are visible to end-users: no

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 90aab309d171e7c901f4e1cfd19803aa8c34ee6e
fhanau added a commit to cloudflare/workerd that referenced this pull request Nov 24, 2024
fhanau added a commit to cloudflare/workerd that referenced this pull request Nov 24, 2024
- Previous tar issues were resolved in bazel-contrib/bazel-lib#969.
- Drop outDir in types tsconfig to unblock rules_ts update
fhanau added a commit to cloudflare/workerd that referenced this pull request Nov 24, 2024
- Previous tar issues were resolved in bazel-contrib/bazel-lib#969.
- Drop outDir in types tsconfig to unblock rules_ts update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants