Skip to content
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: dont overwrite docker image names #1365

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

cristianmtr
Copy link
Contributor

@cristianmtr cristianmtr commented Nov 26, 2020

🚧

As part of the Hub Updater, we want to make sure NOT to overwrite images with the same name.

@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase component/docker labels Nov 26, 2020
@codecov
Copy link

codecov bot commented Nov 26, 2020

Codecov Report

Merging #1365 (049fabf) into master (e122348) will increase coverage by 0.12%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1365      +/-   ##
==========================================
+ Coverage   82.89%   83.02%   +0.12%     
==========================================
  Files         103      103              
  Lines        6746     6826      +80     
==========================================
+ Hits         5592     5667      +75     
- Misses       1154     1159       +5     
Impacted Files Coverage Δ
jina/docker/hubio.py 63.25% <82.35%> (-2.46%) ⬇️
jina/docker/hubapi.py 70.31% <100.00%> (ø)
jina/drivers/querylang/select.py 79.31% <0.00%> (-6.90%) ⬇️
jina/peapods/grpc_asyncio.py 75.51% <0.00%> (-1.03%) ⬇️
jina/logging/profile.py 55.81% <0.00%> (-0.66%) ⬇️
jina/peapods/gateway.py 94.40% <0.00%> (-0.63%) ⬇️
jina/peapods/pod.py 82.89% <0.00%> (-0.10%) ⬇️
jina/drivers/craft.py 100.00% <0.00%> (ø)
jina/types/ndarray/generic.py 100.00% <0.00%> (ø)
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f13559...049fabf. Read the comment docs.

@cristianmtr cristianmtr force-pushed the fix-dont-overwrite-docker-images branch from efe45e5 to 049fabf Compare November 27, 2020 12:22
@jina-bot jina-bot added the area/testing This issue/PR affects testing label Nov 27, 2020
@cristianmtr cristianmtr marked this pull request as ready for review November 30, 2020 14:38
@cristianmtr cristianmtr requested a review from a team as a code owner November 30, 2020 14:38
@hanxiao hanxiao merged commit 0c185c5 into master Nov 30, 2020
@hanxiao hanxiao deleted the fix-dont-overwrite-docker-images branch November 30, 2020 16:29
Comment on lines +96 to +98
args = set_hub_build_parser().parse_args([os.path.join(cur_dir, 'hub-mwu'), '--push', '--host-info'])
summary = HubIO(args).build()
print(summary['is_build_success'])
Copy link
Member

Choose a reason for hiding this comment

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

An assertion for the exception is expected here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a way to restore the PR and edit it? Or should I just create a new one?

Copy link
Member

Choose a reason for hiding this comment

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

create a new one better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/docker size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants