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

[cmd] Handle duplication warning at store #3159

Merged

Conversation

csordasmarton
Copy link
Contributor

Closes #2510

Somehow it is possible that the store command tries to write the same
source file to the zip multiple times. This patch will handle that use
case and add a file to the zip if the file is not in there.

Somehow it is possible that the store command tries to write the same
source file to the zip multiple times. This patch will handle that use
case and add a file to the zip if the file is not in there.
@csordasmarton csordasmarton added CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands bugfix 🔨 labels Jan 21, 2021
@csordasmarton csordasmarton requested a review from bruntib January 21, 2021 15:45
@csordasmarton csordasmarton added this to the release 6.15.1 milestone Jan 25, 2021
@bruntib
Copy link
Contributor

bruntib commented Jan 28, 2021

Duration of assembling .zip file increased from 3.5 sec to 5.24 sec on Xerces project with this change. This is just a few seconds, so it is not a huge problem. I'm not sure about this ration in case of a bigger project, but if this becomes a real issue, then we should consider normalizing and thus uniqueing paths instead of peeking in the .zip file.

@bruntib
Copy link
Contributor

bruntib commented Jan 28, 2021

By the way the issue can be reproduced by having the same file with multiple paths in .plist files, e.g.:
a/b/c and /a/b/../b/c.

@bruntib bruntib merged commit 3212cd1 into Ericsson:master Jan 28, 2021
@csordasmarton csordasmarton deleted the handle_store_zip_duplication_warning branch March 10, 2021 10:02
@csordasmarton csordasmarton modified the milestone: release 6.15.1 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate name warning while storing a result.
2 participants