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 AttributeError/Remove use of NoteableKernelManager #194

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

rohitsanj
Copy link
Contributor

[0.0.29] - 2023-07-20

Removed

  • Remove use of NoteableKernelManager to reduce unnecessary abstractions

Fixed

  • Fix AttributeError on trying to fetch NoteableClient.file_session_cache which has been removed. Determine kernels channel id from file_id instead.

@codecov-commenter
Copy link

codecov-commenter commented Jul 20, 2023

Codecov Report

Merging #194 (fa9f5ef) into main (3a3fa04) will increase coverage by 0.18%.
The diff coverage is 87.09%.

❗ Current head fa9f5ef differs from pull request most recent head 09231ec. Consider uploading reports for the commit 09231ec to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   60.34%   60.53%   +0.18%     
==========================================
  Files          19       18       -1     
  Lines        1044      973      -71     
==========================================
- Hits          630      589      -41     
+ Misses        414      384      -30     
Impacted Files Coverage Δ
papermill_origami/_version.py 0.00% <0.00%> (ø)
papermill_origami/engine.py 71.14% <84.21%> (-0.15%) ⬇️
papermill_origami/tests/test_engine.py 98.80% <100.00%> (-0.05%) ⬇️

@@ -90,8 +80,9 @@ async def test_default_client(mocker, file, file_content, noteable_engine):
noteable_nb=file_content,
logger=logging.getLogger(__name__),
)
noteable_engine.client.get_or_launch_ready_kernel_session.assert_called_once()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This assert tests the changed diff above.

@rohitsanj rohitsanj merged commit b6d582a into main Jul 20, 2023
@rohitsanj rohitsanj deleted the hotfix-with-unpinned-origami-version branch July 20, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants