-
Notifications
You must be signed in to change notification settings - Fork 334
[BUG] ImageSpec NoOpBuilder should always return True while calling should_build function #3311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
Signed-off-by: Alex Wu <[email protected]>
pingsutw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
Signed-off-by: Alex Wu <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3311 +/- ##
==========================================
+ Coverage 85.26% 92.51% +7.25%
==========================================
Files 386 7 -379
Lines 30276 508 -29768
Branches 2969 0 -2969
==========================================
- Hits 25814 470 -25344
+ Misses 3615 38 -3577
+ Partials 847 0 -847 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
machichima
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…hould_build function (flyteorg#3311) Signed-off-by: Alex Wu <[email protected]> Signed-off-by: Atharva <[email protected]>
Tracking issue
closes #6561
Why are the changes needed?
The NoOpBuilder should overrride should_build function in order to correctly trigger build_image function in an environment that docker daemon is not running.
What changes were proposed in this pull request?
Make
NoOpBuilderoverrideshould_buildfunction.How was this patch tested?
Test workflow:
We define a docker registry in

image_specthat is not existed, and we expect that the SDK will still use the image user defined without actually communicating with the docker registry. After remote running the workflow, the SDK will use the user defined image as expected.Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
Summary by Bito
This pull request adds a new method, should_build, to the NoOpBuilder class, fixing a bug by ensuring it consistently returns True. It enhances the build_image method to function even when the Docker daemon is down and improves the testing suite to validate the NoOpBuilder's functionality across various environments, ensuring better reliability and behavior.