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

Add support for Debian 10 and 11 #244

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

deubert-it
Copy link

see #243

@deubert-it
Copy link
Author

Regarding the failing checks/tests: I don't think the fails are related to the provided changes.

I also glanced over the spec files and did not see any debian codename related tests that might cover the provided changes, so it should generally be safe to merge imho.

@smortex
Copy link
Member

smortex commented Jun 14, 2023

Hey 👋!

The failures you see are caused by Debian 9 being EOL (so the tooling to test on this OS was removed) and a bug in Puppet 7 for which we have a workaround in the CI code… when this CI code is up-to-date. Unfortunately, this module has been lagging behind for quite some time, #238 is about updating the module to update the CI code, but as you can see the module code quality does not match our expectations ATM. So it's unfortunately hardly possible to work "correctly" on this module until #238 is merged…

If you want to help and have some time to offer, you are welcome to add commits on top of the branch of this PR and submit fixes in a new PR (luckily the auto-correct feature of rubocop will fix most issues, but be prepared to see new failures when you fix issues that prevent the next tests to be run). If you want to go this route, please note you can join #voxpupuli on IRC for assistance and guidance 😀

When the CI code is up-to-date, updating metadata.json to add the Debian releases will make the CI run on these systems and ensure no regression is introduced on them.

@smortex
Copy link
Member

smortex commented Jun 15, 2023

I gave it a shot. Can you please rebase your changes on top of the branch of #245 and add the versions in metadata.json?

@smortex smortex added the needs-feedback Further information is requested label Jun 15, 2023
@deubert-it
Copy link
Author

Hi @smortex,

thanks a lot for your help. I'm not sure the rebase is as you wanted it, but probably also fixable.
I updated the metadata as advised and it looks like debian 10 and 11 are fine, 12 seems to not be tested.
I tested with ubuntu 22 but it doesn't seem to work, so I removed it again from the supported versions list.

I can not say anything about the failing archlinux test, but my code change 100% did not touch anything that relates to archlinux.

Regarding debian 12 and ubuntu 22, from upgrading other systems myself, I know that it is required to now use gpg for apt sources and specify signing keys in the apt repo configuration ("[signed-by ...]"). (see https://wiki.debian.org/DebianRepository/UseThirdParty)
Do you know if the puppet apt_repo resource reflects that already or will we need to provide a solution in every module that wants to support debian 12/ubuntu 22?

However, I'm interested in getting the debian 11 support released, so we should probably move the debian 12/ubuntu 22 upgrade to a separate issue.

@smortex smortex changed the title feat: extend debian support up to bookworm Add support for Debian 10 and 11 Jun 15, 2023
@smortex
Copy link
Member

smortex commented Jun 15, 2023

This looks good! The ArchLinux failure is currently a known-issue and you can ignore it. Debian 12 was released a few days ago, and we need Puppet packages that do not exist yet to tests it thoroughly, so for now it is not part of the test matrix. When available, adding it should be straightforward.

Regarding apt, it is something I still not have take the time to look at, and IMHO it should be managed at the apt module level for system-wide consistency. I guess it would mean that the module should ensure the key does not exist in the legacy configuration and do exist in the new one. Might not be trivial, but if you work on it feel free to mention me so that I can help.

@smortex smortex added enhancement New feature or request and removed needs-feedback Further information is requested labels Jun 15, 2023
@smortex smortex self-requested a review June 15, 2023 19:42
@smortex
Copy link
Member

smortex commented Jun 15, 2023

Ah, just saw the branch was not rebased, so the commits are different.

Assuming you are in the branch feature/243-debian-support of your fork and you have a remote origin for voxpupuli/puppet-gluster:

$ git fetch --all           # Update what git thinks of the remotes
$ git rebase origin/debian9 # Move the commits of the branch on top of origin/debian9
$ git push -f               # -f required: we rewrote history

That way, when a branch is merged and some PR include its commits, it is automatically closed by GitHub which makes our lives easier and also helps when generating ChangeLogs.

@deubert-it deubert-it force-pushed the feature/243-debian-support branch from 8b03cce to df110c3 Compare June 19, 2023 09:27
@deubert-it
Copy link
Author

Hi @smortex , I (hope I) rebased the branch - is there anything else I can do to get this merged/released?

@smortex smortex force-pushed the feature/243-debian-support branch from df110c3 to 7390d7f Compare July 14, 2023 18:40
@smortex
Copy link
Member

smortex commented Jul 14, 2023

Ooops! I merged some PRs which caused a bit of confusion 😕.

FYI, I just rebased your branch on top of master and force-pushed to fix it!

Copy link
Member

@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.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants