[BUG] ImageSpec NoOpBuilder should always return True while calling should_build function - #3311
Merged
Conversation
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
popojk
requested review from
cosmicBboy,
davidmirror-ops,
eapolinario,
kumare3,
pingsutw,
samhita-alla and
wild-endeavor
as code owners
August 11, 2025 05:15
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
machichima
reviewed
Aug 14, 2025
machichima
reviewed
Aug 14, 2025
Signed-off-by: Alex Wu <c.alexwu@gmail.com>
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:
|
pingsutw
approved these changes
Aug 16, 2025
Atharva1723
pushed a commit
to Atharva1723/flytekit
that referenced
this pull request
Oct 5, 2025
…hould_build function (flyteorg#3311) Signed-off-by: Alex Wu <c.alexwu@gmail.com> Signed-off-by: Atharva <atharvakulkarni172003@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.