Archive for the ‘Uncategorized’ Category
Edits: Corrected the description of the slony bug, and noted that there is a typo on the lazr_postgresql PYPI page. Two years ago Launchpad did schema changes once a month. Everyone would cross their fingers and hope while the system administrators took all the application servers offline, patched the database with a months worth of […]
Filed under: Uncategorized | Leave a Comment
Tags: Launchpad, postgresql, Python
Reprap driver pinouts
This is largely a memo-to-my-future self, but it may save some time for someone else facing what I was last weekend. I’ve been putting together a Reprap recently, seeded by the purchase of a partially assembled one from someone local who was leaving town and didn’t want to take it with them. One of the […]
Filed under: Uncategorized | Leave a Comment
Tags: reprap
My laptop has somewhat less than 1/2 the grunt of my desktop at home, but I prefer to work on it as I can go sit in the sun etc, very hard to do that with a mini tower case However, running everything through ssh to another machine makes editing and iterating more clumsy; I […]
Filed under: Uncategorized | 3 Comments
Tags: cloud, juju, openstack, Python, twisted, ubuntu
I’ve made the Testtools committers team own both the project and the trunk branch for both pyjunitxml and testscenarios. This removes me as a SPOF if anything needs doing in those projects – any Testtools committer can now do it. (Including code review and landing). If you are a testtools committer and need PyPI release […]
Filed under: Uncategorized | Leave a Comment
Tags: Python, testing, testtools
Reading list
I’ve recently caught up on a bunch of reading some of which are worth commending. Switch – documents the factors that cause changes to fail (both in organisations and personal stuff), and provides a recipe for ensuring you have addressed those factors in any change you are planning. The Lean Startup – Applies Lean principles […]
Filed under: Uncategorized | Leave a Comment
This is a tiny PSA prompted by my digging into a deadlock condition in the Launchpad application servers. We were observing a small number of servers stopping cold when we did log rotation, with no particularly rhyme or reason. tl;dr: do not call any non-reentrant code from a Python signal handler. This includes the signal […]
Filed under: Uncategorized | 2 Comments
Tags: Launchpad, Python
While some folk look down on fakeraid (that is BIOS based RAID-until-OS-takes-over) solutions, I think they are pretty neat: they let a user get many of the benefits of dedicated controller cards at a fraction of the cost. The benefits include the usual ones for RAID – more spindles to handle IO, tolerance of disk […]
Filed under: Uncategorized | 5 Comments
Tags: Debian, dmraid, ubuntu
justworks-hardware-vendors
Ok, so micro rant time: this is the effect of not taking things upstream: hardware doesn’t work Out Of The Box. Very briefly, I purchased a Vodafone prepaid mobile broadband package today, which comes with a modem and SIM. The modem is a K3571-Z, and Ubuntu *thinks* it knows how they work (it doesn’t). So it […]
Filed under: Uncategorized | 4 Comments
Tags: ubuntu, upstream
Tesetrepository has a really nice workflow for fixing a set of failing tests: Tell it about the failing tests (e.g. by doing a full test run, or running a single known failing test) Run just the known failing tests (testr run –failing) Make a change Goto step 2 As you fix up the tests testr […]
Filed under: Uncategorized | 4 Comments
Tags: Python, Subunit, testing, testtools, unittest
So a while back I blogged about maintainable test suites. One of the things I’ve been doing since is fiddling with the heart of the fixtures concept. To refresh your memory, I’m defining fixture as some basic state you want to reach as part of doing a test. For instance, when you’ve mocked out 2 […]
Filed under: Uncategorized | 5 Comments
Tags: Python, testing, unittest