Skip to content

use gradle lazy Provider for entrypoint container parameter#4003

Merged
emmileaf merged 1 commit intoGoogleContainerTools:masterfrom
wakingrufus:lazy-entrypoint
Jul 4, 2023
Merged

use gradle lazy Provider for entrypoint container parameter#4003
emmileaf merged 1 commit intoGoogleContainerTools:masterfrom
wakingrufus:lazy-entrypoint

Conversation

@wakingrufus
Copy link
Contributor

@wakingrufus wakingrufus commented May 10, 2023

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.

Before filing a pull request, make sure to do the following:

This helps to reduce the chance of having a pull request rejected.

@wakingrufus
Copy link
Contributor Author

@emmileaf would you be able to approve the workflows to run on this PR?

@emmileaf
Copy link
Contributor

@wakingrufus Generally, these workflows will be approved and run as part of reviewing the PR. We have a backlog of issues/feature requests and would appreciate your patience with some delay in reviewing.

That said, these presubmit checks run checkstyle, unit, and integration tests for the code changes, which can be verified locally. Please refer to the contribution guide for more detailed instructions, if this is what you are looking to do for this PR. Thanks!

@wakingrufus
Copy link
Contributor Author

I created #4027 for this pr. I will rebase my PR to fix my commit message to properly link it

@wakingrufus wakingrufus force-pushed the lazy-entrypoint branch 4 times, most recently from b0c9f3e to 528c0a0 Compare May 17, 2023 01:48
@wakingrufus
Copy link
Contributor Author

@emmileaf Issue is created, linked, and PR is rebased.

@wakingrufus
Copy link
Contributor Author

Hi @emmileaf just a friendly reminder of this PR. will you have a chance to review it in the near future?
Thanks.

Copy link
Contributor

@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change look good overall, but can you add some test coverage for the lazy evaluation and a note on this enhancement in the README, similar to in #3936? Thanks for the contribution, and apologies for the delay in reviewing!

@wakingrufus
Copy link
Contributor Author

I updated the PR with changes to Docs and a Test.
Thanks again for taking a look at this!

@wakingrufus wakingrufus requested a review from emmileaf June 9, 2023 16:08
Copy link
Contributor

@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think the new testLazyEvalForEntryPoint unit test would run successfully - while the presubmit workflows need maintainer permissions to run, please make sure to verify your changes locally with ./gradlew build.

Could you take a look into the testProject used in JibPluginTest and set up its build.gradle file to verify the feature added by this PR? (For example, in testLazyEvalForLabels, the assertions verify that the updated labels specified in the test project’s build.gradle is lazy evaluated as expected (note the project.ext.value change to "updated" in an afterEvaluate block.)

Hope this helps!

@wakingrufus
Copy link
Contributor Author

I don’t think the new testLazyEvalForEntryPoint unit test would run successfully - while the presubmit workflows need maintainer permissions to run, please make sure to verify your changes locally with ./gradlew build.

Could you take a look into the testProject used in JibPluginTest and set up its build.gradle file to verify the feature added by this PR? (For example, in testLazyEvalForLabels, the assertions verify that the updated labels specified in the test project’s build.gradle is lazy evaluated as expected (note the project.ext.value change to "updated" in an afterEvaluate block.)

Hope this helps!

Sorry about that. Thanks for the guidance. I have updated the test and verified it is passing locally.
Thanks again @emmileaf !

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the contribution @wakingrufus!

@emmileaf emmileaf merged commit 72f69f0 into GoogleContainerTools:master Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

entrypoint cannot be set lazily on JibExtension in the Gradle plugin

3 participants