Repository navigation
Eliminate shell errors during Jarjar artifact packaging in Bazel CI builds. - #5364
Merged
Merged
Conversation
…uilds.
Shaded artifact packaging emits non-fatal `unzip` and `rm` shell errors in Bazel CI logs that make real failures harder to spot. Kotlin library targets include `.jdeps` dependency files alongside `.jar` outputs in their default file sets, so `unzip` fails on non-archive inputs. The runner script also deletes optional `build-data.properties*` files without `-f`, which prints missing-file errors whenever an archive omits them.
Example log output removed:
```text
INFO: From ExternalJarjarLibrary dagger-spi/artifact-classes.jar:
[bazel-out/k8-fastbuild/bin/dagger-spi/main/java/dagger/spi/model/model.jdeps]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: bazel-out/k8-fastbuild/bin/dagger-spi/main/java/dagger/spi/model/model.jdeps may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of bazel-out/k8-fastbuild/bin/dagger-spi/main/java/dagger/spi/model/model.jdeps or
bazel-out/k8-fastbuild/bin/dagger-spi/main/java/dagger/spi/model/model.jdeps.zip, and cannot find bazel-out/k8-fastbuild/bin/dagger-spi/main/java/dagger/spi/model/model.jdeps.ZIP, period.
rm: cannot remove 'build-data.properties*': No such file or directory
```
Filtering Jarjar packaging inputs to `.jar` archives and passing `-f` to `rm` keeps the packaging output clean.
RELNOTES=N/A
PiperOrigin-RevId: 1024009512
copybara-service
Bot
force-pushed
the
test_1022962517
branch
from
November 17, 2026 21:34
d836ad8 to
cf2ebb9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Eliminate shell errors during Jarjar artifact packaging in Bazel CI builds.
Shaded artifact packaging emits non-fatal
unzipandrmshell errors in Bazel CI logs that make real failures harder to spot. Kotlin library targets include.jdepsdependency files alongside.jaroutputs in their default file sets, sounzipfails on non-archive inputs. The runner script also deletes optionalbuild-data.properties*files without-f, which prints missing-file errors whenever an archive omits them.Example log output removed:
Filtering Jarjar packaging inputs to
.jararchives and passing-ftormkeeps the packaging output clean.RELNOTES=N/A