Don't make rdoc generation take an unreasonable amount of time

On CI, this takes about 8 hours. On my PC I canceled after 3.

I suspect this comment in rdoc to be relevant (since this method is where it is stuck): 4b84660690/lib/rdoc/mixin.rb (L68-L71)
Removing a few includes eventually makes it complete. It doesn't seem to matter which ones you remove.

https://github.com/rails/rails/pull/52185 was the trigger for this.
This commit is contained in:
Earlopain 2024-06-26 17:53:43 +02:00
parent de4d874474
commit 979e308312
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

@ -266,6 +266,8 @@ def self.without_modules(*modules)
ParamsWrapper
]
# Note: Documenting these severely degrates the performance of rdoc
# :stopdoc:
include AbstractController::Rendering
include AbstractController::Translation
include AbstractController::AssetPaths
@ -309,6 +311,7 @@ def self.without_modules(*modules)
# Params wrapper should come before instrumentation so they are properly showed
# in logs
include ParamsWrapper
# :startdoc:
setup_renderer!
# Define some internal variables that should not be propagated to the view.