Skip to content

(MODULES-12060) Remove broken apache::fastcgi::server - #2660

Merged
skyamgarp merged 3 commits into
mainfrom
MODULES-12060-fix-fastcgi-server
Oct 29, 2026
Merged

skyamgarp merged 3 commits into
mainfrom
MODULES-12060-fix-fastcgi-server

Conversation

@jst-cyr

@jst-cyr jst-cyr commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • apache::fastcgi::server has unconditionally failed catalog compilation in every released version since v10.0.0 (2023), because it does include apache::mod::fastcgi — a class that was deleted in Drop mod_fastcgi support #2267 ("Drop mod_fastcgi support") when mod_fastcgi was dropped as dead upstream software unavailable on any currently supported OS.
  • Two further latent bugs were also identified in the issue: an unconditionally-referenced $socket variable that's only assigned under a conditional, and invalid + string concatenation in templates/fastcgi/server.epp (Puppet's + doesn't concatenate strings).
  • Rather than resurrect an API around apache module that is no longer packaged/available anywhere, this removes apache::fastcgi::server, its leftover server.epp/server.erb templates, and the REFERENCE.md entry (regenerated via rake strings:generate:reference).
  • This is not a breaking change in practice: the define has never worked in any shipped release since v10.0.0, so there is no working behavior being removed.

Closes #2640

Test plan

  • bundle exec rake validate passes
  • bundle exec rake rubocop passes
  • CI unit/acceptance spec suite passes on this PR

@jst-cyr
jst-cyr requested review from a team, bastelfreak, ekohl and smortex as code owners October 21, 2026 20:25
@skyamgarp

Copy link
Copy Markdown
Contributor

Hi @jst-cyr , Can you please update the PR?

@jst-cyr
jst-cyr force-pushed the MODULES-12060-fix-fastcgi-server branch from f1ab485 to 12169e9 Compare October 24, 2026 02:20
@jst-cyr

jst-cyr commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

@skyamgarp : I've rebased with latest which will trigger the tests again.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrowly scoped removal matches the reported failure, with no remaining executable dependencies or blocking issues identified.

No open issues 🎉

What changed in this PR

Removes the unusable apache::fastcgi::server defined type, completing the earlier removal of mod_fastcgi support and addressing #2640.

Changes:

  • Deletes the defined type that depends on the removed apache::mod::fastcgi class.
  • Removes its leftover EPP and ERB templates.
  • Removes the corresponding generated reference documentation.
File Description
templates/​fastcgi/​server.erb Deletes the legacy FastCGI server template.
templates/​fastcgi/​server.epp Deletes the template used by the removed defined type.
REFERENCE.md Removes the type’s index entry and parameter documentation.
manifests/​fastcgi/​server.pp Deletes the broken FastCGI server defined type.

Review effort: Balanced

@jst-cyr
jst-cyr force-pushed the MODULES-12060-fix-fastcgi-server branch from 12169e9 to 15de3e1 Compare October 26, 2026 19:14
@jst-cyr

jst-cyr commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

NOTE: I have rebased again and triggered off tests again after the previous review. It now matches main branch again.

@skyamgarp

skyamgarp commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Hi @jst-cyr ,
LTGM. Could you please update the changelog and readmes/README_ja_JP.md too?
Thanks.

skyamgarp
skyamgarp previously approved these changes Oct 27, 2026
@jst-cyr
jst-cyr force-pushed the MODULES-12060-fix-fastcgi-server branch from 15de3e1 to c4e5cce Compare October 28, 2026 03:38
jst-cyr added a commit that referenced this pull request Oct 28, 2026
Add a changelog entry for the apache::fastcgi::server removal and
strip the now-stale Japanese readme references to the deleted defined
type, per review feedback on #2660.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jst-cyr

jst-cyr commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Sorry for missing those @skyamgarp ! I did the update to the Japanese README, related to this change. There does seem to be an older reference to fastcgi that was unrelated to this PR so I didn't update that, but let me know if you want that removed as well.

I made the change to the CHANGELOG file too, but I thought that was usually handled by the release process?

@skyamgarp

Copy link
Copy Markdown
Contributor

Sorry for missing those @skyamgarp ! I did the update to the Japanese README, related to this change. There does seem to be an older reference to fastcgi that was unrelated to this PR so I didn't update that, but let me know if you want that removed as well.

I made the change to the CHANGELOG file too, but I thought that was usually handled by the release process?

Hi @jst-cyr , apologies, I forgot that the changelog is handled as part of the release process. Would you mind reverting it? Please go ahead and merge once that’s done.

skyamgarp
skyamgarp previously approved these changes Oct 28, 2026
jst-cyr added a commit that referenced this pull request Oct 28, 2026
Changelog entries are added during release prep, not in individual
PRs, per reviewer feedback on #2660.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jst-cyr

jst-cyr commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

@skyamgarp : By reverting that change it invalidates the review and therefore blocks me from merging.

So I have made the change and the tests are running again. We will need another review since the previous one is invalidated. Once you have reviewed, please feel free to merge up at that time unless more changes are needed.

jst-cyr and others added 3 commits October 29, 2026 11:33
apache::fastcgi::server has included apache::mod::fastcgi since that
class was removed in 84940ea (v10.0.0, 2023), so every invocation of
the define has unconditionally failed catalog compilation since then.
The define also had two independent latent bugs (an unset $socket
variable and invalid string concatenation in server.epp) that would
have surfaced if the missing class were ever restored.

Since mod_fastcgi is dead upstream and unavailable on any currently
supported OS, and the define has never worked in any released version
since v10.0.0, remove it outright along with its leftover erb/epp
templates and REFERENCE.md entry rather than resurrect unmanageable
functionality.

Fixes #2640

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add a changelog entry for the apache::fastcgi::server removal and
strip the now-stale Japanese readme references to the deleted defined
type, per review feedback on #2660.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Changelog entries are added during release prep, not in individual
PRs, per reviewer feedback on #2660.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@skyamgarp
skyamgarp force-pushed the MODULES-12060-fix-fastcgi-server branch from 9e817a1 to 4461661 Compare October 29, 2026 06:03
@skyamgarp
skyamgarp merged commit 688f56b into main Oct 29, 2026
112 of 131 checks passed
@skyamgarp
skyamgarp deleted the MODULES-12060-fix-fastcgi-server branch October 29, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apache::mod::fastcgi is needed by apache::fastcgi::server but is not present.

4 participants