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

enhance: clean filepath in mountpoint #2157

Merged
merged 1 commit into from
Aug 26, 2018
Merged

enhance: clean filepath in mountpoint #2157

merged 1 commit into from
Aug 26, 2018

Conversation

Ace-Tang
Copy link
Contributor

@Ace-Tang Ace-Tang commented Aug 24, 2018

Ⅰ. Describe what this PR did

clean filepath in mountpoint source and destination, replace "/.." by "/" at the beginning of a path,
remove last "/" if exist.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@Ace-Tang Ace-Tang changed the title Mount path enhance: clean filepath in mountpoint Aug 24, 2018
Signed-off-by: Ace-Tang <aceapril@126.com>
@rudyfly
Copy link
Collaborator

rudyfly commented Aug 24, 2018

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Aug 24, 2018
@Ace-Tang
Copy link
Contributor Author

CRI test always fail cause of network.

@codecov-io
Copy link

Codecov Report

Merging #2157 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2157      +/-   ##
=========================================
+ Coverage   64.36%   64.4%   +0.04%     
=========================================
  Files         209     209              
  Lines       16664   16669       +5     
=========================================
+ Hits        10725   10736      +11     
+ Misses       4608    4602       -6     
  Partials     1331    1331
Flag Coverage Δ
#criv1alpha1test 32.97% <83.33%> (+0.08%) ⬆️
#criv1alpha2test 33.36% <83.33%> (+0.01%) ⬆️
#integrationtest 39.26% <100%> (ø) ⬆️
#unittest 23.85% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
daemon/mgr/container_storage.go 50% <100%> (+0.47%) ⬆️
apis/opts/mountpoint.go 90.14% <100%> (+0.14%) ⬆️
daemon/logger/jsonfile/utils.go 71.54% <0%> (-1.63%) ⬇️
daemon/mgr/container.go 56.51% <0%> (-0.21%) ⬇️
cri/stream/runtime.go 70.58% <0%> (+2.35%) ⬆️
cri/stream/portforward/httpstream.go 75.83% <0%> (+6.66%) ⬆️

@allencloud allencloud merged commit c5a3796 into AliyunContainerService:master Aug 26, 2018
@Ace-Tang Ace-Tang deleted the mount_path branch September 11, 2018 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants