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

MLCOMPUTE-2733 | Add paasta names to spark driver pod annotations #4010

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

chi-yelp
Copy link
Contributor

@chi-yelp chi-yelp commented Feb 25, 2025

Add paasta names to spark driver pod annotations.
Follow up by: Yelp/service_configuration_lib#153 which is for executor pod annotations.

@chi-yelp chi-yelp force-pushed the u/chi/add_spark_annotations branch from b274bf0 to aa659ec Compare February 26, 2025 12:59
@chi-yelp chi-yelp force-pushed the u/chi/add_spark_annotations branch from 268ec57 to fc2080f Compare February 26, 2025 19:02
@chi-yelp chi-yelp marked this pull request as ready for review February 26, 2025 23:30
@chi-yelp chi-yelp requested a review from a team as a code owner February 26, 2025 23:30
@chi-yelp chi-yelp requested a review from nemacysts February 26, 2025 23:31
Comment on lines 361 to 365
extra_volumes=spark_tools.docker_volumes_to_mappings(
self.get_volumes(
system_paasta_config.get_volumes(),
uses_bulkdata_default=system_paasta_config.get_uses_bulkdata_default(),
),
Copy link
Member

Choose a reason for hiding this comment

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

was this change meant to be included in this diff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah it's because we updated service_configuration_lib (Yelp/service_configuration_lib#152) and the change is for making the typing matches. (didn't use direct cast since it's more risky)

Copy link
Member

Choose a reason for hiding this comment

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

ah, gotcha!

i think that casting might actually be fine here (since we're going from a pretty concrete TypedDict to a pretty abstract Mapping) and that what we really want to do is add a DockerVolume type to s_c_l

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to direct casting. Do you mean to import the paasta repo later as a dependency of s_c_l? I checked that other repos which uses s_c_l do not have dependency to the paasta repo (makes them more lightweight)

@chi-yelp chi-yelp force-pushed the u/chi/add_spark_annotations branch from 33a50cd to ad0d9b8 Compare February 28, 2025 17:26
@chi-yelp chi-yelp requested a review from nemacysts February 28, 2025 17:52
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