[ckan-changes] [ckan/ckan] 75659d: Speeds up sphinx test by only testing changes

GitHub noreply at github.com
Tue Jun 19 12:06:08 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 75659d48463ad2e914811219ae5062898937f724
      https://github.com/ckan/ckan/commit/75659d48463ad2e914811219ae5062898937f724
  Author: Ross Jones <ross at mailbolt.com>
  Date:   2018-06-15 (Fri, 15 Jun 2018)

  Changed paths:
    M ckan/tests/test_coding_standards.py

  Log Message:
  -----------
  Speeds up sphinx test by only testing changes

The `test_building_the_docs` test was rebuilding all of the
documentation from scratch as a test - on my computer, this took about
35 seconds.

There is no need to build the documentation from scratch, by removing
the all-files and fresh-env parameters only documentation for files that
have changed are rebuilt.

Removing these two parameters makes the test now take 7s, about 10s if
you change a file containing documentation.  For multiple full runs for
development this saved time adds up.


  Commit: 7c7e397e377c903d4e929a19ee13a13ffad67470
      https://github.com/ckan/ckan/commit/7c7e397e377c903d4e929a19ee13a13ffad67470
  Author: Ross Jones <ross at mailbolt.com>
  Date:   2018-06-15 (Fri, 15 Jun 2018)

  Changed paths:
    M dev-requirements.txt

  Log Message:
  -----------
  Update version of sphinx used

Sphinx 1.7.5 seems (anecdotally) marginally faster than 1.7.1


  Commit: b9e45e2723d4abd70fa72b16ec4a0bebc795c56b
      https://github.com/ckan/ckan/commit/b9e45e2723d4abd70fa72b16ec4a0bebc795c56b
  Author: Adrià Mercader <amercadero at gmail.com>
  Date:   2018-06-19 (Tue, 19 Jun 2018)

  Changed paths:
    M ckan/tests/test_coding_standards.py
    M dev-requirements.txt

  Log Message:
  -----------
  Merge pull request #4293 from ckan/speed-up-sphinx-test

Speed up sphinx test


Compare: https://github.com/ckan/ckan/compare/ed5645cd75d5...b9e45e2723d4
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the ckan-changes mailing list