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

build(telemetry): Add python 3.11 to telemetry #330

Merged
merged 5 commits into from
Sep 7, 2023
Merged

Conversation

ankatiyar
Copy link
Contributor

@ankatiyar ankatiyar commented Sep 5, 2023

Description

Partial solution for #265

Development notes

NOTE: linter's still running on python 3.8 because of some pre-commit errors. To be done as a follow up for all plugins. #331

Checklist

  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the relevant RELEASE.md file
  • Added tests to cover my changes

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
@ankatiyar ankatiyar marked this pull request as ready for review September 5, 2023 15:21
Copy link
Contributor

@AhdraMeraliQB AhdraMeraliQB left a comment

Choose a reason for hiding this comment

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

Thanks for getting this working! 🌟

Comment on lines +71 to +74
mocker.patch(
"kedro.framework.cli.cli.importlib.import_module",
return_value=Module(cli=cli),
)
Copy link
Member

Choose a reason for hiding this comment

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

What is different in python 3.11 that required moving this down?

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 fix from the 3.11 PR on kedro seemed to fix the failing tests. @SajidAlamQB do you know more about this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it was because it would makes all subsequent mocker.patch fail this could be because of a change in how unittest.mock or importlib work python 3.11. @noklam do you have any other thoughts on it?

Copy link
Member

@merelcht merelcht left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Don't forget to add this to the release notes.

Copy link
Contributor

@SajidAlamQB SajidAlamQB left a comment

Choose a reason for hiding this comment

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

🌟

Ahdra Merali and others added 2 commits September 7, 2023 16:42
Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>
@AhdraMeraliQB AhdraMeraliQB enabled auto-merge (squash) September 7, 2023 15:44
@AhdraMeraliQB AhdraMeraliQB merged commit 7d092db into main Sep 7, 2023
58 checks passed
@AhdraMeraliQB AhdraMeraliQB deleted the 3.11-telemetry branch September 7, 2023 16:39
sbrugman pushed a commit to sbrugman/kedro-plugins that referenced this pull request Sep 11, 2023
* Add 3.11 to telemetry

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Remove extra lint tests

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Add changes to RELEASE.md

Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com>
Co-authored-by: Ahdra Merali <ahdra.merali@quantumblack.com>
Co-authored-by: Ahdra Merali <90615669+AhdraMeraliQB@users.noreply.github.com>
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.

4 participants