-
Notifications
You must be signed in to change notification settings - Fork 919
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
Format plugin name to fix CI #3469
Conversation
Signed-off-by: Ahdra Merali <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's surprising to me that this change fixes things, because it seems to be the opposite of what we describe in the docs: https://docs.kedro.org/en/stable/extend_kedro/plugins.html#cli-hooks
Looks like we should modify our codes to use "test_plugin" name, not revert name back |
There are two avenues for the fix, either changing the name to match what the test looks for, or modify the test to look for the different name. I went for the former as using a hyphen instead of an underscore seems to match the convention we use in for our plugins kedro-airflow, kedro-datasets, kedro-docker, and kedro-telemetry, but happy to go with the latter. |
I don't see how our docs conflict with this change, it's ultimately (I believe) a choice of formatting, and the docs make no mention of |
Yes, you right, that package naming is our common situation, but I think it's better to leave entry point "test_plugin", I think previously it was the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @AhdraMeraliQB ! I think we should fix only name, not entry-point?
What I meant is that in the docs we talk about a plugin called "plugin-name" e.g. "my-plugin", should then be referenced in the [project.entry-points."kedro.hooks"]
plugin_name = "plugin_name.plugin:hooks" So for "my-plugin" this should be:
So the change here to
seems conflicting to me. |
Signed-off-by: Ahdra Merali <[email protected]>
Interesting, it works both ways, I've changed it back to align with the docs but it's intriguing that there's no consistency requirement. Maybe @astrojuanlu can provide more insight on how toml processes this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @AhdraMeraliQB ! ⭐
I agree it would be good to clarify if there's a best practice when it comes to the naming convention for the entry point in pyproject.toml
and make sure we adopt it consistently in our docs and code.
Description
Resolves #3461 and #3464
Development notes
Tests were failing because they were attempting to disable
test-plugin
, however within #3329 the plugin name was changed totest_plugin
and therefore was not being properly disabled. In this PR the name is change back, following package naming convention and fixing the e2e tests.Developer Certificate of Origin
We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a
Signed-off-by
line in the commit message. See our wiki for guidance.If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.
Checklist
RELEASE.md
file