-
Notifications
You must be signed in to change notification settings - Fork 4
DM-50999: Replace getPackageDir with ResourcePath #253
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
base: main
Are you sure you want to change the base?
Conversation
b508c3f to
1e3b402
Compare
kfindeisen
left a comment
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.
Some concerns about the behavior changes:
| files = ResourcePath.findFileResources([self.path], file_filter=r".*\.yaml$") | ||
| for file in files: | ||
| if "QuickTemplate" in file: | ||
| print("GRAPH BUILD FILE: ", file) |
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 assume this bare print shouldn't be here?
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.
Correct. Debug left over.
| [self.path.join("_ingredients", forceDirectory=True)], file_filter=r".*\.yaml$" | ||
| ) | ||
| # Do not want anything from the injection subdirectory. | ||
| if "injection/" not in f.path |
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 believe we do want to validate these pipelines, though the "WithFakes" filter on line 94/101 clearly needs to be updated.
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.
They weren't being validated before and I don't know how any of this works to know how to fix the validation. The change triggered here is that the test is finding things in subdirectories whereas before it was only looking in a single directory.
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.
Yes, I'd call it a bug in #223. I can ticket it, but please mark it as TODO instead making it sound as if SI pipelines are exempt from validation.
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.
Great. Will do. Can add the ticket number once you've filed it.
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.
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.
Done
The pipeline readers can already read ResourcePath URIs.
1e3b402 to
7d4aee1
Compare
The pipeline readers can already read ResourcePath URIs.