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

Fixing cache overwrite metadata update #4617

Merged
merged 9 commits into from
Dec 21, 2023

Conversation

hamersaw
Copy link
Contributor

Tracking issue

Iterating on PR - #4550

Why are the changes needed?

Refer to linked PR

What changes were proposed in this pull request?

Refer to linked PR

How was this patch tested?

Refer to linked PR

Setup process

Refer to linked PR

Screenshots

Refer to linked PR

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

#4550

Docs link

Refer to linked PR

ysysys3074 and others added 5 commits December 9, 2023 09:08
add metadata in updateartifact request in propeller

change in catalog

add test

Signed-off-by: Yue Shang <[email protected]>
Signed-off-by: Yue Shang <[email protected]>
Signed-off-by: Yue Shang <[email protected]>
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Dec 18, 2023
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (5d199a8) 59.03% compared to head (701bd4b) 59.02%.

Files Patch % Lines
datacatalog/pkg/manager/impl/artifact_manager.go 45.45% 5 Missing and 1 partial ⚠️
...acatalog/pkg/repositories/transformers/artifact.go 50.00% 2 Missing and 1 partial ⚠️
flytepropeller/pkg/controller/nodes/cache.go 50.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4617      +/-   ##
==========================================
- Coverage   59.03%   59.02%   -0.01%     
==========================================
  Files         622      622              
  Lines       52793    52816      +23     
==========================================
+ Hits        31164    31175      +11     
- Misses      19142    19150       +8     
- Partials     2487     2491       +4     
Flag Coverage Δ
unittests 59.02% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pvditt pvditt left a comment

Choose a reason for hiding this comment

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

@hamersaw

Did this work on your machine? The changes look fine but I'm not able to trace any calls to UpdateArtifact aside from the uncalled Update from propellor to persist the updates.

@hamersaw
Copy link
Contributor Author

@hamersaw

Did this work on your machine? The changes look fine but I'm not able to trace any calls to UpdateArtifact aside from the uncalled Update from propellor to persist the updates.

Great catch! I am seeing the exact same issue, thanks for keeping me honest. Will trace this down.

@hamersaw
Copy link
Contributor Author

@pvditt Seems I ported this over incorrectly on the fast cache
work. In the original PR that added the cache overwrite functionality we automatically call Update when cache overwrite is set. Internally, this creates the dataset if it doesn't exist. So I added this same logic here, performed local testing of all the scenarios I could think of, and I think this is correct now. Please take a look.

Signed-off-by: Daniel Rammer <[email protected]>
@hamersaw hamersaw merged commit 2aab954 into master Dec 21, 2023
43 of 45 checks passed
@hamersaw hamersaw deleted the yushang/overwrite-cache/iteration branch December 21, 2023 14:16
@ysysys3074
Copy link
Contributor

ysysys3074 commented Jan 8, 2024

@pvditt Seems I ported this over incorrectly on the fast cache work. In the original PR that added the cache overwrite functionality we automatically call Update when cache overwrite is set. Internally, this creates the dataset if it doesn't exist. So I added this same logic here, performed local testing of all the scenarios I could think of, and I think this is correct now. Please take a look.

hi @hamersaw sorry i just came back from vacation, sorry for delay in response regarding the PR and thanks for iterating on my earlier PR. And i just noticed in my company's internal repo, we still have pre_post_executor.go which calls Update method in propeller when overwrite cache is on, but it seems open source repo have removed that file and added cache.go instead. thanks for the fix here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants