Articles tagged python

The Ubuntu Core snap store is architected as a number of smallish, independent services. In this week's post I want to talk about some of the challenges that come from adopting a distributed architecture, and how we're working to resolve them.


In a typical monolithic architecture, the functionality that …

Read More

by Thomi Richards | Sun 11 June 2017 | Tags : acceptable python testing microservices snappy ubuntu ubuntu core

(...or any other conference),

The Kiwi PyCon Call-for-Papers is open right now, and will be for the next few weeks. In my spare time I'm spoamming everyone I know to encourage them to submit a talk. A common response I get is "I'd love to speak at Kiwi PyCon, but …

Read More

by Thomi Richards | Sat 21 May 2016 | Tags : python kiwipycon speaking

I freaking love python's context managers. They's excellent for managing resources that need to have a set lifetime. I find myself writing lots of code that uses context managers like tempfile.NamedTemporaryFile and tempfile.TemporaryDirectory. Recently I found myself writing code that set up a data structure on disk. The …

Read More

by Thomi Richards | Tue 02 June 2015 | Tags : python context managers code

This year Canonical were kind enough to send me to Linux Conf Australia. The last time I attended that conference was nine years ago (2006, in my home-town of Dunedin). What follows is a short trip report - I won't mention everything I saw, but rather highlight the most interesting parts …

Read More

by Thomi Richards | Mon 19 January 2015 | Tags : conference community trip-report debian testing python packaging

I attended Kiwi PyCon again this year, and it was fantastic! The conference was held in Wellington, a fine city with some great bars (I'm sure it has other attractive qualities, but I mainly remember the bars). Below are some random highlights that I feel are worth sharing.

The Talks …

Read More

by Thomi Richards | Wed 01 October 2014 | Tags : python testing kiwipycon ubuntu quality

Currently I find myself working simultaneously in two very different languages: My work at Canonical sees me writing almost exclusively in Python, while in my spare time I'm working with Go and Qml. Both Python and Go have some wonderful, killer features, but today I'd like to write about their …

Read More

by Thomi Richards | Mon 17 March 2014 | Tags : python golang testing

I'm lucky to work with some of the most talented engineers I've ever met. As a member of the Canonical QA department, we frequently talk about automated code testing, things like: What's the best strategy to test declarative UI languages? How do we test difficult-to-reach-place X? How do we measure …

Read More

by Thomi Richards | Thu 13 March 2014 | Tags : python testing coverage QA ubuntu

I recently contributed a number of new features to the python testtools project, the sum total of which add up to a feature I like to call 'delayed assertions'. In this post I'll explain why I needed this feature, what it's good for, and how you can use it yourself …

Read More

by Thomi Richards | Mon 10 February 2014 | Tags : python testing testtools

This post is an introduction to subunit, a tool for serializing a test result to a binary format. We plan on adopting this at Canonical, and this is the first post in a series.

The Problem

We have a lot of tests that we need to run on a regular …

Read More

by Thomi Richards | Thu 21 November 2013 | Tags : python testing Ubuntu subunit

Over on my old blog I posted about some visualisations I made of the Ubuntu packages installed on my machine. At the time, I mistakenly believed that I had graphed the entire package repository when I had actually only graphed the packages that my laptop had seen. There were several …

Read More

by Thomi Richards | Wed 03 July 2013 | Tags : ubuntu debian packaging python visualisation