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

Give better message when source files are missing #1537

Merged
merged 1 commit into from
May 3, 2018

Conversation

csordasmarton
Copy link
Contributor

If source files are missing from the system which are in the plist file we should write out the missing file paths too.

@csordasmarton csordasmarton added enhancement 🌟 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands labels Apr 24, 2018
@csordasmarton csordasmarton added this to the release 6.7 milestone Apr 24, 2018
@csordasmarton csordasmarton requested a review from gyorb April 24, 2018 09:39
LOG.warning("Skipping '{0}' because it contains "
"a missing source file."
.format(plist_file))
LOG.warning("Skipping '%s' because it contains "
Copy link
Contributor

Choose a reason for hiding this comment

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

contains isn't the right word here from the user's perspective, and wasn't before, either...

Maybe refers?

@@ -189,19 +189,21 @@ def assemble_zip(inputs, zip_file, client):
file_to_mtime = {}

def collect_file_hashes_from_plist(plist_file):
missing_files = []
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some function documentation.

@csordasmarton csordasmarton force-pushed the missing-files-message branch from 3c1c0a5 to 112f9f5 Compare May 2, 2018 12:30
@csordasmarton csordasmarton requested a review from gyorb May 2, 2018 12:30
@gyorb
Copy link
Contributor

gyorb commented May 2, 2018

I think it would be useful to list the missing source files at the end of the store log:

[WARNING 2018-05-02 14:47] - Skipping 'reports/compress.c.plist' because it refers the following missing source files: ['compress.c']
[WARNING 2018-05-02 14:47] - Skipping 'reports/compress2.c.plist' because it refers the following missing source files: ['compress2.c']
[WARNING 2018-05-02 14:47] - Skipping 'reports/compress2.c.plist' because it refers the following missing source files: ['mylib.h']
[WARNING 2018-05-02 14:47] - Missing source files:
[WARNING 2018-05-02 14:47] - compress.c
[WARNING 2018-05-02 14:47] - compress2.c
[WARNING 2018-05-02 14:47] - mylib.h
[INFO 2018-05-02 14:47] - Storage finished successfully

What do you think @bruntib @dkrupp ?

If source files are missing from the system which are in the plist
file we should write out the missing file paths too.
@csordasmarton csordasmarton force-pushed the missing-files-message branch from 112f9f5 to 1ae83cd Compare May 2, 2018 13:28
@csordasmarton
Copy link
Contributor Author

@gyorb Done.

@gyorb gyorb merged commit 4629eea into Ericsson:master May 3, 2018
@csordasmarton csordasmarton deleted the missing-files-message branch May 9, 2018 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands enhancement 🌟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants