UCL / TLOmodel-profiling

Profiling outputs for developer use
0 stars 0 forks source link

Update to build website without lossless `pyisession` files. #15

Closed willGraham01 closed 9 months ago

willGraham01 commented 1 year ago

Updates the website build to rely on the .stats.json files that are produced by the profiling workflow, rather than the lossless pyisession

Tests will produce an empty website until this update is merged.

Once this is merged, we will also need to purge the results branch and push a new output file.

However, I can confirm it works on the outputs produced by the update, when tested locally by requesting a build from an alternative source branch:

(tlo-model) ccaegra@intelligent-elephant:~/Documents/TLO/TLOmodel-profiling$ python website_builder/builder.py -c -f results-experimental
Will build website into /home/ccaegra/Documents/TLO/TLOmodel-profiling/build with;
    Source branch: results-experimental.
    Clean build  : True
    Plaintext fmt: rst
BUILD STARTS
============
Running Sphinx v7.1.2
/home/ccaegra/mambaforge/envs/tlo-model/lib/python3.8/site-packages/sphinxcontrib/applehelp/__init__.py:24: RemovedInSphinx80Warning: The alias 'sphinx.util.SkipProgressMessage' is deprecated, use 'sphinx.util.display.SkipProgressMessage' instead. Check CHANGES for Sphinx API modifications.
  from sphinx.util import SkipProgressMessage, progress_message
/home/ccaegra/mambaforge/envs/tlo-model/lib/python3.8/site-packages/sphinxcontrib/applehelp/__init__.py:24: RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.http_date.epoch_to_rfc1123' instead. Check CHANGES for Sphinx API modifications.
  from sphinx.util import SkipProgressMessage, progress_message
/home/ccaegra/mambaforge/envs/tlo-model/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.http_date.epoch_to_rfc1123' instead. Check CHANGES for Sphinx API modifications.
  from sphinx.util import progress_message
making output directory... done
[autosummary] generating autosummary for: developers.rst, index.rst, profiling.rst, run-statistics.rst
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 4 source files that are out of date
updating environment: [new config] 4 added, 0 changed, 0 removed
reading sources... [100%] run-statistics
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] run-statistics
generating indices... genindex done
writing additional pages... search done
copying images... [100%] _static/plots/diskwritetimes.svg
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in build.
==========
BUILD ENDS