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

update gen-sdk.sh to generate sdk using docker container #681

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

epicseven-cup
Copy link

What type of PR is this?

/kind feature

What this PR does / why we need it:

Updates sdk generation using docker container

Which issue(s) this PR fixes:

Fixes #190

Special notes for your reviewer:

This is a draft pr

Does this PR introduce a user-facing change?

None

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. labels Sep 29, 2024
Copy link

linux-foundation-easycla bot commented Sep 29, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Sep 29, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: epicseven-cup
Once this PR has been reviewed and has the lgtm label, please assign danielvegamyhre for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

Welcome @epicseven-cup!

It looks like this is your first PR to kubernetes-sigs/jobset 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/jobset has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @epicseven-cup. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 29, 2024
Copy link

netlify bot commented Sep 29, 2024

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit 712dcfb
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/67624bbb94e3290008e1a015

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Sep 29, 2024
@epicseven-cup
Copy link
Author

Hi sorry for all these message, this is currently a draft pr.

The direction I was going was to just use the openapi tool docker image to generate the sdk within the gen-sdk.sh script.

I will need to up some of the old apt installs and move the generated sdk correctly though feel free to take a look

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 29, 2024
@danielvegamyhre
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 29, 2024
@danielvegamyhre
Copy link
Contributor

Hi sorry for all these message, this is currently a draft pr.

The direction I was going was to just use the openapi tool docker image to generate the sdk within the gen-sdk.sh script.

I will need to up some of the old apt installs and move the generated sdk correctly though feel free to take a look

No worries, tag me when it is ready for review or if you have any questions

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 5, 2024
@danielvegamyhre danielvegamyhre added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 6, 2024
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 10, 2024
@epicseven-cup
Copy link
Author

/retest

@epicseven-cup
Copy link
Author

I removed to docker installed process so it will be similar to the python sdk docker setup

@epicseven-cup epicseven-cup marked this pull request as ready for review October 13, 2024 20:04
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 13, 2024
@k8s-ci-robot k8s-ci-robot requested a review from ahg-g October 13, 2024 20:04
@epicseven-cup
Copy link
Author

Hmm seems like it is expecting a docker install ./hack/python-sdk/gen-sdk.sh: line 50: docker: command not found

@epicseven-cup
Copy link
Author

epicseven-cup commented Oct 29, 2024

Hi @kannon92 @danielvegamyhre @ahg-g just a quick update from the information I got from slack. I'm going to submit a image change for jobset, by including docker into the image allowing the open api tool to be run in docker container

@kannon92
Copy link
Contributor

/test

@k8s-ci-robot
Copy link
Contributor

@kannon92: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test pull-jobset-test-e2e-main-1-28
  • /test pull-jobset-test-e2e-main-1-29
  • /test pull-jobset-test-e2e-main-1-30
  • /test pull-jobset-test-e2e-main-1-31
  • /test pull-jobset-test-integration-main
  • /test pull-jobset-test-unit-main
  • /test pull-jobset-verify-main

Use /test all to run all jobs.

In response to this:

/test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ahg-g
Copy link
Contributor

ahg-g commented Dec 9, 2024

Is this PR still relevant?

@epicseven-cup
Copy link
Author

Is this PR still relevant?

Yup, sorry I hadn't gotten time to submit a PR for the testing image update to include docker. I will get this in by next week

@epicseven-cup
Copy link
Author

epicseven-cup commented Dec 15, 2024

I added the pr for image update to include podman (since it requires less changes to the image building process). kubernetes/test-infra#33955

@epicseven-cup
Copy link
Author

I made a new pr to enable docker-in-docker for the pull-job-verify-main image, here is the link kubernetes/test-infra#33977

@ahg-g
Copy link
Contributor

ahg-g commented Dec 17, 2024

/retest

1 similar comment
@ahg-g
Copy link
Contributor

ahg-g commented Dec 18, 2024

/retest

# echo "Podman is found, changing over to podman"
# CONTAINER_ENGINE=podman
# USERLEVEL=""
#fi
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please cleanup this code?

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 18, 2024
@epicseven-cup
Copy link
Author

Looks like I still need to start the docker daemon within the pull-jobset-verify-main job image, I will check on that as well

@k8s-ci-robot
Copy link
Contributor

@epicseven-cup: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-jobset-verify-main 712dcfb link true /test pull-jobset-verify-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python SDK: Install Python and Java from source rather than using package manager
6 participants