8000 Eliminate shell errors during Jarjar artifact packaging in Bazel CI builds. by copybara-service[bot] · Pull Request #5364 · google/dagger · GitHub
[go: up one dir, main page]

Skip to content

Eliminate shell errors during Jarjar artifact packaging in Bazel CI builds. - #5364

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1022962517
Nov 17, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1022962517

Conversation

@copybara-service
Copy link
Copy Markdown

Eliminate shell errors during Jarjar artifact packaging in Bazel CI builds.

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:

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

…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
copybara-service Bot merged commit cf2ebb9 into master Nov 17, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_1022962517 branch November 17, 2026 21:34
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.

1 participant

0