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

fix: cast dataproc batch runtime props #1008

Closed

Conversation

jimmyshah
Copy link

@jimmyshah jimmyshah commented Nov 7, 2023

resolves #1001

Problem

There is a bug currently that requires runtime_config properties values to be strings. As a result, integer values need quotes around them in the yml files, which is awkward.

With this PR, values are cast as strings, so that the properties can be set in a more expected way.

ADAP-1007

Solution

In _configure_batch(), I added a check for runtime_config.properties. If they exist, I iterate through the dictionary to cast the values as strings. Changing this part of the code was suggested as an option in #1001.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

There is a bug currently that requires `runtime_config` `properties` values to
be strings. As a result, integer values need quotes around them in the yml
files, which is awkward.

With this PR, values are cast as strings, so that the properties can be set in
a more expected way.

[ADAP-1007]
@jimmyshah jimmyshah requested a review from a team as a code owner November 7, 2023 21:53
Copy link

cla-bot bot commented Nov 7, 2023

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR.

CLA has not been signed by users: @jimmyshah

Copy link

cla-bot bot commented Nov 7, 2023

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR.

CLA has not been signed by users: @jimmyshah

@cla-bot cla-bot bot added the cla:yes label Nov 7, 2023
@dbeatty10 dbeatty10 added the ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering label Nov 8, 2023
Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot cla-bot bot removed the cla:yes label Nov 10, 2023
Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@jimmyshah
Copy link
Author

Hey @dbeatty10 @McKnight-42! Anything I can do to help move this PR forward?

Unrelated: I signed the CLA and have signed my git commits, but not sure why the cla-bot is disagreeing. Apologies for the mess...

@dbeatty10
Copy link
Contributor

@cla-bot check

Copy link

cla-bot bot commented Nov 10, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Jimmy Shah.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

Copy link

cla-bot bot commented Nov 10, 2023

The cla-bot has been summoned, and re-checked this pull request!

@dbeatty10
Copy link
Contributor

dbeatty10 commented Nov 11, 2023

@jimmyshah

CLA

I signed the CLA and have signed my git commits, but not sure why the cla-bot is disagreeing. Apologies for the mess...

I'm guessing that the cla-bot is complaining about these two commits (a1f1608 and 3072f30):

image

Easiest path forward

My formatter/editor settings may have caused more changes than I intended, my apologies. I only meant to add these lines

If there is anything else I can do from my end, let me know!

The easiest thing at this point might be just to open a new PR. That way, all the commits would have the same identity that signed the CLA.

Also, if your PR adds only these lines, then you'll be more likely to pass our code-formatting checks too.

Alternative path forward

You could also try keeping this PR by:
`. undo all changes except for these lines

  1. rebase all your commits and force-pushing

I'm guessing you'll find opening a new PR to be a bit easier, but either way works for us.

@jimmyshah
Copy link
Author

Thanks for the suggestion @dbeatty10. I just opened a new PR #1024 and the issues seem to be resolved. I'll close the PR.

@jimmyshah jimmyshah closed this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADAP-1007] [Feature] Cast dataproc batch runtime_config properties to strings
2 participants