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

Added test for create-pytorchjob.ipynb python notebook #2274

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

Conversation

saileshd1402
Copy link
Contributor

@saileshd1402 saileshd1402 commented Sep 29, 2024

What this PR does / why we need it:
This PR addresses the issue: #2246

Changes:

  • Added test for examples/pytorch/image-classification/create-pytorchjob.ipynb using papermill
  • Made it extendable so that new notebooks can be added easily
  • New notebook tests can be added to the test-example-notebooks.yaml file/workflow as jobs
  • Notebook tests should have the parameter kubeflow_python_sdk so that CI will install local Python SDK for testing
  • Updated gcr.io/kubeflow-ci/pytorch-dist-mnist-test:v1.0 to kubeflow/pytorch-dist-mnist:latest

Checklist:

  • Docs included if any changes are user facing

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign andreyvelich 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

@coveralls
Copy link

coveralls commented Sep 29, 2024

Pull Request Test Coverage Report for Build 11096923156

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 11001381410: 0.0%
Covered Lines: 66
Relevant Lines: 66

💛 - Coveralls

Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
Signed-off-by: sailesh duddupudi <[email protected]>
@saileshd1402 saileshd1402 changed the title [WIP] Added test for create-pytorchjob.ipynb Added test for create-pytorchjob.ipynb Sep 29, 2024
},
"outputs": [],
"source": [
"kubeflow_python_sdk=\"git+https://github.com/kubeflow/training-operator.git#subdirectory=sdk/python\"\n",
Copy link
Contributor Author

@saileshd1402 saileshd1402 Sep 30, 2024

Choose a reason for hiding this comment

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

For papermill, all the parameters should be in one cell. But this seems to be affecting the readability of the user. How should we improve this?
cc: @andreyvelich @tenzen-y @Electronic-Waste

Copy link
Member

Choose a reason for hiding this comment

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

@akshaychitneni @shravan-achar Any thoughts on papermill usage ?
We can pass parameters using parameters_yaml only to the single Notebook cell ?

@saileshd1402 saileshd1402 changed the title Added test for create-pytorchjob.ipynb Added test for create-pytorchjob.ipynb python notebook Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants