Thursday, November 7, 2019¶
I probably fixed #1234
lino_xl.lib.addresses.Addressable.get_primary_address() fails when
MultipleObjectsReturned), but didn’t yet manage to reproduce it in a test case.
The case occurred on the weleup production server.
Building the book offline¶
Yesterday I was several hours offline and tried to build the book. But oops,
that failed because the intersphinx links to the Community Guide (Lino Community Guide)
work only via internet. Indeed when building the book on travis or readthedocs
it is the normal approach to load intersphinx links from the
objects.inv of the currently published version. For intersphinx links
to Python modules we can get the
intersphinx_urls, but cg has no
Getlino and certbot¶
I saw that the
getlino configure --https option was appending directly to
/etc/crontab file. I fixed this quickly.
I also saw that getlino doesn’t install certbot as explained on their.
Organizing the getlino test suite¶
Yesterday before going offline I had a hangout with Hamza about how to organize the test suite for getlino. We had to interrupt our session and now I am still thinking about the topic.
How To Achieve Practical End-to-End Testing With Docker Compose https://runnable.com/blog/how-to-achieve-practical-end-to-end-testing
Docker Hub can automatically test changes to your source code repositories using containers. https://docs.docker.com/docker-hub/builds/automated-testing/
Coverage will be another fun topic: https://docs.codecov.io/docs/testing-with-docker
Clatter does the same as
atelier.sheller. Advantage of Clatter is that it detects bash code blocks, which means that the result is more beautiful. Disadvantage is that we would need another loop over all the doc files, and another dependency. I see no need to switch to it.
OVH public cloud VPS was slow for a whole day¶
Today we could not really use Jane because she was so slow. We had a lot of fun for trying to understand what it is.
cd /mnt/disk/ sudo dd if=/dev/zero of=diskbench bs=1M count=1024 conv=fdatasync sudo dd if=diskbench of=/dev/null bs=1M count=1024 sudo dd if=/dev/zero bs=1M count=1024 | md5sum sudo rm diskbench