-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix: test for hubio test build #1609
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1609 +/- ##
==========================================
+ Coverage 83.98% 84.89% +0.90%
==========================================
Files 127 127
Lines 6652 6642 -10
==========================================
+ Hits 5587 5639 +52
+ Misses 1065 1003 -62
Continue to review full report at Codecov.
|
|
||
def test_hub_build_level_pass(monkeypatch, mock_load_config): | ||
|
||
monkeypatch.setattr(BaseExecutor, "load_config", mock_load_config) |
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.
What does this mock do?
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.
Removed the mock to use an actual test-yaml
file for the BaseExecutor
as discussed.
args = set_hub_build_parser().parse_args(['path/hub-mwu', '--push', '--host-info', '--test-level', 'EXECUTOR']) | ||
|
||
docker_image = cli.get_image('jinahub/pod.dummy_mwu_encoder') | ||
p_names, failed_levels = HubIO._test_build(docker_image, BuildTestLevel.EXECUTOR, "sample/yaml.yaml", 60, True) |
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.
In what case, does a user send an image
object?
Should this remain an str
and inside the _test_build
we do the pull/build? @JoanFM
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.
this is an image
object as per our recent discussion
5a2bc20
to
1b69a9a
Compare
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this 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👍
Fix for #1575 using
docker image
object instead ofstring
argument fortest_build
inhubio