-
Notifications
You must be signed in to change notification settings - Fork 3k
Refactor scan resources to account for base_paths #3560
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
Conversation
/morph test |
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.
Just a doc request, everything else looks ok.
@@ -512,6 +512,10 @@ def is_ignored(self, file_path): | |||
return True | |||
return False | |||
|
|||
def add_ignore_patterns(self, root, base_path, patterns): |
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.
Would you mind adding a doc string to this? root
and base_path
are a bit confusing.
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.
Yup
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputExample Build failed! |
@@ -577,7 +582,7 @@ def _add_dir(self, path, resources, base_path, exclude_paths=None): | |||
# Ignore toolchain that do not match the current TOOLCHAIN | |||
(d.startswith('TOOLCHAIN_') and d[10:] not in labels['TOOLCHAIN']) or | |||
# Ignore .mbedignore files | |||
self.is_ignored(join(dir_path,"")) or | |||
self.is_ignored(join(relpath(root, base_path), d,"")) or |
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.
I realize this was here before, but do you know why the path is being joined with ""
?
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.
To get that extra "/" on the end.
The failure looks unrelated to the codebase; it looks like a clone failure or something like that. /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
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.
One last nit!
"""Add a series of patterns to the ignored paths | ||
|
||
Positional arguments: | ||
root - the path too the ignore location |
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.
too
? 😄
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.
lol. fixing
b203035
to
5c786c6
Compare
/morph test |
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
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Please add more info to the commit msg if possible. In this case, description provided in the first message could be in the first commit message. Apart from that, LGTM |
Waiting for CI to be green |
@jupe Why does the client-testapp build fail with |
@teetak01 can you help with this ? |
For some reason mbed-cli is not respecting the .mbedignore. Is the build-environment somehow special? |
true, there is mbedignore file with |
This rule is no longer in effect with this PR: https://github.com/ARMmbed/mbed-client-testapp/blob/master/.mbedignore#L10 |
@theotherjimmy Mind taking a look? |
@bridadan I'm already looking. |
5c786c6
to
c14a5b9
Compare
Sorry guys. I apparently started with the wrong commit. I have updated that commit to the correct one via rebasing. It should work now /morph test |
Cam-CI looks like a Java Error. |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
I restarted Cam-CI. Still a Java error. |
retest uvisor |
/morph export-build |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 88 All exports and builds passed! |
Looks good to me, final OK is up to you @0xc0170 |
Description
Separate the logic for managing the ignores lists from the scan resources calls. Improves the speed of the scan by ignoring all subdirectories of an ignored directory instead of just the files. Allows ignores to be specific to a basepath. This is useful to the online compiler as it can change the basepath to allow ignores to affect imported libraries despite them not being a subdirectory of the project.
Status
READY
Todos