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 Test #976

Closed
wants to merge 8 commits into from
Closed

Fix Test #976

wants to merge 8 commits into from

Conversation

Valantin
Copy link
Member

@Valantin Valantin commented Apr 2, 2024

Pull Request (PR) description

initial refactoring of acceptance
fix test failing on puppet 8
remove unused erlang module from fixture
bump dependency version

This Pull Request (PR) fixes the following issues

Fixes #965

@Valantin Valantin force-pushed the fix-test branch 4 times, most recently from 13e510c to 3c24114 Compare April 2, 2024 15:12
@Valantin Valantin marked this pull request as draft April 2, 2024 15:12
@wyardley
Copy link
Contributor

wyardley commented Apr 2, 2024

Thanks for taking a look at this.

Just a heads up before you get too deep into this -- I'm not sure if this will be easy to get working without #926 or something like it.

Also, the issue in some of the failing tests with the cluster being reported as rabbitmq vs rabbitmq_cluster is odd (and showed up in some other recent PRs as well) - I took a quick look at it and seems like the test explicitly specifies the cluster name as rabbitmq_cluster, so the most likely reason is that since we're still using the Linux distribution's rmq version in the tests that this behavior may have changed in a newer version.

I haven't had luck getting the acceptance tests for puppet to work locally in a while (can get them to start and then certain OSes just crash outright on my machine using the Docker version of the beaker tests), so it's been hard to figure out some of the issues that are ongoing.

As far as the erlang module, there was a goal of switching to the vox module in #955 and that's been also stalled by some of these continuing / circular issues.

I don't use puppet or rabbitmq and haven't for quite a few years now, but I'm happy to provide any help that I can in terms of helping move any of these ongoing efforts forward.

@Valantin
Copy link
Member Author

Valantin commented Apr 2, 2024

Thanks for the resources to start.
Idealy OS package was self consistent, so the erlang version shipped was the correct one for the rabbimq-server version.

The erlang module was used only on acceptance test, I've already use it on on ubuntu 22.04 in my production cloud, and I hate the repository because in one year the have dropped support for erlang version I use, and I've updated all my cluster to add a new node. Not so happy in a production environment.

My idea was to fix acceptance using the os package (if possible) to add new OS support
For example no "official" external repos was available for debian 12 at this moment, but i'm pretty sure you can run correctly with the system version.

@Valantin Valantin force-pushed the fix-test branch 3 times, most recently from 182a21b to f337ae3 Compare April 3, 2024 14:47
@@ -234,7 +234,7 @@
default: {}
}

if $facts['systemd'] { # systemd fact provided by systemd module
if $facts['service_provider'] == 'systemd' { # systemd fact provided by systemd module
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be needed since the module depends on the systemd module. If anything, the comment should be updated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, try to revert to facts[systemd], if don't work remove the comment.

@Valantin Valantin force-pushed the fix-test branch 6 times, most recently from 69c779d to b444f3b Compare April 4, 2024 12:20
initial refactoring of acceptance
port test to rspec-mock
remove unused erlang module from fixture
bump dependency version
user facts['service_provider] instead facts[systemd]
@Valantin
Copy link
Member Author

Valantin commented Apr 4, 2024

@bastelfreak I've rebased on modulesync branch, hope Is a better solution to use the modulesync 7.3 test

@wyardley
Copy link
Contributor

Hi @Valantin
Are you still working on this?

@Valantin
Copy link
Member Author

Yes and no, I'm switched to other things.
But in my todolist, I need more time to check OS related things, for example the EL approch in 8 and 9 release.

@wyardley
Copy link
Contributor

Probably not needed with #985 etc

@wyardley wyardley closed this May 19, 2024
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.

puppet-archive version
5 participants