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(telemetry): Masking test #764

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

ElenaKhaustova
Copy link
Contributor

Description

Fix #763

Development notes

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: Elena Khaustova <ymax70rus@gmail.com>
@ElenaKhaustova ElenaKhaustova marked this pull request as ready for review July 11, 2024 10:37
@@ -20,6 +20,7 @@
PACKAGE_NAME = "cli_tools_dummy_package"
DEFAULT_KEDRO_COMMANDS = [
"catalog",
"info",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any idea why "info" was not in DEFAULT_KEDRO_COMMANDS before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect it’s connected to these changes Lazy load click subcommands PR

Copy link
Member

Choose a reason for hiding this comment

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

I think info is part of the global commands.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm actually I'm not 100% sure, but it looks like the info command is part of a different separate CLI group compared to the others. @ankatiyar probably knows best 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

info is a separate group because the group has the help text that shows up on top when you do kedro --help. I didn't change the setup to lazy for that just in case something broke. The cli group is called cli and the module itself is also called cli., I suspect the test setup was a bit weird with some mocking and importing so info wasn't getting discovered in tests but I'm also not a 100%

For example, see the tests/framework/cli/test_cli_hooks.py in kedro-org/kedro#3883 😕

Copy link
Contributor

@DimedS DimedS 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, @ElenaKhaustova

Copy link
Contributor

@ankatiyar ankatiyar left a comment

Choose a reason for hiding this comment

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

Thanks @ElenaKhaustova!

@ElenaKhaustova ElenaKhaustova merged commit aaa6a4d into main Jul 15, 2024
10 checks passed
@ElenaKhaustova ElenaKhaustova deleted the fix/763-telemetry-tests branch July 15, 2024 10:11
merelcht pushed a commit to galenseilis/kedro-plugins that referenced this pull request Aug 27, 2024
Fix telemetry masking test

Signed-off-by: Elena Khaustova <ymax70rus@gmail.com>
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.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.

kedro-telemetry: Nightly build failure
4 participants