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

Add labels and annotations to with_overrides #6145

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pryce-turner
Copy link
Contributor

@pryce-turner pryce-turner commented Jan 6, 2025

Why are the changes needed?

Improvement to allow setting labels and annotations dynamically at run time for things like cost allocation

What changes were proposed in this pull request?

Adds labels and annotations to with_overrides()

How was this patch tested?

TBD

Check all the applicable boxes

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

Related PRs

flyteorg/flytekit#3037

Docs link

TBD

Signed-off-by: pryce-turner <[email protected]>
@flyte-bot
Copy link
Collaborator

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at [email protected].

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.13%. Comparing base (27c9edd) to head (f939634).
Report is 9 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6145       +/-   ##
===========================================
+ Coverage   37.01%   55.13%   +18.11%     
===========================================
  Files        1317       99     -1218     
  Lines      132523     5978   -126545     
===========================================
- Hits        49060     3296    -45764     
+ Misses      79217     2490    -76727     
+ Partials     4246      192     -4054     
Flag Coverage Δ
unittests-datacatalog ?
unittests-flyteadmin ?
unittests-flytecopilot ?
unittests-flytectl ?
unittests-flyteidl ?
unittests-flyteplugins ?
unittests-flytepropeller ?
unittests-flytestdlib 55.13% <ø> (-0.06%) ⬇️

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
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

To generate the flyteidl files from a proto change:

cd flyteidl
make generate

Then build flyte binary:

https://docs.flyte.org/en/latest/community/contribute/contribute_code.html#requirements

Comment on lines 204 to 206
Labels labels = 10;

Annotations annotations = 11;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Labels labels = 10;
Annotations annotations = 11;
flyteidl.admin.Labels labels = 10;
flyteidl.admin.Annotations annotations = 11;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How come RetryStrategy can be inferred from literals but Labels and Annotations can't be inferred from common?

Signed-off-by: pryce-turner <[email protected]>
@flyte-bot
Copy link
Collaborator

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at [email protected].

Signed-off-by: pryce-turner <[email protected]>
@flyte-bot
Copy link
Collaborator

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - The AI Code Review Agent skipped reviewing this change because it is configured to exclude certain pull requests based on the source/target branch or the pull request status. You can change the settings here, or contact the agent instance creator at [email protected].

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.

3 participants