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

update PDK template and workflows #1629

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

h0tw1r3
Copy link

@h0tw1r3 h0tw1r3 commented May 2, 2024

@h0tw1r3 h0tw1r3 force-pushed the pdk branch 2 times, most recently from 29da24a to 72fd570 Compare May 3, 2024 07:22
* remove the x86_64 binaries that should not have been added to the repo
* mysql_login_path is not supported by MariaDB so skip related tests if
  the test host doesn't have the binary.
@h0tw1r3 h0tw1r3 force-pushed the pdk branch 6 times, most recently from 915caa1 to 7c6c0c8 Compare May 9, 2024 19:59
@h0tw1r3 h0tw1r3 marked this pull request as ready for review May 16, 2024 18:31
@h0tw1r3 h0tw1r3 requested a review from alexjfisher as a code owner May 16, 2024 18:31
.rubocop.yml Show resolved Hide resolved
Ramesh7
Ramesh7 previously approved these changes May 31, 2024
Copy link
Contributor

@Ramesh7 Ramesh7 left a comment

Choose a reason for hiding this comment

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

Reviewed the changes and looks good to me except minor cosmetic comments.

@bastelfreak @smortex can you please also have quick look?

Ramesh7
Ramesh7 previously approved these changes May 31, 2024
Copy link
Contributor

@smortex smortex left a comment

Choose a reason for hiding this comment

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

Looks good overall. I added inline comments for 2 tiny things that we may want to think about adjusting.

types/package_ensure.pp Outdated Show resolved Hide resolved
context "on #{os}" do
let(:facts) { facts }

it { is_expected.to compile }
Copy link
Contributor

@smortex smortex Jun 10, 2024

Choose a reason for hiding this comment

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

I would expect a private class to not compile 😄 (the commit message of this change is about tests and private classes)

It happen that the class is marked as private in the API but does not call assert_private()… Do we want to make sure private classes are not directly call and add assert_private() to all classes with @api private? (I would say yes, as far as I am concerned, but have not checked if this can cause trouble).

Copy link
Author

Choose a reason for hiding this comment

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

I would expect a private class to not compile 😄 (the commit message of this change is about tests and private classes)

Removed

It happen that the class is marked as private in the API but does not call assert_private()… Do we want to make sure private classes are not directly call and add assert_private() to all classes with @api private? (I would say yes, as far as I am concerned, but have not checked if this can cause trouble).

Makes sense to me, but this change is intended to be maintenance only, with no potentially breaking changes.
I'll open another PR for that.

@h0tw1r3
Copy link
Author

h0tw1r3 commented Jun 24, 2024

@Ramesh7 addressed issues, can you review and merge please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants