Skip to content

Fix bug where on-demand k8s integration registration fails on Mac #1242

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

Merged
merged 7 commits into from
Apr 28, 2023

Conversation

cw75
Copy link
Contributor

@cw75 cw75 commented Apr 25, 2023

Describe your changes and why you are making these changes

This is due to env --version does not work on Mac, but since env should be pre-installed on all common OSes, we can simply skip the check.

In addition, cp -T is not supported on Mac, so we implement a workaround instead.

Tested that the new changes work both on Linux and on Mac.

Related issue number (if any)

Loom demo (if any)

Checklist before requesting a review

  • I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
  • I have performed a self-review of my code.
  • I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
  • If this is a new feature, I have added unit tests and integration tests.
  • I have run the integration tests locally and they are passing.
  • I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
  • All features on the UI continue to work correctly.
  • Added one of the following CI labels:
    • run_integration_test: Runs integration tests
    • skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

_, stdErr, err := lib_utils.RunCmd(
"cp",
[]string{
"-R",
Copy link
Contributor

Choose a reason for hiding this comment

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

should we be using cp -rT here? What was the reason behind the change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hsubbaraj-spiral because Mac's cp doesn't support the -T flag...I can make a comment on this.

@cw75 cw75 requested a review from hsubbaraj-spiral April 26, 2023 19:57
@cw75
Copy link
Contributor Author

cw75 commented Apr 26, 2023

@hsubbaraj-spiral addressed comment.

@cw75 cw75 added the skip_integration_test Skips required integration test (only documentation/UI changes) label Apr 27, 2023
@cw75 cw75 merged commit 4a734b0 into main Apr 28, 2023
@cw75 cw75 deleted the debug_ondemand_k8s branch April 28, 2023 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip_integration_test Skips required integration test (only documentation/UI changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants