Skip to content

Added cache_disk #2521

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

Merged
merged 14 commits into from
Apr 29, 2024
Merged

Added cache_disk #2521

merged 14 commits into from
Apr 29, 2024

Conversation

dploeger
Copy link
Contributor

@dploeger dploeger commented Jan 12, 2024

Summary

This deprecates apache::mod::disk_cache and instead adds support for apache::mod::cache_disk. Also adds parameters to both apache::mod::cache_disk and apache::mod::cache.

Additional Context

Since Apache 2.4 mod_disk_cache is named mod_cache_disk. This officially supports mod_cache_disk and additionally adds configuration options for it. To be backwards compatible, the old module is still available and simply uses the new module.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

We've dropped support for Apache < 2.4 so you can simplify a few things.

@CLAassistant
Copy link

CLAassistant commented Jan 12, 2024

CLA assistant check
All committers have signed the CLA.

@dploeger dploeger marked this pull request as ready for review January 12, 2024 11:29
@dploeger dploeger requested review from bastelfreak, smortex and a team as code owners January 12, 2024 11:29
@dploeger dploeger requested a review from ekohl January 15, 2024 07:29
Copy link
Collaborator

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

There are a few minor things that we can improve. I added in-line comments. Thanks!

@dploeger

This comment was marked as resolved.

@dploeger

This comment was marked as resolved.

@smortex

This comment was marked as resolved.

@dploeger

This comment was marked as resolved.

@ThomasMinor ThomasMinor force-pushed the feature/mod_cache_disk branch from 97abc68 to f23e382 Compare January 31, 2024 21:57
Copy link
Collaborator

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

It also look like the apache::mod::disk_cache is included in manifests/default_mods.pp for FreeBSD.

I just checked on my FreeBSD box, and it seems the default config does not include the cache_disk module, so I think we can also remove these lines:

include apache::mod::cache
include apache::mod::disk_cache

(In fact, all these lists seems outdated, maybe some global rework would be great, but that is out-of-scope of this PR)

@ThomasMinor

This comment was marked as resolved.

@smortex

This comment was marked as resolved.

@smortex
Copy link
Collaborator

smortex commented Feb 17, 2024

@dploeger can you please rebase your changes on top of the main branch? This should fix CI.

From your working directory:

git fetch origin       # Download the latest code we have here
git rebase origin/main # Move your commits on top of the main branch
git push -f            # Send the changes (-f is required because we re-wrote history)

@ThomasMinor ThomasMinor force-pushed the feature/mod_cache_disk branch from 7cd13e3 to 03300a0 Compare February 18, 2024 15:13
@ThomasMinor
Copy link
Contributor

@smortex rebasing is done.

Copy link
Collaborator

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

ARM tests environments seems broken, we can ignore these failures. This looks good to me, thanks!

@ThomasMinor
Copy link
Contributor

Hi @smortex, I just merged the latest changes from main to this repo. Since the 2 failing tests do not seem to be related to the changes in this PR, how do we proceed from here?

@smortex
Copy link
Collaborator

smortex commented Mar 5, 2024

@ThomasMinor From my point of view this look okay. The repository require multiple approval before merging so the next move is probably to have some feedback from @puppetlabs maybe?

I re-approved the CI run (any change you do to your commit invalidate the test), I expect it to all pass except the 2 known-bad tests which I think we can ignore.

@ThomasMinor
Copy link
Contributor

Hi @smortex, it seems another test joined the club and failed with connection failures. Can I assist solving the problem?

@ThomasMinor
Copy link
Contributor

Seems I looked wrong, 2 fail, one test was skipped.

@smortex
Copy link
Collaborator

smortex commented Mar 14, 2024

@ThomasMinor the Ubuntu ARM tests are broken and mend seems to only run when the PR is from a branch in the repo itself.

spec/classes/mod/disk_cache_spec.rb is maybe testing too much things given the corresponding code is only a wrapper around apache::mod::cache_disk (it act as an integration test rather than a unit test).

Also there is a merge commit in the branch which is not nice. Rebasing on top of master would fix this.

These two annoyances are not stoppers for me.

@smortex smortex requested a review from ekohl March 14, 2024 01:46
ThomasMinor and others added 14 commits March 25, 2024 14:58
Deprecates disk_cache
Fix parameters to keep backwards compatibility

Added tests
Co-authored-by: Romain Tartière <romain@blogreen.org>
Co-authored-by: Romain Tartière <romain@blogreen.org>
Co-authored-by: Romain Tartière <romain@blogreen.org>
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
@ThomasMinor ThomasMinor force-pushed the feature/mod_cache_disk branch from 04a4c56 to 8b998bb Compare March 25, 2024 13:59
@ThomasMinor
Copy link
Contributor

How about a final review, @ekohl & @bastelfreak?
Then we might be able to close this one.

@ekohl ekohl merged commit 1b90e9c into puppetlabs:main Apr 29, 2024
@timdeluxe timdeluxe mentioned this pull request Oct 7, 2024
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.

6 participants