-
Notifications
You must be signed in to change notification settings - Fork 217
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
Upload Ingestion Server's TSV files to AWS S3 (skip tags) #4529
Conversation
…ngle quotes in values
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.
This LGTM! Not commenting on the other functionality from the split PR, but the code here makes sense and I have verified that the files get uploaded to minio appropriately 🚀
Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR: @zackkrida Excluding weekend1 days, this PR was ready for review 2 day(s) ago. PRs labelled with high urgency are expected to be reviewed within 2 weekday(s)2. @krysal, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
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 👍 Just one non-blocking comment to request inline explanation of the skipped cases.
if not file_path.exists(): | ||
continue |
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.
Can you add a comment with the explanation you shared in the other PR for why this is an expected and good condition (not an error)? Otherwise, it's definitely not clear.
Although, I'm actually still not clear.
I understand tags won't have a file. That's fine, but then can we explicitly skip it in the list of files we are looking at? That would be much clearer for that case and implicitly document that we know the tags file does not exist.
However: I don't understand the bit about how these files will over time no longer exist. Why would that happen? Once we've applied the fix upstream, is there a point where the data refresh would have "half fixed" data, and some of the cleaning would stop? That's fine, but I just wanted to clarify, because again it's not clear based on this code, but the condition is a starkly significant one with no explanation, but apparently matters quite a bit (with many implementation details behind the reason for 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.
I don't understand the bit about how these files will over time no longer exist. Why would that happen? Once we've applied the fix upstream, is there a point where the data refresh would have "half fixed" data, and some of the cleaning would stop?
The cleaning steps will remain for a time, let's say two or one data refresh process, until we're confident that nothing is left pending in that ETL. The cleaning won't stop midway by itself, so we'd need to catch these cases when the files aren't produced anymore.
Thanks for raising the flag here. It was clear to me, but now I see I was assuming many things. I added a comment that hopes to add more context to it.
b4172e4
to
08ab020
Compare
Fixes
Fixes #3912 by @krysal
Description
Adds the function to upload the produced files of cleaned data to AWS S3 and delete them locally if the upload is successful.
Testing Instructions
.env
fileopenverse-catalog
bucket created in MinIO (or the one you'll be using; it can be configured withOPENVERSE_BUCKET
): http://localhost:5011/browser/Checklist
Update index.md
).main
) or a parent feature branch../ov just catalog/generate-docs
for catalog PRs) or the media properties generator (./ov just catalog/generate-docs media-props
for the catalog or./ov just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin