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

Special-case type annotations to force cache invalidations for msgpack-binary literals #6078

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

eapolinario
Copy link
Contributor

Tracking issue

https://linear.app/unionai/issue/DX-1202/add-cacke-key-attributes-to-typeannotation

Why are the changes needed?

In order to help the transition to the new version of flytekit, we special-case type annotations that contain a certain key, namely cache-key-metadata. The presence of this key will indicate that we should not nil out the type annotation field in the CRD.

A change in flytekit will accompany this.

What changes were proposed in this pull request?

Special-case TypeAnnotation objects that contain a key called cache-key-metadata, which, as the name suggests, will contain information used to generate unique cache keys.

How was this patch tested?

Unit tests and sandbox.

Setup process

Screenshots

Check all the applicable boxes

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

Related PRs

Docs link

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.10%. Comparing base (92f8abb) to head (b1504d1).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6078   +/-   ##
=======================================
  Coverage   37.10%   37.10%           
=======================================
  Files        1318     1318           
  Lines      132331   132335    +4     
=======================================
+ Hits        49100    49104    +4     
  Misses      78959    78959           
  Partials     4272     4272           
Flag Coverage Δ
unittests-datacatalog 51.58% <ø> (ø)
unittests-flyteadmin 54.10% <ø> (ø)
unittests-flytecopilot 30.99% <ø> (ø)
unittests-flytectl 62.29% <ø> (ø)
unittests-flyteidl 7.23% <ø> (ø)
unittests-flyteplugins 53.82% <ø> (ø)
unittests-flytepropeller 42.63% <100.00%> (+<0.01%) ⬆️
unittests-flytestdlib 57.59% <ø> (ø)

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.

@eapolinario eapolinario merged commit 4986a24 into master Dec 5, 2024
52 checks passed
@eapolinario eapolinario deleted the add-cache-to-type-annotation branch December 5, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants