Skip to content

Small fixes in getting-started ETL and training notebooks and fix tuple error in serving notebook#586

Merged
karlhigley merged 8 commits intomainfrom
add_unittest
Jan 3, 2023
Merged

Small fixes in getting-started ETL and training notebooks and fix tuple error in serving notebook#586
karlhigley merged 8 commits intomainfrom
add_unittest

Conversation

@rnyak
Copy link
Copy Markdown
Contributor

@rnyak rnyak commented Dec 27, 2022

This PR:

  • fixes/sets data paths and env variables for certain args in the notebooks
  • fixes the error due to returned tuple from Merlin dataloader in the 03 notebook.
  • adding a unit test with for 01 and 02 notebooks using testbook.

Note: if we want a unit test for serving notebook, we would need systems here. currently we dont couple TF4Rec to systems, that's why I removed that part in the unit test code. The decision is to do that in Merlin repo, instead of TF4Rec repo.

@rnyak rnyak added this to the Merlin 23.01 milestone Dec 27, 2022
@rnyak rnyak requested a review from bschifferer December 27, 2022 20:50
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rnyak rnyak added the chore Maintenance for the repository label Dec 27, 2022
Comment thread requirements/test.txt
@rnyak rnyak changed the title Add unit test for getting started notebooks via testbook Small fixes in getting-started ETL and training notebooks and fix tuple error in serving notebook Dec 28, 2022
@rnyak rnyak added the P0 label Dec 28, 2022
@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@sararb sararb left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! The updates look good to me. I just left one comment regarding the old notebooks' unit test.

@pytest.mark.skipif(find_spec("cudf") is None, reason="needs cudf")
# @pytest.mark.skipif(find_spec("cudf") is None, reason="needs cudf")
@pytest.mark.skip(reason="there is a testbook version of this test")
def test_session(tmpdir):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To double-check, will this test always be skipped?
If yes, can we remove it as it is replaced by the testbook version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jperez999 since I am replacing this test with the testbook version I added mark.skip into the existing test, but we can remove it as well. what do u think? thanks.

@bschifferer
Copy link
Copy Markdown
Contributor

The PR looks good to me. Do we have no Jenkins GitHub Action for it?

@rnyak
Copy link
Copy Markdown
Contributor Author

rnyak commented Jan 3, 2023

Do we have no Jenkins GitHub Action for it?

Thanks for reviewing. If I understood your question correctly : AFAIK, we do no longer use Jenkins for PR testing
. we only use GH actions.

@jperez999
Copy link
Copy Markdown
Contributor

@karlhigley karlhigley merged commit 495073d into main Jan 3, 2023
@rnyak rnyak deleted the add_unittest branch January 4, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests chore Maintenance for the repository P0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants