Description of problem: Package ansible-doc-2.5.0-2.fc27.noarch.rpm contains badly prepared html documentation, thus after installing it takes a lot of disk space (~3.8G). Version-Release number of selected component (if applicable): ansible-doc-2.5.0-2.fc27.noarch.rpm How reproducible: Steps to Reproduce: 1. Download package: dnf download ansible-doc 2. rpm -qipf ~/ansible-doc-2.5.0-2.fc27.noarch.rpm | grep Size Size : 4093582960 3. Actual results: 3.8Gb Expected results: Smaller Additional info:
This is truly wild. I wonder how long it's been like this. The majority of the content seems to be the embedded TOC tree. Each module help page (there are 1679 module pages shipped) is coming in at about 2.2 MiB with 15116 toctree list-items. No wonder the file compressed down to just 35 MiB. It's just copies of that huge toc tree over and over again.
I think that the change is the new upstream side navigation. * The old side navigation (2.4.3): http://docs.ansible.com/ansible/2.4/index.html * The new side navigation (2.5.0): http://docs.ansible.com/ansible/2.5/index.html For instance, the old one links to a single page for the module documentation. The new one links to all modules multiple times.
(In reply to Toshio Ernie Kuratomi from comment #2) > I think that the change is the new upstream side navigation. > > * The old side navigation (2.4.3): > http://docs.ansible.com/ansible/2.4/index.html > * The new side navigation (2.5.0): > http://docs.ansible.com/ansible/2.5/index.html > > For instance, the old one links to a single page for the module > documentation. The new one links to all modules multiple times. Whoa! For fun and profit I did a little experiment: ansible-doc-2.4 (package was only 4.7M, per DNF): > $ du -sh /usr/share/doc/ansible-doc/ > 88M /usr/share/doc/ansible-doc/ > $ find /usr/share/doc/ansible-doc/ | wc -l > 3238 ansible-doc-2.5 (package is 35M, per DNS): > $ du -sh /usr/share/doc/ansible-doc/ > 3.9G /usr/share/doc/ansible-doc/ > find /usr/share/doc/ansible-doc/ | wc -l > 2368 I'm going to report this issue upstream
Issue reported upstream: https://github.com/ansible/ansible/issues/38288
This issue has been fixed upstream in [0]. Fedora 26+ though all need rebuilds. I suspect this fix will be delivered when Kevin submits the next batch of updated package builds. (The el6,7 [1,2] builds seems to be fine when I extracted their -doc packages.) [0] https://github.com/ansible/ansible/pull/38311 [1] https://koji.fedoraproject.org/koji/buildinfo?buildID=1063170 [2] https://koji.fedoraproject.org/koji/buildinfo?buildID=1063168
Awesome. Thanks for the quick work. I will try and push this with the next round of builds indeed.
ansible-2.5.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d35b90fd1d
ansible-2.5.1-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-ad971a0926
ansible-2.5.1-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-abc92e5946
ansible-2.5.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-de434df4ac
ansible-2.5.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2058f774a
ansible-2.5.1-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-de434df4ac
ansible-2.5.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-ad971a0926
ansible-2.5.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2058f774a
ansible-2.5.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d35b90fd1d
ansible-2.5.1-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-abc92e5946
# dnf download ansible-doc --enablerepo=updates-testing # rpm -qipf ansible-doc-2.5.1-1.fc27.noarch.rpm | grep Size Size : 503331670 # print -f "%.1fMb\\n" $[503331670/1024./1024.] 480.0Mb Looks good!
ansible-2.5.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.5.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.5.2-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-cd33ebf025
ansible-2.5.1-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.5.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.5.2-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-cd33ebf025
ansible-2.5.2-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.