instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GoogleCloudPlatform__pubsub__21 | GoogleCloudPlatform/pubsub | 21 | defect | e18129f36143f6179c1ec139e98e1e531cac9c51 | 3b452484ce70a9076e1da310dea48260a90c831b | Cps throughput fix | Fixes an issue where the CPS gcloud publisher's latency buckets only recording 1 record for each batch, so the throughput numbers were off by a multiple of that size.
Also adds a unit test to test equivalence between old recordLatency run n times and the batch recordLatency with batch size n.
| diff --git a/load-test-framework/src/main/java/com/google/pubsub/clients/common/MetricsHandler.java b/load-test-framework/src/main/java/com/google/pubsub/clients/common/MetricsHandler.java
index 4b88f6a1..c0f84a0e 100644
--- a/load-test-framework/src/main/java/com/google/pubsub/clients/common/MetricsHandler.java
+++ b/... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the weird trailing-whitespace lines the pull request added in MetricsHandler.java and LatencyDistribution.java.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the overloaded recordLatency(long, int addCount) to record... | null |
GoogleCloudPlatform__pubsub__52 | GoogleCloudPlatform/pubsub | 52 | defect | efa03995dbeef2b0adba9200a9864d4e50b831e7 | d6183b8aa17456ab8cfe4809c843e3c16ed59510 | PubsubProducer implementation | First iteration of implementing PubsubProducer.
Current progress: producer is capable of sending messages that are then subscribed to using a CPS subscription.
ProducerThreadPool can be run to try this functionality out.
PubsubConsumer is included, but nothing implemented yet.
Unit tests included only for things ... | diff --git a/load-test-framework/flic.iml b/load-test-framework/flic.iml
deleted file mode 100644
index 6826b98d..00000000
--- a/load-test-framework/flic.iml
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="... | 14 | 13 | 3 | [{"id": "G0", "claim": "The reviewer asks what the benefit is of including both the deprecated cloud-pubsub-client and the new alpha google-cloud-pubsub client in the pom.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks what the... | null |
GoogleCloudPlatform__pubsub__60 | GoogleCloudPlatform/pubsub | 60 | defect | efa03995dbeef2b0adba9200a9864d4e50b831e7 | b7a62578759bc4307ff263c2145b7d13feff234f | Inject mapped API into loadtest framework | This pull request is dependent on #52 and should be merged after #52 is merged.
Purpose of PR is to inject the current implementation of the mapped API into the loadtest framework. This includes adding a new CPSPublisherTask, as defined by the steps in the wiki.
This PR has been updated with current PubsubProdu... | diff --git a/.travis.yml b/.travis.yml
index 1748eaf9..8a4957b2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
language: java
+
matrix:
include:
- os: linux
@@ -8,14 +9,10 @@ matrix:
- os: linux
jdk: openjdk7
-install:
-- mvn -f kafka-connector/pom.xml clean package
-- mvn -f jms-lig... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the extra blank line added between the @Parameter block for --cps_mapped_java_publisher_count and the field declaration in Driver.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Update the Preconditions error ... | null |
GoogleContainerTools__container-structure-test__123 | GoogleContainerTools/container-structure-test | 123 | defect | fe1c61b8f02743b43c43843c84c6e0f023526c65 | eaa26310917d092b60bb1adee25712a431c78e5b | Add test-report flag | fixes #115
Usage:
```
(add_report_flag)$bazel build :container-structure-test
(add_report_flag)$./bazel-bin/linux_amd64_stripped/container-structure-test test --image gcr.io/google-appengine/debian8 --config tests/debian_failure_test.yaml --test-report /tmp/test.json --verbosity=debug
(add_report_flag)$ cat... | diff --git a/.travis.yml b/.travis.yml
index abddb856..3a01e294 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,4 +23,5 @@ addons:
script:
- ./.gofmt.sh
- make
+ - bazel test tests:go_default_test
- ./tests/structure_test_tests.sh
diff --git a/cmd/BUILD.bazel b/cmd/BUILD.bazel
index fe0d383c..bfb47c6e 1006... | 6 | 6 | 2 | [{"id": "G0", "claim": "The test-report file-creation error path should not both log and return the error, and the reviewer asks whether PersistentPreRun should be used instead of PersistentPreRunE.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
GoogleContainerTools__container-structure-test__19 | GoogleContainerTools/container-structure-test | 19 | defect | ada3aad25dc5c6195511ebd5abc57e3c34225532 | e2d25502a02ab21cd73ed35895adbbdce2750e3a | Add option to pull image before running tests | This will allow users to pass the `-pull` flag to force a pull of an image before running tests.
Fixes #17 | diff --git a/BUILD.bazel b/BUILD.bazel
index a126cde7..5ad17f08 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -45,6 +45,7 @@ go_test(
deps = [
"//drivers:go_default_library",
"//vendor/github.com/ghodss/yaml:go_default_library",
+ "//vendor/github.com/fsouza/go-dockerclient:go_default_libr... | 1 | 1 | 0 | [{"id": "G0", "claim": "We should error when the pull option is passed without the docker driver, instead of attempting the pull.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__container-structure-test__25 | GoogleContainerTools/container-structure-test | 25 | defect | 48ed3fffe3f5a215047a8ee3a312401494039bac | 69f05d859b7dd9aadd67971cc71a94719d08dc73 | Refactor driver interface to accept variable args | This is a precursor change that will allow us to add drivers that accept different parameters than `image` and `save`.
Also, fix a small bug where the `TarDriver` was ignoring the `save` boolean parameter. | diff --git a/drivers/docker_driver.go b/drivers/docker_driver.go
index e363a1c6..569e10fb 100644
--- a/drivers/docker_driver.go
+++ b/drivers/docker_driver.go
@@ -38,7 +38,19 @@ type DockerDriver struct {
save bool
}
-func NewDockerDriver(image string, save bool) (Driver, error) {
+func NewDockerDriver(ar... | 3 | 3 | 1 | [{"id": "G0", "claim": "Replacing the typed driver signature with one taking []interface{} loses a bunch of type safety.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new DriverConfig struct should have comments about which drivers use which field."... | null |
GoogleContainerTools__container-structure-test__254 | GoogleContainerTools/container-structure-test | 254 | defect | c300c3b717e4ba1711123787d70bfa9bf722fc17 | 770da3dbabfdac04f732e89534888f1f47b529b2 | :sparkles: Add new output format JUnit | * deprecated `json` flag option
* added new flag option `output`
* added warning when using `test-report` as JSON is default and text not supported
* added JUnit support for `test-report`
* added tests for FinalResults
closes #207 | diff --git a/cmd/container-structure-test/app/cmd/test.go b/cmd/container-structure-test/app/cmd/test.go
index 808df572..f6766e98 100644
--- a/cmd/container-structure-test/app/cmd/test.go
+++ b/cmd/container-structure-test/app/cmd/test.go
@@ -79,6 +79,10 @@ func NewCmdTest(out io.Writer) *cobra.Command {
color.No... | 3 | 3 | 1 | [{"id": "G0", "claim": "The OutputValue String method's lookup array omits \"junit\", so the Junit value it defines has no string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error returned by OutputValue.Set for an unsupported value should b... | null |
GoogleContainerTools__container-structure-test__35 | GoogleContainerTools/container-structure-test | 35 | defect | 8432c055cea5342d2a5bef5ffc107072bd82931f | 30d5f927a0cb18f9f4eb7215a8689d728ba78abc | Add host driver | This PR implements a test driver for running directly on the host machine. This will allow us to create sandboxes based off of bazel "flattened" images and run the test binary directly inside them, in cases where it's not possible to use the existing drivers. In general, users should be discouraged from using this driv... | diff --git a/BUILD.bazel b/BUILD.bazel
index 904a6717..511a8b76 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -25,6 +25,7 @@ go_library(
importpath = "github.com/GoogleCloudPlatform/container-structure-test",
deps = [
"//drivers:go_default_library",
+ "//types/unversioned:go_default_library",
... | 4 | 4 | 0 | [{"id": "G0", "claim": "The nil check at the top of SetEnvVars (and the analogous one in ResetEnvVars) is unnecessary since ranging over a nil slice is a no-op, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error fr... | null |
GoogleContainerTools__container-structure-test__519 | GoogleContainerTools/container-structure-test | 519 | defect | 033edc57051763af3b8f74b9576079211f3485f3 | 3f2d712f840346fe7b2991f1d23d12aef612efc7 | Allow custom junit suite name via command line argument | Split off the non-bazel changes from: https://github.com/GoogleContainerTools/container-structure-test/pull/507
Currently, the same test suite name is used for every test, which doesn't look great in most CI systems that parse junit.xml files. | diff --git a/cmd/container-structure-test/app/cmd/test.go b/cmd/container-structure-test/app/cmd/test.go
index 14953622..89cd3131 100644
--- a/cmd/container-structure-test/app/cmd/test.go
+++ b/cmd/container-structure-test/app/cmd/test.go
@@ -205,7 +205,7 @@ func run(out io.Writer) error {
channel := make(chan interf... | 2 | 2 | 1 | [{"id": "G0", "claim": "Avoid duplicating the hardcoded default JUnit suite name string by defining a public constant DefaultJunitSuiteName in pkg/output and using it both in getJunitSuiteName and in the --junit-suite-name flag help text.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope... | null |
GoogleContainerTools__jib__2734 | GoogleContainerTools/jib | 2,734 | defect | d13b71cc603ca6c8415f7519eff8f323ca4fb2ec | 1ff543019d19efd79e8014d8a69df5d8b467ce06 | Enable multi-platform image building and add integration test | Closes #2523.
Removes the guard for the multi-platform image building feature.
Adds an integration test. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java
index 9054d2bd72..f0456116cc 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java
+++ b/jib-core/src/main/ja... | 6 | 5 | 0 | [{"id": "G0", "claim": "The whole `<container>` block in the test pom can probably be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should also cover multiple tags — add a second tag and make two `pullManifest()` calls to compare the ... | null |
GoogleContainerTools__jib__2761 | GoogleContainerTools/jib | 2,761 | defect | d13b71cc603ca6c8415f7519eff8f323ca4fb2ec | 81bbaa9bbb87aad94dfab8e5c58ff034441ade05 | Throw IllegalArgumentException when jib.to.tags is set to a collection containing a null value. | Fixes #2760 | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TargetImageParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TargetImageParameters.java
index c03ab4d2cc..c09e080322 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TargetImage... | 8 | 7 | 2 | [{"id": "G0", "claim": "The local variable `tags` in getTags() is confusing with the class member `tags`; use a name that differentiates it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tag validation should also handle whitespace in t... | null |
GoogleContainerTools__jib__2780 | GoogleContainerTools/jib | 2,780 | defect | 1abee1e88fee768e71d7d91df23aaeb0942ad503 | b86d4f17cfcc27ab21c965c53c24f8b6200ff51f | Don't schedule multiple threads downloading same base image layers in StepsRunner | ~~On top of #2779. Review #2779 first.~~
Fixes #2750.
Eventually I decided to go with the minimally disruptive approach to resolve the issue.
Inside `obtainBaseImageLayers()` where the method schedules threads for each layer in an `Image`, it now checks first if a thread was previously scheduled for the given ... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ObtainBaseImageLayerStep.java b/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ObtainBaseImageLayerStep.java
index 5ab21f08cb..a02aea8aa8 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ObtainBaseI... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test could mock the executor the way the contribution instructions indicate instead of the hand-rolled concrete class, by using TestingExecutors.sameThreadScheduledExecutor or wrapping a real executor with MoreExecutors.listeningDecorator.", "category": "testing", "verdict": "opposed", "prio... | null |
GoogleContainerTools__jib__2783 | GoogleContainerTools/jib | 2,783 | defect | 1abee1e88fee768e71d7d91df23aaeb0942ad503 | a80b6daeb85f297aba9a5650a9490fe88727e8d4 | Fix platform configuration in Gradle plugin | Fixes #2781.
We started with the default amd64/linux, and we were always adding new platforms. | diff --git a/jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java b/jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java
index 6545f00b99..e11e29430e 100644
--- a/jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/Conta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The default-platform handling in the getPlatforms() getter is awkward design — it feels weird for a getter to mutate things, and the reviewer asks whether setting the default could instead be delegated to a lower level of the system.", "category": "design", "verdict": "supported", "priority": "P... | null |
GoogleContainerTools__jib__2824 | GoogleContainerTools/jib | 2,824 | defect | 9063a42a94ce55cedda147fb3473134a60720432 | 37cf8959b592ea8b33fd0a9c754e7f8bed6380da | Handle OCI manifest and index with no mediaType | Fixes #2819.
As explained in #2819, the Docker spec requires `mediaType` in a manifest or manifest list. OTOH, the OCI spec doesn't require it. Therefore, if `mediaType` is not present (when schema 2), assume it's OCI.
And `manifests` and `config` are required in an OCI manifest or index, respectively. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java b/jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java
index 674d84eac4..1bb7522580 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java
++... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the UnknownManifestFormatException newly thrown when a schemaVersion-2 manifest has no mediaType and neither 'manifests' nor 'config'.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new branch returns OciI... | null |
GoogleContainerTools__jib__2849 | GoogleContainerTools/jib | 2,849 | defect | 2d621a4864a50ed117238c876e99fdf3cf52a8de | f7a71093c50e7de292885eb55ae3c844b1b105ec | Fill in directories for files added by filter. | This happens where parent directories are filtered
but need to be filled in for files in those
directories
fixes #2843
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java
index 0811fb9d2a..596c9b7fc8 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java
+++ b/jib-cli/src/main/java/com/google... | 3 | 1 | 0 | [{"id": "G0", "claim": "The parent directories filled in for a filtered-in file need to be added in reverse order.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The messaging of the non-file, non-directory exception should perhaps be different for th... | null |
GoogleContainerTools__jib__2862 | GoogleContainerTools/jib | 2,862 | defect | b829301d0efc3d67c0028f922ae5193ddfb40f4a | 7f4e83fdc2217d258ab9d3d4ba59ceff4759a90f | Compute entrypoint for a standard jar in exploded mode. | For #2845
This PR also contains some minor refactorings.
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarProcessor.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarProcessor.java
index a1e8443fae..9fa33503e9 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarProcessor.java
+++ b/jib-cli/src/main/java/com/google... | 11 | 11 | 2 | [{"id": "G0", "claim": "The new method's Javadoc should begin 'Computes the entrypoint for a standard jar in exploded mode.' in the third person, as the formatter used to enforce.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test can use tem... | null |
GoogleContainerTools__jib__2887 | GoogleContainerTools/jib | 2,887 | defect | 5fcd03764bc64772c28715e4c376a7ebfa7ba63b | 89658234b04f6cd589121cca3432f48ef662e0df | Modify CliLogger to use PrintWriter | Fixes #2886 | diff --git a/jib-cli/src/integration-test/JarCommandTest.java b/jib-cli/src/integration-test/JarCommandTest.java
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/jib-cli/src/integration-test/JarCommandTest.java
@@ -0,0 +1 @@
+
diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/cli2/B... | 3 | 2 | 0 | [{"id": "G0", "claim": "The SingleThreadedExecutor in Jar.java need not be a field; instantiate it as a local variable in call() before the try block.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the accidentally committed empty file jib-cli/src... | null |
GoogleContainerTools__jib__2910 | GoogleContainerTools/jib | 2,910 | defect | bf3df3b938fff145ad168589ee5b77e14b6beaa8 | 4032d494ee3a9e55f8badd08159d49334bb740ad | Migrate away from Docker Hub in integration tests | Due to the new Docker Hub rate limit, we are starting to see errors like
```
com.google.cloud.tools.jib.registry.BlobPullerIntegrationTest > classMethod FAILED
java.lang.RuntimeException: Command 'docker run --rm -d -p 5000:5000 --name registry-a8087b15-fa3c-401c-bcbe-09f2a5e52dc9 registry:2' failed: Unable to... | diff --git a/jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/JibIntegrationTest.java b/jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/JibIntegrationTest.java
index 5ded392b29..efcdd9efc5 100644
--- a/jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/JibIntegrationTes... | 3 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks whether the `localRegistry` field in ManifestPusherIntegrationTest can be removed as no longer needed.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The numbered variable names (manifestList1/2/3) introdu... | null |
GoogleContainerTools__jib__2927 | GoogleContainerTools/jib | 2,927 | defect | c300c7a52d51cb2ca6bfaa1a7d53e62a7da1944b | 2574cb2f5f4590b9d08c9992589cfd919c4a8862 | Implement packaged mode for spring boot jar | Simply copies the jar onto the container.
Note that this PR also contains some minor naming changes.
For #2848 | diff --git a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/cli2/JarCommandTest.java b/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/cli2/JarCommandTest.java
index 85d8e770e4..867ed5e9f6 100644
--- a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/cli2/JarCommandTes... | 5 | 5 | 0 | [{"id": "G0", "claim": "Rename the method computeEntrypointForPackagedSpringboot to computeEntrypointForPackagedSpringBoot to fix the camelCase of SpringBoot.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the test method testCreateLayers... | null |
GoogleContainerTools__jib__2938 | GoogleContainerTools/jib | 2,938 | defect | 02568ba12f4d6f0f400cf7e107f924e64803e8e6 | 1b351ecc566d980d3025b19190746b36cb3010a0 | Use cacheDirectories in cli commands | Integrates the new CacheDirectories util into the cli commands
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/cli2/Build.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/cli2/Build.java
index 5a163c6181..b6678488fd 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/cli2/Build.java
+++ b/jib-cli/src/main/java/com/google/cloud/tools/jib/c... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new failIfContextIsNotDirectory test should create its file with `temporaryFolder.newFile().toPath()` instead of `newFile(\"a.file\")` and should use the lambda-based exception-assertion style instead of try/catch.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "... | null |
GoogleContainerTools__jib__2972 | GoogleContainerTools/jib | 2,972 | defect | 7517170876702d1745c267fe76afb6fed17c14a3 | 7c04571131732b4351467e18d68ada6b622fa584 | Add option to specify base image for cli jar command | Closes #2923
This PR adds the `--from` option to the jib cli jar subcommand. It will be used to specify the desired base image. | diff --git a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java b/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java
index 532d7e8ea0..15ec376874 100644
--- a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java
+++ b/ji... | 5 | 5 | 1 | [{"id": "G0", "claim": "There is currently no good way to test the tar base image (verifying how the JibContainerBuilder was configured) without accessing the build context, so the new tar base image handling is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
GoogleContainerTools__jib__2975 | GoogleContainerTools/jib | 2,975 | defect | ee8519e88bda36f7e2f938d5bfb0862217820abd | c89009d7dc3748a06b6718e76760ce35002fec32 | Add more options to cli jar command | Options added:
- `--jvm-flags`
- `--exposed-ports`
- `--volumes`
- `--environment-variables`
- `--labels`
- `-u`, `--user`
- `--image-format`
- `--program-args` | diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
index c396e5ddf6..4a579b6eb1 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
+++ b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
@@ -19,6 ... | 6 | 6 | 1 | [{"id": "G0", "claim": "The --jvm-flags option description should include a comma-separated usage example such as -Dmy.property=value,-Xshare:off.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The --expose option description should include a usag... | null |
GoogleContainerTools__jib__2996 | GoogleContainerTools/jib | 2,996 | defect | f31d6e0b9a48b30e0851f17399e0e9d046724018 | 196d077def6e98f74ee2de3ff6da26517a74a0a9 | Refactor global Jib config management | Refactored out the code from `UpdateChecker` that handles `config.json` but with some changes:
- I am convinced that `ATOMIC_MOVE` is unnecessary, as @briandealwis pointed out in https://github.com/GoogleContainerTools/jib/issues/1273#issuecomment-441086981. For example, `Files.move()` is used to rename a file, and ... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/WriteTarFileStep.java b/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/WriteTarFileStep.java
index 88688a1375..f531917dad 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/WriteTarFileStep.java
+++ b... | 6 | 1 | 0 | [{"id": "G0", "claim": "The new GlobalConfig read/try-catch block in BuildImageMojo.execute() is a little verbose.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks what advantage creating config.json via a temp file plus Files.move has over s... | null |
GoogleContainerTools__jib__2999 | GoogleContainerTools/jib | 2,999 | defect | b9907fb013af9eaaa33a2aa5ef0780f4db81115d | 0d3fb9044aa6cb561b5563e515030bbd3e3a8204 | Add registry mirror config to jib-core API and Jib global config | Towards #1396.
* Jib Core
* Adds `Containerizer.withRegistryMirrors(...)` to the jib-core API.
* Jib Maven/Gradle plugins
* Adds the property `registryMirrors` to the global Jib config.
* Also see #3002 for the proposed public doc change.
```json
{
"disableUpdateCheck": false,
"registryMirrors":... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java
index 1bd06d11a3..ecf6242768 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java
+++ b/jib-core/src/main/java/com/google/clou... | 5 | 3 | 0 | [{"id": "G0", "claim": "BuildContext should use ImmutableListMultimap instead of ImmutableMap<String, ImmutableList<String>> for the registry mirrors it stores and returns.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's documentation r... | null |
GoogleContainerTools__jib__3008 | GoogleContainerTools/jib | 3,008 | defect | 185a6cdedc51c9f42b71158e8b32c4275b53bf97 | 4ee88d66639e521bfa83fdd196e78565eacd5a57 | Preserve modification time after unzipping file | Closes #2913
Note that this PR will set the modification times of the directories that are not entries of the zip or tar file to a constant value (epoch plus 1) instead of letting them have a modification time of the current time. | diff --git a/jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/ZipUtil.java b/jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/ZipUtil.java
index 6ed3585b64..da760c8f78 100644
--- a/jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/ZipUtil.java... | 3 | 2 | 0 | [{"id": "G0", "claim": "While fixing ZipUtil, the PR should also make TarExtractor preserve modification times.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ZipUtil test should assert hardcoded timestamp constants read manually from the chec... | null |
GoogleContainerTools__jib__3009 | GoogleContainerTools/jib | 3,009 | defect | ee8519e88bda36f7e2f938d5bfb0862217820abd | 569731d07538e192b8c0e58490c3c511d35fad30 | Add option to specify entrypoint | Adds `--entrypoint`. #2975 needs to be merged first.
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
index c396e5ddf6..91155ff0f9 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
+++ b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Jar.java
@@ -19,6 ... | 3 | 1 | 0 | [{"id": "G0", "claim": "A warning should be logged when both entrypoint and jvm flags are set, and it may be better placed in JarFiles (instead of Jar#call()) for easier testing.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Users may be unable to include... | null |
GoogleContainerTools__jib__3034 | GoogleContainerTools/jib | 3,034 | defect | 4f0edce52a998f9101b98530df814162cdc8023e | 9f53ad777e8755d202d0b2f7a74a85f41d0ff6a7 | Configurable gradle configurations | Fixes parts of #1778
This introduces a new configuration option `configurationName` that just sets the name of the gradle configuration that should be used. | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java
index 63093d2feb..330028470a 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java
++... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new configuration-name getter should be named like the other getters in JibExtension (getConfigurationName) and the duplicate read-style accessor readConfigurationName should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
GoogleContainerTools__jib__3035 | GoogleContainerTools/jib | 3,035 | defect | 4fb8018536451ffeff901a6021c6c68fef1c71f1 | 66c324f7eb62eccc64b3411d285983a83a0584f6 | Modify jib cli jar command to preserve source file path | Modifies the jar command to use a fixed directory `exploded-jar` which is located under `<user-cache>/jib-cli-cache/projects/<hash>` (where `<user-cache>` is normally `/tmp` on Linux if undefined) when unzipping. This is to preserve the sourceFile layer entry which is used to calculate the "selector" for cached layer t... | diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/CacheDirectories.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/CacheDirectories.java
index eeaa3155af..93dd3750e4 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/CacheDirectories.java
+++ b/jib-cli/src/main/java/com/google... | 9 | 7 | 1 | [{"id": "G0", "claim": "The \"Cache\" naming of the exploded-jar directory (EXPLODED_JAR_CACHE_DIR / getExplodedJarCache) is misleading because its purpose is intermediate storage for further processing, not keeping contents cached, and should be renamed.", "category": "maintainability", "verdict": "supported", "priori... | null |
GoogleContainerTools__jib__3050 | GoogleContainerTools/jib | 3,050 | defect | 0643c900a92542e86fcabbe1a7e31086bd9c7f5b | 56fb12449827f2fdcaee3deb161ac34fb53d5aa0 | [jib-cli-jar] Add option to specify creation time of container | Required a bit of refactoring to use the `Instants` class which was initially implemented for the build command.
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Instants.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Instants.java
similarity index 93%
rename from jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Instants.java
rename to jib-cli/src/main/java/com/google/cloud/to... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test that checks the default time of the built image when the --creation-time option is not given.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If no default is given for --creation-time, at least document the default val... | null |
GoogleContainerTools__jib__3091 | GoogleContainerTools/jib | 3,091 | defect | 703a92187dfc3471ba268a0e0d8ac499775035d1 | cde38d5da2172ec0bac18b771505984b0ebd8106 | Overhaul gradle project properties test infra | We've gotten to the point where mocking Gradle APIs is not scaling. | diff --git a/.gitignore b/.gitignore
index a414d36ded..5030f209bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
build/
+!jib-gradle-plugin/src/test/resources/gradle/application/build/
target/
out
bin/
diff --git a/jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleProjectPropertiesTe... | 1 | 1 | 0 | [{"id": "G0", "claim": "Since the test file is being refactored anyway, the assertions in GradleProjectPropertiesTest should be converted to Truth.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
GoogleContainerTools__jib__3108 | GoogleContainerTools/jib | 3,108 | defect | fece5c72cda187da651364cd9d4616b6d42fb634 | 437e1dd80151e8e9eb4878b794f8a364ab27f5a8 | Use adoptopenjdk base image instead of openjdk in the Jib CLI | <!--
Before filing a pull request, make sure:
1. A corresponding issue exists or file an issue, and that
2. Your implementation plan is approved by the community.
This helps to reduce the chance of having a pull request rejected.
-->
| diff --git a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarFiles.java b/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarFiles.java
index 5d96d33d8a..c2e85d2ff6 100644
--- a/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarFiles.java
+++ b/jib-cli/src/main/java/com/google/cloud/tools... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should update the CHANGELOG to document the base-image change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3130 | GoogleContainerTools/jib | 3,130 | defect | 3a0944fc1a053b9d3946ef7a990952f4d15258f9 | e68b6999049f3c1c27127cfcdf2527545597b1ca | Implement --http-trace in Jib CLI | Fixes #3126 . | diff --git a/jib-cli/build.gradle b/jib-cli/build.gradle
index f6ede1de08..fc31e6c04b 100644
--- a/jib-cli/build.gradle
+++ b/jib-cli/build.gradle
@@ -24,6 +24,7 @@ dependencies {
implementation dependencyStrings.JACKSON_DATABIND
implementation dependencyStrings.GUAVA
implementation dependencyStrings.PICOCLI
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the assertion chain with the suggested truth assertion assertThat(logger.getHandlers()).hasLength(1).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3159 | GoogleContainerTools/jib | 3,159 | defect | 5c5cf90c6d82ea7b7f21a7c1513da1ee8d7b9a54 | 46d56e8a1b9fa06468802dd7b9eefdff3126eb81 | #3158 - [Jib core] Tar archives with same contents are not reproducible | Fixes #3158.
Sets the mod time on TarArchiveEntry to DEFAULT_MODIFICATION_TIME (Epoch second 1) in order to create reproducible Tar images. Associated unit test creates 2 tars output streams from the same input 2 seconds apart to show the failure if we don't explicitly set the TarArchiveEntry mod time
| diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/tar/TarStreamBuilder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/tar/TarStreamBuilder.java
index 006963ae02..f5559745e5 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/tar/TarStreamBuilder.java
+++ b/jib-core/src/main/java/com/go... | 3 | 2 | 2 | [{"id": "G0", "claim": "The change may be unnecessary because the current behaviour is working as intended (ReproducibleLayerBuilder already adds the reproducibility behaviour), and the author should say where this is actually an issue.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_exist... | null |
GoogleContainerTools__jib__3173 | GoogleContainerTools/jib | 3,173 | defect | c2cc4365f1fbc0ad8cebf66881695e27d181253b | 49511160246bec87c457b31436b887ec65ae7782 | <includes> and <excludes> filtering feature for extraDirectories | ~~On top of #3171. Review it first.~~
Fixes #2564 (and #3164).
The idea is to allow glob patterns that works similar to how [`maven-resources-plugin`](https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html) works. This makes adding a single file easy as well.
```xml
<ex... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtraDirectoriesParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtraDirectoriesParameters.java
index a3e65bae3b..f364555f91 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/E... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `else` guarding the explicit-permissions `builder.addEntry` call should be dropped (the suggestion replaces `} else {` with `}`) so that call does not sit in an `else` branch.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim... | null |
GoogleContainerTools__jib__3211 | GoogleContainerTools/jib | 3,211 | defect | f58e3bd07808bb8acf87ee0303f44b1ea8f8f2a4 | 1d46b14257d39f550ace12354962b883d344da4b | CHANGELOG for reproducible buildTar change / refactor tests | Follow-up to https://github.com/GoogleContainerTools/jib/pull/3159#pullrequestreview-634011371. | diff --git a/jib-core/CHANGELOG.md b/jib-core/CHANGELOG.md
index 918791bfcb..f22b9ec1a6 100644
--- a/jib-core/CHANGELOG.md
+++ b/jib-core/CHANGELOG.md
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
### Changed
- `JavaContainerBuilder#fromDistroless()` and `JavaContainerBuilder#... | 1 | 1 | 0 | [{"id": "G0", "claim": "Initialize all the `TarArchiveEntry headerFile` variables at the beginning of the test to keep the arrange and assert blocks separate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3280 | GoogleContainerTools/jib | 3,280 | defect | cc774626c5af8663866ba8345e3f51a531df91da | f10fa1034bf3dcc816fbb368ea5f2179fcebb917 | Java 9 long classpath support to enable deterministic class loading order | Fixes #1871 (where #2733 and #1907 are duplicates).
Also addresses #2471 (AppCDS), #894, #1640, and #3147.
---
As discussed in the previous PR (https://github.com/GoogleContainerTools/jib/pull/2866#discussion_r512790086) , for Java 9+, we can always achieve explicitly listing all the dependencies by leveraging... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
index 77506f5d95..96ee2fd163 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
+++ b/jib-core/src/main... | 6 | 1 | 1 | [{"id": "G0", "claim": "The INHERIT entrypoint check should match on the first element (e.g. `rawEntrypoint.get().get(0).equals(\"INHERIT\")`) rather than requiring a singleton entrypoint list.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The explan... | null |
GoogleContainerTools__jib__3306 | GoogleContainerTools/jib | 3,306 | defect | 87e26d4693e2fbf1c11062f9c22214b2b972bed3 | c1ccab4eaaeb00557a3e8e27361ab1ec1ea2008f | Add packaging condition to format exception message correctly in MavenProjectProperties#createJibContainerBuilder | fixes: #3214
Added packaging condition to format exception message correctly
| diff --git a/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenProjectProperties.java b/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenProjectProperties.java
index b2ee6265ae..b72e103fbc 100644
--- a/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MavenProjectPro... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test should call the statically imported assertThrows instead of Assert.assertThrows.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test should assert the exception message with Truth (assertThat(thrownEx... | null |
GoogleContainerTools__jib__3336 | GoogleContainerTools/jib | 3,336 | defect | 7db578637cafd0087be7b2247d12b2865ed0f3c1 | 80fe92aa6d741ab5cd6bee7313473811c21968cc | Add jar size suffix to target dependency paths on image when dependency jars have same artifact ID and version | Fixes #3331. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
index 96ee2fd163..068b1d767c 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java
+++ b/jib-core/src/main... | 2 | 1 | 0 | [{"id": "G0", "claim": "When duplicate jars also have the same file size, appending the file size cannot disambiguate them, so the renaming should append incremented integers to the jar name instead (e.g. jar-name-1.jar, jar-name-2.jar).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduc... | null |
GoogleContainerTools__jib__3351 | GoogleContainerTools/jib | 3,351 | defect | 6383ae1723cd3b7206daba3913fcfda0525ea48f | 1024c121ddef5a4b52919768425ae0c4d8259f96 | Retry network operations with registries on I/O errors | Follow up of https://github.com/GoogleContainerTools/jib/issues/1409
It enables http client retry when the blob content is re-readable. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blob.java b/jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blob.java
index eb1d7d605e..fcc7602ed1 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blob.java
+++ b/jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blob.ja... | 10 | 6 | 3 | [{"id": "G0", "claim": "WritableContentsBlob.isRetryable() must not unconditionally return true since WritableContents can be any lambda and is not guaranteed re-readable; retryability should be decided per instance, e.g. via a Blobs.from(WritableContents, boolean) overload defaulting to false.", "category": "design", ... | null |
GoogleContainerTools__jib__3376 | GoogleContainerTools/jib | 3,376 | defect | a92ded13a67b02834e96ec6ba430fc074aced2b2 | 151ef93d2522380b5296d52b05dcbb14b91a1d91 | create obj and call Optional#isPresent() before access. fix sonar bug continued. | Fixing similar sonar bugs of 'Call "Optional#isPresent()" before accessing the value'.
List of sonar bugs in PR:
- https://sonarcloud.io/project/issues?id=GoogleContainerTools_jib&issues=AXrlUTs_cB_fbtb802ZK&open=AXrlUTs_cB_fbtb802ZK
- https://sonarcloud.io/project/issues?id=GoogleContainerTools_jib&issues=AXrt4J9x... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java
index ee7058faeb..7d160b2d12 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleP... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the local variable `dir` to `directory` in getWorkingDirectoryChecked.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3435 | GoogleContainerTools/jib | 3,435 | defect | d401e7690d33139ae526992e7b8782ff2a4c3308 | fe8876c4955436b2347bae43c09abf9aaf041852 | Fix class cast exception in gradle plugin main class detection logic | The main class detection logic in the gradle plugin always assumed that
the `Main-Class` attribute, set in the main jar task, is a string. This
is not always true, as it sometimes makes sense to set it to a provider
of String in order to link multiple configurations together.
The logic now tests the class of the ... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java
index 7d160b2d127..0d2d9d5a327 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/Gradl... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should also update jib-gradle-plugin/CHANGELOG.md to document the ClassCastException fix.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new changelog entry should be reworded to \"Fixed `ClassCastExcep... | null |
GoogleContainerTools__jib__3526 | GoogleContainerTools/jib | 3,526 | defect | 0392bdae1933f6e245dc47d5e07f57cb65d90399 | 2bf83d7da6b919ea949323e00861a9d25c6ad83c | Expose jib.from.platforms as property. | Feature request: fixes #2742
| diff --git a/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java b/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java
index 284f1f8a44..7194a8766c 100644
--- a/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfig... | 5 | 5 | 1 | [{"id": "G0", "claim": "Rewrite ofString to drop the unnecessary null check (the repo uses NullAway), reject whitespace with [^/ ]+/[^/ ]+ instead of allowing and trimming it, and use a Pattern/Matcher as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
GoogleContainerTools__jib__3550 | GoogleContainerTools/jib | 3,550 | defect | c28af3fbc11234105f01956ec096f68856daf61e | ca0d341db407bfcde317f0660ac0e1b327779b99 | Throw exception if extraDirectories config contains invalid path | Fixes #3542
A couple of tests that depend on absolute path may fail, I will look into that later | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java
index 41a92616b2..bdbfec567d 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java
++... | 12 | 10 | 4 | [{"id": "G0", "claim": "Use the existing java.io.FileNotFoundException instead of creating a new exception class.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Validation should not fail when the extraDirectories path is Jib's default directory src/main/j... | null |
GoogleContainerTools__jib__3593 | GoogleContainerTools/jib | 3,593 | defect | 71e3977d5b1e81b860b29c3c62c8ea807a1d2d28 | 0587339dc522e55eb045f7a073ef474e068784a7 | fix format config on buildSrc kts srcipt | in buildSrc srcipt: Cannot access class 'com.google.cloud.tools.jib.api.buildplan.ImageFormat'
<!--
Before filing a pull request, make sure:
1. A corresponding issue exists or file an issue, and that
2. Your implementation plan is approved by the community.
This helps to reduce the chance of having a pull re... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java
index c8aa5e63ca..f8a489b398 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParame... | 2 | 1 | 0 | [{"id": "G0", "claim": "Move the new container.setFormat(\"Docker\") line up to line 202 of JibExtensionTest so all the setup code is in one place.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Put the new setFormat test in a test method of its o... | null |
GoogleContainerTools__jib__3598 | GoogleContainerTools/jib | 3,598 | defect | 71e3977d5b1e81b860b29c3c62c8ea807a1d2d28 | 8d97b6a69a4b6cde3404805658bc08e2694fe414 | Set up docker machine with VirtualBox for migration to big-sur | <!--
Before filing a pull request, make sure:
1. A corresponding issue exists or file an issue, and that
2. Your implementation plan is approved by the community.
This helps to reduce the chance of having a pull request rejected.
-->
| diff --git a/kokoro/continuous.sh b/kokoro/continuous.sh
index fabb102a64..9f9399674d 100755
--- a/kokoro/continuous.sh
+++ b/kokoro/continuous.sh
@@ -5,8 +5,16 @@ set -o xtrace
gcloud components install docker-credential-gcr
+# Docker service does not run by default in Big Sur but can be started with the followin... | 2 | 2 | 2 | [{"id": "G6", "claim": "The plugin tests will probably also need --privileged and --network=host flags on their docker run invocations.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G7", "claim": "docker login fails because the htpasswd auth file is not accessibl... | null |
GoogleContainerTools__jib__3641 | GoogleContainerTools/jib | 3,641 | defect | 4d9336b68ee06e31b3df670dbbbbccb637c4feda | bfa02f7c0c2c8b91e2e1310583887cccd00f03af | Add imagePushed field to jib-image.json | This keeps track of which images were pushed onto the target registry, useful for when skipExistingImages option is in use especially in a mono-repo contest.
https://github.com/GoogleContainerTools/jib/issues/3636
| diff --git a/jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/ContainerizerIntegrationTest.java b/jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/ContainerizerIntegrationTest.java
index 48728492d6..87bc36e86c 100644
--- a/jib-core/src/integration-test/java/com/google/cloud/tools/jib/a... | 7 | 7 | 3 | [{"id": "G0", "claim": "The two-line 'pushed.../skipped' comment in testSteps_forBuildToDockerRegistry_skipExistingDigest should be merged into a single comment line as suggested, and the Google Java formatter may need to be run after applying it.", "category": "maintainability", "verdict": "supported", "priority": "P2... | null |
GoogleContainerTools__jib__3664 | GoogleContainerTools/jib | 3,664 | defect | 7c6e5fe9fc7958b679be7acc8e66f2baf744d0c1 | 37b970a9f253e4775ccae8309c9667819f8dd32d | remaining javax.servlet instances | Takes out the remaining appearances of javax.servlet in favor of Jakarta.
Follow up to #3661 and #3663. | diff --git a/jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/WarProjectIntegrationTest.java b/jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/WarProjectIntegrationTest.java
index 01fc3dfb08..b7389b9f95 100644
--- a/jib-gradle-plugin/src/integration-test/java/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The stray '// jkljlk' comment added in testBuild_tomcatServlet25 looks accidental and should be removed (reviewer asks whether it is an intentional change).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3670 | GoogleContainerTools/jib | 3,670 | defect | 9d8be07f20f5400d79acc5eb3309905ffb6474e4 | 50a4035e660a3316650ac30d56d520d018fb5a68 | :zap: Gradle build optimizations | fixes #3669
Before filing a pull request, make sure to do the following:
- [x] Create a new issue at https://github.com/GoogleContainerTools/jib/issues/new/choose.
- [ ] Ensure that your implementation plan is approved by the team.
- [x] Verify that integration tests and unit tests are passing after the change.
... | diff --git a/build.gradle b/build.gradle
index 3a9f2bdfe9..a8fd5b1b3b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -262,6 +262,14 @@ subprojects {
'Built-Gradle': gradle.gradleVersion
}
}
+ normalization {
+ runtimeClasspath {
+ metaInf {
+ ignoreAttribute("Built-By")
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The buildCache { local { enabled = true } } block added to settings.gradle is redundant and should be removed, since the local build cache is already the default when org.gradle.caching=true is set.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
GoogleContainerTools__jib__3672 | GoogleContainerTools/jib | 3,672 | defect | 9d8be07f20f5400d79acc5eb3309905ffb6474e4 | 918dbfeaf178349e10f023c466a2aa9e032e55db | Improve error message when environment map contains null values (#3671) | This PR improves jib's error message when a value in the environment map (`container.environment`) is `null`. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ContainerConfiguration.java b/jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ContainerConfiguration.java
index 6656917386c..283e16da7d2 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ContainerConf... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added code in ContainerConfiguration.java should be autoformatted with google-java-format to avoid checkstyle failures.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3707 | GoogleContainerTools/jib | 3,707 | defect | 78f069b6dcb2ce1edbb43dc909006d7bf905fe85 | 41dac0aef37e14692d0f68906cccf93e7701e55d | fix: error when base image doesn't support target platforms | Fixes #3563: Converts warnings to exceptions.
- [X] Create a new issue at https://github.com/GoogleContainerTools/jib/issues/new/choose.
- [x] Ensure that your implementation plan is approved by the team.
- [X] Verify that integration tests and unit tests are passing after the change.
- [X] Address all checkstyle... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PlatformChecker.java b/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PlatformChecker.java
index 04819903b61..6f58544b736 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PlatformChecker.java
+++ b/... | 3 | 2 | 0 | [{"id": "G0", "claim": "The mismatch tests should use assertThrows with a Truth assertThat(...).hasMessageThat().isEqualTo(...) assertion instead of the try/catch Assert.fail pattern.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The assertion-... | null |
GoogleContainerTools__jib__3709 | GoogleContainerTools/jib | 3,709 | defect | a789a113cd0e26586d3e5fb2427f20661ed3296b | 439a7078dfcb0095fadfc14e3f5d55a59bceb770 | Use Gradle Property and Provider for creationTime and filesModificationTime | Fixes #3708
Usage:
To use lazy evaluation for `jib.container.creationTime` or `jib.container.filesModificationTime`, the value can be provided as an ISO 8601 date-time string like this:
```
jib {
container {
creationTime = project.provider { value }
filesModificationTime = project.provi... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java
index f8a489b3987..f0a9d268733 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerPara... | 4 | 4 | 4 | [{"id": "G0", "claim": "The getters should fall back to the default values (EPOCH_PLUS_SECOND / EPOCH) instead of returning creationTime/filesModificationTime with getOrNull(), which could return null.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
GoogleContainerTools__jib__3715 | GoogleContainerTools/jib | 3,715 | defect | 9027c8dafb8ee12b9d37e1521caf62dfbcc3d374 | 367fe4c64789aba2fdfd9d77fbecc6718a4d266a | Support pulling OCI Image Index manifests | Resolves #2749
Implementation follows https://github.com/GoogleContainerTools/jib/issues/3700#issuecomment-1171283502
- Add Accept header application/vnd.oci.image.index.v1+json during base image pull
- Re-use the logic from V22ManifestListTemplate to select the target platform diget via a new interface Manifest... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java b/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java
index 7c3481faf7f..0f77aeae71d 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java
... | 5 | 5 | 4 | [{"id": "G0", "claim": "The new ManifestListTemplate.java license header says Copyright 2017 but should say 2022.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code does not conform to the project's automatic formatting and should be reformatted with... | null |
GoogleContainerTools__jib__3717 | GoogleContainerTools/jib | 3,717 | defect | 9027c8dafb8ee12b9d37e1521caf62dfbcc3d374 | e2bb15ef48f5b9eca9265907df722ef98374c385 | Support base image layer compressed with zstd | This is a proposal to resolve #3714
Changes:
- Use commons-compress automatic algorithm detection via magic bytes
- Add optional dependency zstd-jni from commons-compress to support application/vnd.oci.image.layer.v1.tar+zstd layers
Before filing a pull request, make sure to do the following:
- [x] Create... | diff --git a/build.gradle b/build.gradle
index b73c6a580cf..de3013ba6ee 100644
--- a/build.gradle
+++ b/build.gradle
@@ -29,6 +29,7 @@ project.ext.dependencyStrings = [
MAVEN_EXTENSION: 'com.google.cloud.tools:jib-maven-plugin-extension-api:0.4.0',
COMMONS_COMPRESS: 'org.apache.commons:commons-compress:1.21',
+... | 3 | 2 | 2 | [{"id": "G0", "claim": "In CacheStorageWriterTest, verifyCachedLayer uses compression for its asserts even in the test about uncompressed layers, so testWriteUncompressed appears to depend on the gzip compression settings (it passes with JDK GZIPOutputStream but not with commons-compress GzipCompressorOutputStream).", ... | null |
GoogleContainerTools__jib__3767 | GoogleContainerTools/jib | 3,767 | defect | 60ec66cef3bccdc3a6bf1713ae3cff4925a386d3 | ac8a2c7f45bb227e9f35f373510356c524c0ba7c | Check for existence of layers in cache before returning cached base image | **In this PR:**
Implementation of a proposed solution in #3733’s discussions, to check for presence of layer files in cache in addition to the manifest json before returning the cached base image(s). This would also address the unauthorized error described in #2220 and also reported in #2007’s comments.
**Details... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java b/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java
index 0f77aeae71..c63967c235 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStep.java
++... | 14 | 11 | 2 | [{"id": "G0", "claim": "Approach 2, which tests layer presence by retrieving each cached layer inside a broad try/catch, adds redundant retrieval overhead and relies on exceptions; prefer approach 1's explicit directory-existence check.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "in... | null |
GoogleContainerTools__jib__3769 | GoogleContainerTools/jib | 3,769 | defect | 7ba06b4eedbeafd2e3e21666af54dcdf48f1bbff | 6cfaf185a1f2d47d478c1b81f0f37c874c0a701f | chore: refactor gradle integration test to cater for network proxy changes in kokoro release environment | Recent changes in the Kokoro release environment temporarily patch in a jvm argument (`-Djavax.net.ssl.trustStore=/var/cache/proxy.crt.jks`) causing the container build by Jib to be modified when run. Since Jib gradle integration tests try to assert on the container configuration values (including jvm args) of the gene... | diff --git a/jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SingleProjectIntegrationTest.java b/jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SingleProjectIntegrationTest.java
index 86c1b48c6f..4fe0cc13c3 100644
--- a/jib-gradle-plugin/src/integration-test/... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be easier to remove any line matching \"javax.net.ssl.trustStore\" from the output list before comparing instead of tracking two versions of the expected output.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3872 | GoogleContainerTools/jib | 3,872 | defect | f77d1055ca18dbf0382109087e4f82a089ec6106 | 48efd6b0b0d4315384de5bc81b1ad6744d45ff94 | Replace google api util base64 with java util base64 | Replace usage of the `com.google.api.client.util.Base64` (which is deprecated) with `java.util.Base64`. | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/http/Authorization.java b/jib-core/src/main/java/com/google/cloud/tools/jib/http/Authorization.java
index e4dd284cbd..66d7899b1f 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/http/Authorization.java
+++ b/jib-core/src/main/java/com/google/c... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request removes the `(payloadData = Base64.decodeBase64(jwtParts[1])) == null` check when decoding the JWT payload, and the reviewer asks what particular reason there was for removing it.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id":... | null |
GoogleContainerTools__jib__3886 | GoogleContainerTools/jib | 3,886 | defect | fa8cc958f4ddad55a9eba043fdfd7c32eddb49b6 | 77884f6c459cc8f8aa98a497f4749c486bd63a75 | ci: test suite and script changes for compatibility with Kokoro ubuntu migration | Resolves #3928, with fixes needed for compatibility with kokoro ubuntu migration:
1. Docker container removal issue ([details](https://github.com/GoogleContainerTools/jib/pull/3886#issuecomment-1337722294))
* When stopping docker containers as part of cleanup, exclude the hosting container that is running the... | diff --git a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java b/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java
index a56151c526..d882bda689 100644
--- a/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java
+++ b/ji... | 2 | 2 | 1 | [{"id": "G0", "claim": "The container IP obtained via docker inspect should be calculated once in the Kokoro setup script and stored as an environment variable (exposed to the tests through a getter), instead of being re-calculated in every test, which may result in inconsistent behavior.", "category": "maintainability... | null |
GoogleContainerTools__jib__3904 | GoogleContainerTools/jib | 3,904 | defect | 49936f256475379806d144db238c25afea73e7c7 | f8faae33716ee9ff2a523612f79c1036b22368c6 | Fixes #3898, log an info instead of o warning when entrypoint makes t… | …he image to ignore jvm parameters
Before filing a pull request, make sure to do the following:
- [ ] Create a new issue at https://github.com/GoogleContainerTools/jib/issues/new/choose.
- [ ] Ensure that your implementation plan is approved by the team.
- [ ] Verify that integration tests and unit tests are pa... | diff --git a/jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java b/jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java
index f8b7abfc15..e49e4d93a1 100644
--- a/jib-plugins-common/src/main/java/com/google/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The five-line comment above the LogEvent.info call should be omitted because LogEvent.info is self-explanatory; the rationale may be better suited as a PR description.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
GoogleContainerTools__jib__3936 | GoogleContainerTools/jib | 3,936 | defect | e183448d5142573f5b0549cef5f24e6859c87890 | ff7265518ad35aac4f2f6083bb4b9864aa4d5a79 | Support lazy configuration for `mainClass` and `jvmFlags` properties of `ContainerParameters` | This is a fix for #3927. I tried to follow the changes for similar issues applied in https://github.com/GoogleContainerTools/jib/pull/3242 and https://github.com/GoogleContainerTools/jib/pull/3709 as suggested in https://github.com/GoogleContainerTools/jib/issues/3927#issuecomment-1428027692.
If there is anything t... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java
index 5ebf8b5de12..ee037083214 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerPara... | 2 | 2 | 1 | [{"id": "G0", "claim": "Because `mainClass` was previously nullable, the PR should keep a `Nullable`-annotated getter (and setter) for it in ContainerParameters out of consideration for backward compatibility, similar to the earlier from.auth conversion for lazy evaluation.", "category": "design", "verdict": "supported... | null |
GoogleContainerTools__jib__4003 | GoogleContainerTools/jib | 4,003 | defect | 934814cc5a2f8d22af8644aabe0d2a2e803818cd | 528c0a0ada66e1a1b77b1fb081903c9920f820b6 | use gradle lazy Provider for entrypoint container parameter | use gradle lazy Provider for entrypoint container parameter (fixes #4027)
Thank you for your interest in contributing! For general guidelines, please refer to
the [contributing guide](https://github.com/GoogleContainerTools/jib/blob/master/CONTRIBUTING.md).
Before filing a pull request, make sure to do the follo... | diff --git a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java b/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java
index c5699bc0889..d7d6d32cffc 100644
--- a/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerPara... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR removes @Nullable from the public getEntrypoint getter and makes it return an empty list instead of null, and the same nullability concern raised in PR #3936 applies here, so nullability should be preserved.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
GoogleContainerTools__jib__4204 | GoogleContainerTools/jib | 4,204 | defect | 9d1e3f1e51bc721cb25be021abda97c09517aa35 | 206b8669f9bbe2f97b7dea63b3b39513b6e990f5 | Update apache-commons to 1.26.0 and set PAX headers to address build reproducibility issue | Fixes #4141 🛠️ | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java b/jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java
index c258eb2b5f0..9474cedeecb 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java
+++... | 5 | 5 | 3 | [{"id": "G0", "claim": "Remove the comment added above clearTimeHeaders for directory entries: its claim that there is no way to find out the modification time the user might have set in JIB settings is not true, because Jib intentionally doesn't allow setting the mod time of directories.", "category": "documentation",... | null |
GoogleContainerTools__jib__4216 | GoogleContainerTools/jib | 4,216 | defect | 14888744f4c7067f5bb0ae3434f6171ad278f57e | d17072932627bf16ac975a08b3b18c07d9af2358 | fix: modify default entrypoint for WAR containerization to be compatible with Jetty 12+ | Fixes #4211
Verified locally with `./gradlew integrationTest` | diff --git a/docs/faq.md b/docs/faq.md
index 85fcffea4b..273854ead9 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -901,7 +901,7 @@ The `war` command currently supports containerization of standard WARs. It uses
* Resources Layer
* Classes Layer
-The default entrypoint when using a jetty base image will be `java -ja... | 3 | 2 | 0 | [{"id": "G0", "claim": "The comment above the new entrypoint branch says 'If using jetty 12 or later' although the code never detects the Jetty version (it just assumes the default jetty:latest is v12+), so it should be reworded to reflect that.", "category": "documentation", "verdict": "supported", "priority": "P2", "... | null |
GoogleContainerTools__jib__4249 | GoogleContainerTools/jib | 4,249 | defect | 8b13f0d1bd4d88d7b3503b570ae065e322daaf47 | 888d78075d29f40fdaf0746db3af31c30ec60515 | feat: determine platform details from local docker installation for jibDockerBuild | This code has been tested manually with `jib/examples/helloworld/`.
**Notes:**
- If manifest list found then the log picks the image that contains the same os and architecture as the local docker environment (derived through `docker info`). Otherwise, it throws an error when no matching os and architecture are ... | diff --git a/jib-core/src/main/java/com/google/cloud/tools/jib/api/DockerClient.java b/jib-core/src/main/java/com/google/cloud/tools/jib/api/DockerClient.java
index 50ce2f463f..304f62512f 100644
--- a/jib-core/src/main/java/com/google/cloud/tools/jib/api/DockerClient.java
+++ b/jib-core/src/main/java/com/google/cloud/t... | 4 | 2 | 1 | [{"id": "G0", "claim": "The local-docker base-image fetch should error out instead of silently falling back to the first built image when no built image matches the local Docker Engine's os and architecture.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
GoogleContainerTools__jib__4345 | GoogleContainerTools/jib | 4,345 | defect | 390c175c95a4396ecb7c63e6bab8dec04050b63f | 2109529c2a1c0a3bda55861041dd696db01aa3ce | Check Maven user properties with highest precedence when fetching a property value | Fixes #4344 🛠️
| diff --git a/jib-maven-plugin/CHANGELOG.md b/jib-maven-plugin/CHANGELOG.md
index 9aca1d9f0d..a228c38adf 100644
--- a/jib-maven-plugin/CHANGELOG.md
+++ b/jib-maven-plugin/CHANGELOG.md
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## [unreleased]
### Added
+- Check Maven user pr... | 3 | 1 | 0 | [{"id": "G0", "claim": "getUserProperties may return null, so a null check should be added before using its result.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry should be updated to read \"Update retrieval of maven properties to ... | null |
GoogleContainerTools__jib__4418 | GoogleContainerTools/jib | 4,418 | defect | 586b4a6f57f208bb4128aa7286741a23bf9eda7b | 1d6bfe9cd79fe68b1fdc6c2b9b1a3a69be4ef823 | deps: update `org.ow2.asm:asm` to version 9.8 for java 25 support | Updated `org.ow2.asm:asm` to version 9.8 for java 25 support and replace deprecated `getNextTarEntry` with `getNextEntry`
BEGIN_COMMIT_OVERRIDE
deps: update org.ow2.asm:asm to version 9.8 for java 25 support
END_COMMIT_OVERRIDE
Fixes #4417🛠️
| diff --git a/build.gradle b/build.gradle
index bfa4d3807e..a6d76b491b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -35,7 +35,7 @@ project.ext.dependencyStrings = [
JACKSON_DATABIND: 'com.fasterxml.jackson.core:jackson-databind',
JACKSON_DATAFORMAT_YAML: 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml... | 3 | 1 | 0 | [{"id": "G0", "claim": "For consistency and readability the new for loop in TarExtractor.extract should be refactored into the more idiomatic while-loop form used elsewhere in the codebase.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MainClas... | null |
GoogleContainerTools__skaffold__10002 | GoogleContainerTools/skaffold | 10,002 | defect | 3e7c0304a175f6ad52524232bc26777cfd01978c | 28d051513d2e8c5d6c7846755b7d6f1a2b73c6c9 | chore: Migrate gsutil usage to gcloud storage | Automated: Migrate {target_path} from gsutil to gcloud storage
This CL is part of the on going effort to migrate from the legacy `gsutil` tool to the new and improved `gcloud storage` command-line interface.
`gcloud storage` is the recommended and modern tool for interacting with Google Cloud Storage, offering better ... | diff --git a/deploy/setup-secret.sh b/deploy/setup-secret.sh
index cf814a1487b..f0d95362d23 100755
--- a/deploy/setup-secret.sh
+++ b/deploy/setup-secret.sh
@@ -34,7 +34,7 @@ function download_existing_key() {
KEY_IDS=$(gcloud iam service-accounts keys list --iam-account=metrics-writer@${METRICS_PROJECT_ID}.iam.gser... | 3 | 1 | 1 | [{"id": "G0", "claim": "The automated edit merged two enumDescriptions string elements onto one line in vendor/google.golang.org/api/cloudbuild/v1/cloudbuild-api.json, making the JSON invalid and causing parsing errors.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id"... | null |
GoogleContainerTools__skaffold__10020 | GoogleContainerTools/skaffold | 10,020 | defect | 3e7c0304a175f6ad52524232bc26777cfd01978c | 1314ce7d0f9bd0104a4c021891f7a72a4e6daff7 | fix: update gcr.io/kpt-fn/ to ghcr.io/kptdev/krm-functions-catalog fo… |
Fixes: #10019
**Description**
The KRM function images were removed from ghcr.io/kpt-fn on March 13th. Updating them to use the new ghcr.io/kptdev/krm-functions-catalog
| diff --git a/pkg/skaffold/render/transform/transform.go b/pkg/skaffold/render/transform/transform.go
index 9e58cf28625..121fc6446e0 100644
--- a/pkg/skaffold/render/transform/transform.go
+++ b/pkg/skaffold/render/transform/transform.go
@@ -35,35 +35,35 @@ var (
allowListedTransformer = []string{"set-labels"}
trans... | 4 | 3 | 3 | [{"id": "G0", "claim": "The new ghcr.io/kptdev/krm-functions-catalog/set-labels:v0.1 image reference may not exist (docker pull returns \"manifest unknown\"); reviewer asked to confirm it exists.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ne... | null |
GoogleContainerTools__skaffold__10054 | GoogleContainerTools/skaffold | 10,054 | defect | c01b5d75b5a0ae6a608ae499741fcce92ba8c321 | 5e522c3cbe641a583b18bd27ae40d3d28d0e311c | fix: add --set and --set-value-file flag support to delete command and unit tests | **Description**
This PR adds support for the `--set` and `--set-value-file` flag to the `skaffold delete` command, allowing users to override templated manifest fields with key-value pairs during deletion operations.
Fixes #10053
**Changes made:**
1. Updated `cmd/skaffold/app/cmd/flags.go` line 764 to include ... | diff --git a/cmd/skaffold/app/cmd/delete_test.go b/cmd/skaffold/app/cmd/delete_test.go
new file mode 100644
index 00000000000..6c5d4e679bc
--- /dev/null
+++ b/cmd/skaffold/app/cmd/delete_test.go
@@ -0,0 +1,42 @@
+/*
+Copyright 2019 The Skaffold Authors
+
+Licensed under the Apache License, Version 2.0 (the "License");
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new test only checks that the --set and --dry-run flags exist and does not verify they are correctly bound to opts.ManifestsOverrides and dryRun, and should override the package-level dryRun variable for test isolation.", "category": "testing", "verdict": "supported", "priority": "P1", "scop... | null |
GoogleContainerTools__skaffold__10058 | GoogleContainerTools/skaffold | 10,058 | defect | 26c03671072280ba68924f58efe26c4e51527a11 | e66533fc75c555757b7e872a53e4cc9e550153d4 | fix(cloudrun): tail logs from all services concurrently | ## Summary
Fix Cloud Run `--tail` log streaming to show logs from **all** deployed services concurrently, instead of only one randomly selected service.
Fixes https://github.com/GoogleContainerTools/skaffold/issues/10057
## Problem
When running `skaffold run --tail` with multiple Cloud Run services, only on... | diff --git a/cmd/skaffold/app/cmd/delete_test.go b/cmd/skaffold/app/cmd/delete_test.go
new file mode 100644
index 00000000000..6c5d4e679bc
--- /dev/null
+++ b/cmd/skaffold/app/cmd/delete_test.go
@@ -0,0 +1,42 @@
+/*
+Copyright 2019 The Skaffold Authors
+
+Licensed under the Apache License, Version 2.0 (the "License");
... | 4 | 3 | 3 | [{"id": "G0", "claim": "If cmd.Start() fails, the pw pipe writer is never closed while the streamLog goroutine is still spawned, leaking a goroutine blocked on pr that never sees EOF, and resource.isTailing should not be set to true when the command failed to start.", "category": "correctness", "verdict": "supported", ... | null |
GoogleContainerTools__skaffold__3141 | GoogleContainerTools/skaffold | 3,141 | defect | 5a78a0e74c2d8d87e2d64b245f328bad289c58ee | 2c3970846b287bb27d67b35a87a1c0ff15ac6834 | init --analyze should return unique image names | Fixes #3128
**Submitter Checklist**
These are the criteria that every PR should meet, please check them off as you
review them:
- [x] Includes [unit tests](../DEVELOPMENT.md#creating-a-pr)
- [ ] Mentions any output changes.
- [ ] Adds documentation as needed: user docs, YAML reference, CLI reference.
- [ ]... | diff --git a/pkg/skaffold/initializer/init.go b/pkg/skaffold/initializer/init.go
index 061272fecfe..56500b409ce 100644
--- a/pkg/skaffold/initializer/init.go
+++ b/pkg/skaffold/initializer/init.go
@@ -462,6 +462,20 @@ func canonicalizeName(name string) string {
return canonicalized[:253]
}
+// deduplicate removes ... | 3 | 3 | 0 | [{"id": "G0", "claim": "Simplify the change by testing it in TestResolveBuilderImages and implementing set semantics for unresolvedImages via map[string]interface{} in autoSelectBuilders instead of in the json printer methods.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
GoogleContainerTools__skaffold__5589 | GoogleContainerTools/skaffold | 5,589 | defect | a976e5249d35fc75182ad076856cee11d8e685db | 683108e561e7c447cf14249341af3c84fa1a8e52 | Adapting validation for docker container network mode to include ENV_VARS | **Description**
<!-- Describe your changes here. The more detail, the easier the review! -->
In PR #5088 I enabled the possibility of reusing the network stack from another docker container.
That mode required either a _name_ or a _docker id_ to check what container you want to reuse the network stack from.
The ... | diff --git a/pkg/skaffold/schema/validation/validation.go b/pkg/skaffold/schema/validation/validation.go
index a47b3a167f5..387f840a60d 100644
--- a/pkg/skaffold/schema/validation/validation.go
+++ b/pkg/skaffold/schema/validation/validation.go
@@ -219,6 +219,72 @@ func validateUniqueDependencyAliases(artifacts []*late... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new errors in extractContainerNameFromNetworkMode use the TEST-phase error code StatusCode_TEST_CUSTOM_CMD_PARSE_ERR with a generic CHECK_CUSTOM_COMMAND suggestion; they should reuse StatusCode_INIT_DOCKER_NETWORK_INVALID_CONTAINER_NAME or define a new INIT-phase code (e.g. StatusCode_INIT_D... | null |
GoogleContainerTools__skaffold__6213 | GoogleContainerTools/skaffold | 6,213 | defect | 969b7c944357e61554d828f73617a73616e821c5 | 5c138cbca9bd64d84871f21d4922189d137504a2 | Add --wait=false flag to skaffold cleanup kubectl delete to speedup the phase | ## What is the problem being solved
Fixes #6123, Skaffold process takes a long time to terminate after ctrl-c. This PR:
- adds `--wait=false` flag to kubectl delete that is used during skaffold's Cleanup phase
## Why is this the best approach?
This is the best approach because it makes the cleanup phase take cons... | diff --git a/pkg/skaffold/deploy/kubectl/cli.go b/pkg/skaffold/deploy/kubectl/cli.go
index 778c2b1f8c1..52d4e431cac 100644
--- a/pkg/skaffold/deploy/kubectl/cli.go
+++ b/pkg/skaffold/deploy/kubectl/cli.go
@@ -74,7 +74,7 @@ func NewCLI(cfg Config, flags latestV1.KubectlFlags, defaultNamespace string) CL
// Delete run... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new `--wait=false` behavior is untested and the existing cleanup tests still assert the old delete command line; fix the tests and, if there are no existing tests for `kubectl delete`, add them so the `--wait` flag cannot be added back.", "category": "testing", "verdict": "sup... | null |
GoogleContainerTools__skaffold__6446 | GoogleContainerTools/skaffold | 6,446 | defect | 953594000be68fa8fad0ec4636ab03f8153a1c08 | f43765896d953fb71d67d8b35320e3f8701e7ef1 | add skaffold inspect tests list command | ### What is the problem being solved?
Fixes #6355, adding skaffold command to verify if tests will be run. This is done by extending the `skaffold inspect` command to have a new subcommand `skaffold inspect tests` and `skaffold inspect tests list`. This is needed as an upstream project that depends on skaffold requ... | diff --git a/cmd/skaffold/app/cmd/inspect.go b/cmd/skaffold/app/cmd/inspect.go
index a876e1c456b..5e19cd51094 100644
--- a/cmd/skaffold/app/cmd/inspect.go
+++ b/cmd/skaffold/app/cmd/inspect.go
@@ -39,7 +39,7 @@ func NewCmdInspect() *cobra.Command {
WithDescription("Helper commands for Cloud Code IDEs to interact wit... | 3 | 3 | 2 | [{"id": "G0", "claim": "The description of the `skaffold inspect tests list` command seems incorrect - it says the command prints the list of profile names (text carried over from the profiles list command) rather than describing the tests it lists.", "category": "documentation", "verdict": "supported", "priority": "P1... | null |
GoogleContainerTools__skaffold__6767 | GoogleContainerTools/skaffold | 6,767 | defect | 15f88b6a5ee2eb3b2a3928346ec99090817a6782 | 5bea9eb0600340dc0d19b6f42b7ec195080a8cec | fix(helm): handle templated namespaces consistently | fixes #6749
Currently if there is a templated namespace with helm that does not currently exist in the cluster, skaffold will fail even though a regular deploy would succeed. As mentioned in #6749, this is because currently skaffold fetches the namespaces before we template which results in this failure. The fix ... | diff --git a/pkg/skaffold/deploy/util/namespaces.go b/pkg/skaffold/deploy/util/namespaces.go
index 83af160c935..64b3cd2ee9e 100644
--- a/pkg/skaffold/deploy/util/namespaces.go
+++ b/pkg/skaffold/deploy/util/namespaces.go
@@ -22,6 +22,7 @@ import (
kubectx "github.com/GoogleContainerTools/skaffold/pkg/skaffold/kuber... | 4 | 3 | 3 | [{"id": "G0", "claim": "When a release's namespace is not templated, the namespace is never added to the list, because the append sits in the error branch of the template expansion (and on error an empty value is appended instead).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
GoogleContainerTools__skaffold__6793 | GoogleContainerTools/skaffold | 6,793 | defect | 6f33db9e565da6bf655cba72019df6174d8f9a48 | ea4895cc9b1bd99cc562ef589789e8cebdb8d16d | feat: add dockerfile support to skaffold lint and top 2 dockerfile rules | fixes #6103 by adding 2 dockerfile lint rules:
- DockerfileCopyOver1000Files
- DockerfileCopyContainsGitDir
The rules have the following output when triggered (note `skaffold lint` is run against modified version of `examples/microservices` here w/ misconfigurations added to the Dockerfiles, not the actual `exampl... | diff --git a/cmd/skaffold/app/cmd/lint.go b/cmd/skaffold/app/cmd/lint.go
index f2c818a9b32..1c7a6a7dcd4 100644
--- a/cmd/skaffold/app/cmd/lint.go
+++ b/cmd/skaffold/app/cmd/lint.go
@@ -23,6 +23,7 @@ import (
"github.com/spf13/cobra"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/lint"
+ "github.com/Google... | 5 | 5 | 2 | [{"id": "G0", "claim": "Remove the '// =====' decorative separator comment lines this PR added in pkg/skaffold/lint/linters.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Put an empty line between the new DockerCopyCommandInfo struct and the... | null |
GoogleContainerTools__skaffold__6796 | GoogleContainerTools/skaffold | 6,796 | defect | d8104cf331e41ee68f228476d97ce85cd9222ff5 | 420fdb2f0a154c772bcf4abebfeb74249f377110 | fix: Quotes in dockerfiles env vars break copy dependency checks | Fixes #6762
Signed-off-by: Pablo Caderno <kaderno@gmail.com>
<!-- Thank you for your contribution! -->
**Description**
<!-- Describe your changes here. The more detail, the easier the review! -->
Fixes the issue with quoted variables and "COPY" commands.
Before:
```
skaffold build
Generating tags...
... | diff --git a/pkg/skaffold/docker/parse.go b/pkg/skaffold/docker/parse.go
index 1d302e82b03..ba569cf5fe8 100644
--- a/pkg/skaffold/docker/parse.go
+++ b/pkg/skaffold/docker/parse.go
@@ -262,7 +262,7 @@ func extractCopyCommands(ctx context.Context, nodes []*parser.Node, onlyLastImag
case command.Env:
// one env co... | 2 | 1 | 0 | [{"id": "G0", "claim": "skaffold build fails when a Dockerfile COPY targets an empty directory, whereas docker build succeeds, and the author asks whether this difference is intended.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The author should ... | null |
GoogleContainerTools__skaffold__7149 | GoogleContainerTools/skaffold | 7,149 | defect | 1dbc7a2c8746201ccff73a54928a57d687eb020a | ff127069ad09ab0320bf3d1929904ce72399bb96 | feat: add better support and messaging around using helm with skaffold apply | fixes #7101
This PR makes it so that if a single helm release is specified with a namespace option and that release is the only deployment, skaffold will set the kubectl namespace to that namespace. In the case that a helm release is specified with a namespace option and another deployment exists (eg: helm + kubec... | diff --git a/pkg/skaffold/runner/deployer.go b/pkg/skaffold/runner/deployer.go
index 969871766d4..5d64a809c5b 100644
--- a/pkg/skaffold/runner/deployer.go
+++ b/pkg/skaffold/runner/deployer.go
@@ -66,11 +66,42 @@ func (d *deployerCtx) JSONParseConfig() v1.JSONParseConfig {
// GetDeployer creates a deployer from a gi... | 1 | 1 | 1 | [{"id": "G0", "claim": "skaffold apply should allow calling multiple helm releases that share the same namespace, but the new check returns an error whenever a helm namespace is set and the helm release count is not exactly 1.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
GoogleContainerTools__skaffold__7521 | GoogleContainerTools/skaffold | 7,521 | defect | 271caee2387430fb3fe57a50b38f5a5fc7e690cc | a6beccd2554a6db746991bf9d4f8f7547879d6d1 | fix: delete and Cleanup now have manifests plumbed through | Fixes #7456 | diff --git a/cmd/skaffold/app/cmd/delete.go b/cmd/skaffold/app/cmd/delete.go
index d88325c2f56..16a55fce514 100644
--- a/cmd/skaffold/app/cmd/delete.go
+++ b/cmd/skaffold/app/cmd/delete.go
@@ -18,12 +18,21 @@ package cmd
import (
"context"
+ "errors"
+ "fmt"
"io"
+ "os"
+ "path/filepath"
"github.com/spf13/co... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added manifest-resolution code in doDelete should be moved into a reusable function shared with cmd/dev.go, since the code is almost identical in both places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GoogleContainerTools__skaffold__7645 | GoogleContainerTools/skaffold | 7,645 | defect | 0d2979e4133fce4fa66b8937dfec38ee3b8e6800 | fbee77f4cf2c895275fd2fe3cf7285af51d9dcae | fix: support running multiple verify tests with same image | Fixes #7640 | diff --git a/integration/testdata/verify-succeed/skaffold.yaml b/integration/testdata/verify-succeed/skaffold.yaml
index 9ccf4fa446f..26d0c8e9936 100644
--- a/integration/testdata/verify-succeed/skaffold.yaml
+++ b/integration/testdata/verify-succeed/skaffold.yaml
@@ -1,13 +1,23 @@
apiVersion: skaffold/v3alpha1
kind:... | 2 | 1 | 0 | [{"id": "G0", "claim": "The counter variable may no longer be needed or used now that colliding container names get a UUID suffix instead of a counter, and it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A code comment shoul... | null |
GoogleContainerTools__skaffold__7785 | GoogleContainerTools/skaffold | 7,785 | defect | fb509d9a3e68b124c99eb62a5af762e9047e656b | c800693b2a4d6d8ebb03ab36e87f656fc7d66de7 | feat: add hooks support to render schema and phase | Fixes #7749
Adds support for `render` phase Lifecycle hooks at
`manifests.hooks`
NOTE: these hooks are pre/post the render phase and not per renderer | diff --git a/pkg/skaffold/hooks/env.go b/pkg/skaffold/hooks/env.go
index b2767ef1aa3..0d619faba20 100644
--- a/pkg/skaffold/hooks/env.go
+++ b/pkg/skaffold/hooks/env.go
@@ -53,6 +53,12 @@ type SyncEnvOpts struct {
Namespaces string
}
+// RenderEnvOpts contains the environment variables to be set in a dep... | 4 | 3 | 2 | [{"id": "G0", "claim": "For an application with k8s manifests only (rawYaml) there is no way to specify pre-render hooks, and the reviewer asks whether render hooks should instead be a top-level concept like Transform and Validate in RenderConfig.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
GoogleContainerTools__skaffold__7800 | GoogleContainerTools/skaffold | 7,800 | defect | 0164731ae119370aedd71501eb5cc1dfa1ccb3fa | 6cd95b580d1b27778676546660fa97437087e5fd | feat: upgrade profiles when running skaffold fix | fixes #7773
In PR, add code to walk through profiles and upgrade the patches in profile as well pipeline config.
Config considered so far
1) deploy.kubectl.manifests
2) deploy.kustomize.paths
3) deploy.kustomize.buildArgs
4) deploy.helm.releases
Testing instructions.
1) Checkout this PR and LOCAL=true ... | diff --git a/pkg/skaffold/schema/v2beta29/upgrade.go b/pkg/skaffold/schema/v2beta29/upgrade.go
index 53efb106816..abd65646c11 100644
--- a/pkg/skaffold/schema/v2beta29/upgrade.go
+++ b/pkg/skaffold/schema/v2beta29/upgrade.go
@@ -18,6 +18,8 @@ package v2beta29
import (
"encoding/json"
+ "fmt"
+ "strings"
"githu... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use the logger (log.Entry.Warn) instead of fmt.Println for the message about skipping kpt deploy sections.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider erroring when a profile patch path contains /deploy/kpt in... | null |
GoogleContainerTools__skaffold__8309 | GoogleContainerTools/skaffold | 8,309 | defect | 33af62e0a18f6a8cadce0006e9583a39f8b4c383 | b2f12f22112f7c05d2c51f2eaa12f4b996dd8e9f | feat: add new inspect namespaces list command to skaffold | fixes #8191 | diff --git a/cmd/skaffold/app/cmd/inspect.go b/cmd/skaffold/app/cmd/inspect.go
index 35e253c675c..fa3767f8abd 100644
--- a/cmd/skaffold/app/cmd/inspect.go
+++ b/cmd/skaffold/app/cmd/inspect.go
@@ -43,7 +43,7 @@ func NewCmdInspect() *cobra.Command {
WithDescription("Helper commands for Cloud Code IDEs to interact wit... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `namespaces` subcommand's description should be changed from \"View skaffold test information\", which was copied from `skaffold inspect tests`, to describe the namespaces command.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
GoogleContainerTools__skaffold__8335 | GoogleContainerTools/skaffold | 8,335 | defect | af7bd1f9ec8239ebcf7a808d8ed5e3d5ced895c6 | 4477cf13d15f8cf17a38a127007b9657953292fb | fix: add proper artifactOverrides->setValueTemplates conversion when upgrading from v2beta29 | fixes #8321 | diff --git a/integration/fix_test.go b/integration/fix_test.go
index 6b49ba9efde..3ab7fb9ff42 100644
--- a/integration/fix_test.go
+++ b/integration/fix_test.go
@@ -51,6 +51,17 @@ func TestFixStdout(t *testing.T) {
skaffold.Run().WithConfig("-").InDir("testdata/fix").InNs(ns.Name).WithStdin(out).RunOrFail(t)
}
+fu... | 3 | 3 | 1 | [{"id": "G0", "claim": "The ExplicitRegistry check should index Helm releases with idx (the release index parsed from the JSON patch path) instead of i (the loop index over the patches being processed).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
GoogleContainerTools__skaffold__8557 | GoogleContainerTools/skaffold | 8,557 | defect | 3afc5615a79438ba5ba1a62344910df39d8e0942 | 3b169a34754478a4d53b64509a8d1001121a743b | fix: improve verify command s.t. os envs not passed through to container envs and instead add a flag for this purpose | fixes #7945 | diff --git a/cmd/skaffold/app/cmd/flags.go b/cmd/skaffold/app/cmd/flags.go
index e2d6f6b76bd..7d27fc93e1d 100644
--- a/cmd/skaffold/app/cmd/flags.go
+++ b/cmd/skaffold/app/cmd/flags.go
@@ -543,6 +543,14 @@ var flagRegistry = []Flag{
FlagAddMethod: "DurationVar",
DefinedOn: []string{"deploy", "dev", "run", "de... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new flag should get a more generic name, e.g. `--env-file` instead of `--verify-env-file`, so verify and custom actions can share a single name.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The utility functions this PR adds... | null |
GoogleContainerTools__skaffold__8575 | GoogleContainerTools/skaffold | 8,575 | defect | a1b61e2839500a22806a5e91b2a3b34729717b74 | 218dcf3e2a3ba7421d31237408e10bf75dbc1038 | feat: add 'skaffold inspect jobManifestPath' and 'skaffold transform-schema jobManifestPath' commands | fixes #8573 | diff --git a/cmd/skaffold/app/cmd/inspect.go b/cmd/skaffold/app/cmd/inspect.go
index fa3767f8abd..8a6de4cf626 100644
--- a/cmd/skaffold/app/cmd/inspect.go
+++ b/cmd/skaffold/app/cmd/inspect.go
@@ -43,7 +43,7 @@ func NewCmdInspect() *cobra.Command {
WithDescription("Helper commands for Cloud Code IDEs to interact wit... | 2 | 2 | 2 | [{"id": "G0", "claim": "The os.Open error in Modify should be returned (or logged) rather than only printed with fmt.Println, so a failed open does not go unnoticed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "json.Unmarshal from the inputFile ca... | null |
GoogleContainerTools__skaffold__8624 | GoogleContainerTools/skaffold | 8,624 | defect | 3b5320c4d4b0a937752b64e24432c387f52607f8 | eb8e9bc7d9033bb36705fb1ff90c2ea4faccf564 | feat: add support for deployment cancellation and error surface when admission webhook blocks pod skaffold is waiting on | fixes #8610
Manually tested against GKE cluster w/ binauthz enabled following the guide here:
https://cloud.google.com/architecture/binary-auth-with-cloud-build-and-gke
Before this change:
```
aprindle@aprindle-ssd ~/bad-image [bad-image]$ skaffold apply manifests.yaml
Starting deploy...
- deployment.app... | diff --git a/integration/binauthz_test.go b/integration/binauthz_test.go
new file mode 100644
index 00000000000..5205bfe9898
--- /dev/null
+++ b/integration/binauthz_test.go
@@ -0,0 +1,48 @@
+/*
+Copyright 2023 The Skaffold Authors
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this... | 2 | 2 | 0 | [{"id": "G0", "claim": "The helm testdata files this pull request adds (e.g. integration/testdata/helm-multi-config/skaffold/artifacts.json) look unnecessary because the integration test uses examples/kustomize, and they — along with the other files in the integration/testdata/helm- folders — should be removed.", "cate... | null |
GoogleContainerTools__skaffold__8955 | GoogleContainerTools/skaffold | 8,955 | defect | 453b101d70ccbf75c98f945516589950c87f63a0 | 88e1183aa7f88e44678d378c6f8e32a8beb3b7ea | fix: edit original file if the given skaffold path is a symlink | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #8489
**Related**: _Relevant tracking issues, for context_
**Merge before/after**: _Dependent or prerequisite PRs_
**Description**
This PR fixes issue where skaffold fix --overwrite command doesn't overwrite the contents of a ... | diff --git a/cmd/skaffold/app/cmd/fix.go b/cmd/skaffold/app/cmd/fix.go
index 88afc4b9840..d8b1e7a54a1 100644
--- a/cmd/skaffold/app/cmd/fix.go
+++ b/cmd/skaffold/app/cmd/fix.go
@@ -66,10 +66,10 @@ func doFix(_ context.Context, out io.Writer) error {
} else if overwrite {
toFile = opts.ConfigurationFile
}
- retur... | 5 | 4 | 2 | [{"id": "G0", "claim": "The newly added getTrueLocation helper is no longer needed now that the overwrite branch reads the config file directly, and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error built for a failed read of th... | null |
GoogleContainerTools__skaffold__9182 | GoogleContainerTools/skaffold | 9,182 | defect | ede91e08ea43c39736de6b2a4bd40969a8bec612 | a9af3493f78334219698e63203f0eeb7a0a7cb28 | feat: allow ValuesFile from GCS | Fixes: #9172
**Description**
Allow to reference the ValuesFile from Google Storage Bucket. It uses the gsutil to copy the remote file and, put it in the temporary directory and reference it in the helm flags. | diff --git a/pkg/skaffold/helm/args.go b/pkg/skaffold/helm/args.go
index 3357cd6fab1..6905f0dfd9c 100644
--- a/pkg/skaffold/helm/args.go
+++ b/pkg/skaffold/helm/args.go
@@ -19,6 +19,9 @@ package helm
import (
"context"
"fmt"
+ "os"
+ "path"
+ "path/filepath"
"runtime"
"strconv"
"strings"
@@ -27,6 +30,7 @@ im... | 4 | 3 | 1 | [{"id": "G0", "claim": "The body of the gs:// condition inside ConstructOverrideArgs should be extracted into its own function for better readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GCS copy should use context.TODO() instead ... | null |
GoogleContainerTools__skaffold__9300 | GoogleContainerTools/skaffold | 9,300 | defect | eeaf00144bbfcf8bc40ded16a6fb918461b102e1 | 450c94821a6edfb0964e873b0867a82b7d7c1e71 | feat: Support Bazel platform mappings | This change introduces an artifact-level setting for configuring Bazel and
defines a platform mapping from Skaffold platforms to Bazel platforms.
The Bazel artifact builder then passes the --platforms flag to Bazel if applicable.
Fixes #9360. | diff --git a/pkg/skaffold/build/bazel/build.go b/pkg/skaffold/build/bazel/build.go
index ec6db37142a..ffe2cfd487d 100644
--- a/pkg/skaffold/build/bazel/build.go
+++ b/pkg/skaffold/build/bazel/build.go
@@ -45,7 +45,7 @@ func (b *Builder) Build(ctx context.Context, out io.Writer, artifact *latest.Art
a := artifact.Ar... | 3 | 3 | 2 | [{"id": "G0", "claim": "Move the new Bazel build configuration out of the top-level BuildConfig struct and into the BazelArtifact struct, so Bazel settings are grouped there and function signatures do not need to change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
GoogleContainerTools__skaffold__9451 | GoogleContainerTools/skaffold | 9,451 | defect | 1d83c098041dc58b9da309941480a34b706fe408 | 383b26efe12c0e2e80e9f5afd77fc3039ac5d4c0 | feat: Optimize helm deploy by using goroutines | **Description**
1. Optimized helm install by using goroutines which reduced deploy time by more than 50%
2. Added config option to control the concurrency, by default it keeps current logic - sequential installation
3. Minor fixes
in my case:
before: _Deploy completed in **3 minutes 52.351** seconds_
after: _D... | diff --git a/docs-v2/content/en/schemas/v4beta12.json b/docs-v2/content/en/schemas/v4beta12.json
index 644821c8641..f9caf74ec46 100755
--- a/docs-v2/content/en/schemas/v4beta12.json
+++ b/docs-v2/content/en/schemas/v4beta12.json
@@ -3290,6 +3290,12 @@
},
"LegacyHelmDeploy": {
"properties": {
+ "... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add tests covering both the sequential and the concurrent helm release installation cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleContainerTools__skaffold__9495 | GoogleContainerTools/skaffold | 9,495 | defect | da42594bbe0006d580331b0222f35a46043a58de | 7d4a61bc97f0f981424b3f39a3b58aeaa9cbab52 | feat: transform imagePullPolicy when using local cluster | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Relates to #6992
**Description**
<!-- Describe your changes here. The more detail, the easier the review! -->
Introduces a `ReplaceImagePullPolicy` function to update the `imagePullPolicy` field in Kubernetes manifests to `Never` when ru... | diff --git a/pkg/skaffold/deploy/kubectl/kubectl.go b/pkg/skaffold/deploy/kubectl/kubectl.go
index 1b5e8fdef37..63faeb870eb 100644
--- a/pkg/skaffold/deploy/kubectl/kubectl.go
+++ b/pkg/skaffold/deploy/kubectl/kubectl.go
@@ -241,6 +241,17 @@ func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.A... | 11 | 9 | 2 | [{"id": "G0", "claim": "The imagePullPolicy transformation should happen only when the transformed manifests will be applied to the connected local cluster (skaffold dev, run, debug) and not for skaffold render, whose output may be used in other places even without skaffold.", "category": "correctness", "verdict": "sup... | null |
GoogleContainerTools__skaffold__9582 | GoogleContainerTools/skaffold | 9,582 | defect | 62c0a700d6a3eeb8eff0547fb8d03e727071f3b5 | 745cc0100b793e9d87553d66132ea5f832da61bc | Support TemplateField for build.artifacts.docker.cliFlags | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #9581
**Description**
<!-- Describe your changes here. The more detail, the easier the review! -->
Upon installing Docker Buildx, the docker build command becomes an [alias for docker buildx build](https://docs.docker.com/refe... | diff --git a/pkg/skaffold/build/docker/docker.go b/pkg/skaffold/build/docker/docker.go
index 8eaa38858c5..e0d46c27621 100644
--- a/pkg/skaffold/build/docker/docker.go
+++ b/pkg/skaffold/build/docker/docker.go
@@ -106,6 +106,12 @@ func (b *Builder) dockerCLIBuild(ctx context.Context, out io.Writer, name string
if err ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Move the CliFlags template expansion out of dockerCLIBuild into ToCLIBuildArgs in pkg/skaffold/docker/image.go, which would also add support for the GCB case.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleContainerTools__skaffold__9624 | GoogleContainerTools/skaffold | 9,624 | defect | c1834b6296f5f8a19b64c3c97ade0c11e08e6958 | ad5c765787b073ad82e24b3edb50d24260e07ecd | feat(helm): Add helm dependencies support | **Description**
Added `dependsOn` to the helm release to specify dependencies, it requires when you use concurrency releases installation that was introduced here https://github.com/GoogleContainerTools/skaffold/pull/9451
The idea for the `dependsOn` feature goes to @orlandoburli (#9588), happy to close this PR if ... | diff --git a/docs-v2/content/en/schemas/v4beta12.json b/docs-v2/content/en/schemas/v4beta12.json
index b8bad3b0334..4a6a063292b 100755
--- a/docs-v2/content/en/schemas/v4beta12.json
+++ b/docs-v2/content/en/schemas/v4beta12.json
@@ -2369,6 +2369,15 @@
"description": "if `true`, Skaffold will send `--create-n... | 10 | 5 | 1 | [{"id": "G0", "claim": "Add a comment explaining the purpose of the dependency graph, as Effective Go recommends.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining why releases are grouped by their dependency level.", "catego... | null |
GoogleContainerTools__skaffold__9666 | GoogleContainerTools/skaffold | 9,666 | defect | 44592284d58a62434d05b8f7e147b69b1d2c2cb6 | 8b15a3bd4621fc7549b68f610081e81ed317bd47 | fix: Add Dockerfile for digest calculation | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #8226
**Description**
inputDigest should now take Dockerfiles into account for digest calculation.
| diff --git a/pkg/skaffold/tag/input_digest.go b/pkg/skaffold/tag/input_digest.go
index 36b4674cc80..a0d7d7acf02 100644
--- a/pkg/skaffold/tag/input_digest.go
+++ b/pkg/skaffold/tag/input_digest.go
@@ -57,6 +57,18 @@ func (t *inputDigestTagger) GenerateTag(ctx context.Context, image latest.Artifa
return "", err
}
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The digest-calculation implementation could be made more concise and robust.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added to verify the digest-calculation changes.", "category": "testing", "verdict... | null |
GoogleContainerTools__skaffold__9682 | GoogleContainerTools/skaffold | 9,682 | defect | f132ab25adf1599c7fbdce733144991126565386 | 2237aac1712b557e6d8119448c5aa9f1618f63c0 | fix(rendered): Pass helm legacy deploy flags to render config | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #9681 <!-- tracking issues that this PR will close -->
**Description**
The helm's flag 'global' says _additional flags passed on every command_ https://skaffold.dev/docs/references/yaml/?version=v4beta12#manifests-helm-flags-globa... | diff --git a/pkg/skaffold/runner/renderer.go b/pkg/skaffold/runner/renderer.go
index 6e093932897..391c05ff60e 100644
--- a/pkg/skaffold/runner/renderer.go
+++ b/pkg/skaffold/runner/renderer.go
@@ -67,6 +67,7 @@ func GetRenderer(ctx context.Context, runCtx *runcontext.RunContext, hydrationDi
rCfg := latest.RenderCon... | 2 | 1 | 1 | [{"id": "G0", "claim": "A unit test should be added to verify that the legacy Helm deploy flags are passed through to the render configuration.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should be updated to reflect that legacy Hel... | null |
GoogleContainerTools__skaffold__9696 | GoogleContainerTools/skaffold | 9,696 | defect | acad12915d3d9690f9e4fe09528a12cf0bc2deb7 | 0fd151a5cb91b18fe836e84c5d259d6b3c81ae80 | feat(helm): add depBuild and template flags to HelmDeployFlags schema | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #8413 <!-- tracking issues that this PR will close -->
**Description**
This adds new configuration options to `HelmDeployFlags` struct, `DepBuild` and `Template`
**User facing changes**
Users can now supply new option in the helm config... | diff --git a/docs-v2/content/en/schemas/v4beta12.json b/docs-v2/content/en/schemas/v4beta12.json
index 9f7232ff241..7e1cc33dbf7 100755
--- a/docs-v2/content/en/schemas/v4beta12.json
+++ b/docs-v2/content/en/schemas/v4beta12.json
@@ -2300,6 +2300,15 @@
},
"HelmDeployFlags": {
"properties": {
+ "d... | 12 | 8 | 5 | [{"id": "G0", "claim": "The new args.go and args_test.go files carry a 2022 copyright header where it should say 2025.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the new template flag was added just in case, it should be removed, since ever... | null |
GoogleContainerTools__skaffold__9725 | GoogleContainerTools/skaffold | 9,725 | defect | e87a25f7a31058f6a6ab3461a92b412181d6fc2c | 1734ad559a4d7411635ea6936a5e83d707518a75 | fix: gcb builder incorrectly assumes target project from worker pool project | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #9730 <!-- tracking issues that this PR will close -->
**Related**: N/A
**Merge before/after**: N/A
**Description**
<!-- Describe your changes here. The more detail, the easier the review! -->
- This change fixes logic for retr... | diff --git a/pkg/skaffold/build/gcb/cloud_build.go b/pkg/skaffold/build/gcb/cloud_build.go
index 2ec89efc4ab..1431fbe8d7c 100644
--- a/pkg/skaffold/build/gcb/cloud_build.go
+++ b/pkg/skaffold/build/gcb/cloud_build.go
@@ -378,6 +378,11 @@ func (b *Builder) createBucketIfNotExists(ctx context.Context, c *cstorage.Clien
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The CI workflow reports that the new test file pkg/skaffold/build/gcb/cloud_build_test.go is not gci-ed (its imports are not grouped per the gci config), and the reviewer asks the author to update it.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
GoogleContainerTools__skaffold__9728 | GoogleContainerTools/skaffold | 9,728 | defect | 50bd61cdc41fdeb7e2fffa6eed212344a75d88dc | e3024cb84ccdc00b0a73d3e1970af47f912eb349 | fix: port-forward error logs `failed to port forward` | <!-- Thank you for your contribution! -->
<!-- Include if applicable: -->
Fixes: #9710
**Description**
Golang has changed os.Process structure since 1.23
[cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/os/exec.go;l=21](https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/os/exec.go;l=21)
[cs.opens... | diff --git a/pkg/skaffold/kubectl/exec_windows.go b/pkg/skaffold/kubectl/exec_windows.go
index 154f395787a..873e10ed689 100644
--- a/pkg/skaffold/kubectl/exec_windows.go
+++ b/pkg/skaffold/kubectl/exec_windows.go
@@ -19,7 +19,9 @@ package kubectl
import (
"context"
"fmt"
+ "os"
"os/exec"
+ "reflect"
"unsafe"
... | 2 | 2 | 2 | [{"id": "G0", "claim": "reflect.ValueOf/Indirect can return a zero value and FieldByName panics when the kind is not a struct, so the code should ensure the reflected type is a struct before calling FieldByName.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
GoogleContainerTools__skaffold__9772 | GoogleContainerTools/skaffold | 9,772 | defect | 0a1a173b90bca4ae2e12a561e343eb85aab556e9 | 60c079b6f2de6a6f4c97ae696c2f6780c8acf825 | chore: bump go version to 1.24.1 | This PR upgrades go to latest version 1.24.1, and fixes some dependencies that break on go 1.24
golanci-lint: Upgrade to a 1.24 compatible version.
logrus analyzer: Upgrade the deps in the log analyzer module
Re-generate the certificates used as testdata in the TestPortForward tests and add a readme in the tesdat... | diff --git a/go.mod b/go.mod
index 78ccdb4c318..a39fcebe65a 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/GoogleContainerTools/skaffold/v2
-go 1.23.4
+go 1.24.1
// broken on Windows, see https://github.com/karrick/godirwalk/issues/70
exclude github.com/karrick/godirwalk v1.17.0
diff --git a/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The author should check all the other places that hardcode the Go version (changed during the last upgrade, PR #9571) and update those that need it too.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GoogleContainerTools__skaffold__9778 | GoogleContainerTools/skaffold | 9,778 | defect | 0a1a173b90bca4ae2e12a561e343eb85aab556e9 | 8ff2ff55649490cea9ed21e5c7c01506fd8f1ba5 | feat: Add support for configurable statusCheckDeadlineSeconds field for Cloud Run | Fixes: #9762
**Related**: _Relevant tracking issues, for context_
**Merge before/after**: _Dependent or prerequisite PRs_
**Description**
Adds support for Cloud Run for being able to configure the `deploy.statusCheckDeadlineSeconds`, instead of just using the default of 10 minutes.
<!--
Please be sure your ... | diff --git a/docs-v2/content/en/docs/status-check.md b/docs-v2/content/en/docs/status-check.md
index c042b05dc4c..54903c08b8e 100644
--- a/docs-v2/content/en/docs/status-check.md
+++ b/docs-v2/content/en/docs/status-check.md
@@ -6,16 +6,17 @@ featureId: deploy.status_check
aliases: [/docs/how-tos/status-check, /docs/p... | 1 | 1 | 0 | [{"id": "G0", "claim": "The helper should initialize the comparison with DefaultStatusCheckDeadline and use the time package's native duration comparators instead of comparing raw seconds with a zero-initialized counter.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.